25
25
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
26
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
* $Id: syscall.h,v 1.37 2004/04/16 21:48:44 roland Exp $
28
* $Id: syscall.h,v 1.45 2005/06/07 23:21:28 roland Exp $
96
96
int sys_semtimedop(), sys_statfs64(), sys_fstatfs64(), sys_tgkill();
97
97
int sys_mq_open(), sys_mq_timedsend(), sys_mq_timedreceive();
98
98
int sys_mq_notify(), sys_mq_getsetattr();
99
int sys_epoll_create(), sys_epoll_ctl(), sys_epoll_wait();
100
int sys_waitid(), sys_fadvise64(), sys_fadvise64_64();
101
int sys_mbind(), sys_get_mempolicy(), sys_set_mempolicy();
102
int sys_arch_prctl();
103
int sys_io_setup(), sys_io_submit(), sys_io_cancel(), sys_io_getevents(), sys_io_destroy();
101
105
/* sys_socketcall subcalls */
126
#if !defined(ALPHA) && !defined(MIPS) && !defined(HPPA) && !defined(X86_64)
132
# define SYS_waitid 284
134
# define SYS_waitid 438
136
# define SYS_waitid (NR_SYSCALL_BASE + 280)
138
# define SYS_waitid 1270
140
# define SYS_waitid 277
141
# elif defined POWERPC
142
# define SYS_waitid 272
143
# elif defined S390 || defined S390X
144
# define SYS_waitid 281
146
# define SYS_waitid 312
148
# define SYS_waitid 312
150
# define SYS_waitid 284
151
# elif defined SPARC || defined SPARC64
152
# define SYS_waitid 279
153
# elif defined X86_64
154
# define SYS_waitid 247
158
#if !defined(ALPHA) && !defined(MIPS) && !defined(HPPA)
129
161
* IA64 syscall numbers (the only ones available from standard header
151
183
# undef SYS_recvmsg
152
184
# endif /* IA64 */
153
185
# define SYS_socket_subcall 300
154
#define SYS_socket (SYS_socket_subcall + 1)
155
#define SYS_bind (SYS_socket_subcall + 2)
156
#define SYS_connect (SYS_socket_subcall + 3)
157
#define SYS_listen (SYS_socket_subcall + 4)
158
#define SYS_accept (SYS_socket_subcall + 5)
159
#define SYS_getsockname (SYS_socket_subcall + 6)
160
#define SYS_getpeername (SYS_socket_subcall + 7)
161
#define SYS_socketpair (SYS_socket_subcall + 8)
162
#define SYS_send (SYS_socket_subcall + 9)
163
#define SYS_recv (SYS_socket_subcall + 10)
164
#define SYS_sendto (SYS_socket_subcall + 11)
165
#define SYS_recvfrom (SYS_socket_subcall + 12)
166
#define SYS_shutdown (SYS_socket_subcall + 13)
167
#define SYS_setsockopt (SYS_socket_subcall + 14)
168
#define SYS_getsockopt (SYS_socket_subcall + 15)
169
#define SYS_sendmsg (SYS_socket_subcall + 16)
170
#define SYS_recvmsg (SYS_socket_subcall + 17)
186
#define SYS_sub_socket (SYS_socket_subcall + 1)
187
#define SYS_sub_bind (SYS_socket_subcall + 2)
188
#define SYS_sub_connect (SYS_socket_subcall + 3)
189
#define SYS_sub_listen (SYS_socket_subcall + 4)
190
#define SYS_sub_accept (SYS_socket_subcall + 5)
191
#define SYS_sub_getsockname (SYS_socket_subcall + 6)
192
#define SYS_sub_getpeername (SYS_socket_subcall + 7)
193
#define SYS_sub_socketpair (SYS_socket_subcall + 8)
194
#define SYS_sub_send (SYS_socket_subcall + 9)
195
#define SYS_sub_recv (SYS_socket_subcall + 10)
196
#define SYS_sub_sendto (SYS_socket_subcall + 11)
197
#define SYS_sub_recvfrom (SYS_socket_subcall + 12)
198
#define SYS_sub_shutdown (SYS_socket_subcall + 13)
199
#define SYS_sub_setsockopt (SYS_socket_subcall + 14)
200
#define SYS_sub_getsockopt (SYS_socket_subcall + 15)
201
#define SYS_sub_sendmsg (SYS_socket_subcall + 16)
202
#define SYS_sub_recvmsg (SYS_socket_subcall + 17)
172
204
#define SYS_socket_nsubcalls 18
173
#endif /* !(ALPHA || MIPS || HPPA || X86_64) */
205
#endif /* !(ALPHA || MIPS || HPPA) */
175
207
/* sys_ipc subcalls */
178
210
int sys_msgsnd(), sys_msgrcv(), sys_msgget(), sys_msgctl();
179
211
int sys_shmat(), sys_shmdt(), sys_shmget(), sys_shmctl();
181
#if !defined(ALPHA) && !defined(MIPS) && !defined(SPARC) && !defined(HPPA) && !defined(X86_64)
213
#if !defined(ALPHA) && !defined(MIPS) && !defined(SPARC) && !defined(HPPA)
184
216
* IA64 syscall numbers (the only ones available from standard
202
235
# undef SYS_shmctl
203
236
# endif /* IA64 */
204
237
#define SYS_ipc_subcall ((SYS_socket_subcall)+(SYS_socket_nsubcalls))
205
#define SYS_semop (SYS_ipc_subcall + 1)
206
#define SYS_semget (SYS_ipc_subcall + 2)
207
#define SYS_semctl (SYS_ipc_subcall + 3)
208
#define SYS_semtimedop (SYS_ipc_subcall + 4)
209
#define SYS_msgsnd (SYS_ipc_subcall + 11)
210
#define SYS_msgrcv (SYS_ipc_subcall + 12)
211
#define SYS_msgget (SYS_ipc_subcall + 13)
212
#define SYS_msgctl (SYS_ipc_subcall + 14)
213
#define SYS_shmat (SYS_ipc_subcall + 21)
214
#define SYS_shmdt (SYS_ipc_subcall + 22)
215
#define SYS_shmget (SYS_ipc_subcall + 23)
216
#define SYS_shmctl (SYS_ipc_subcall + 24)
238
#define SYS_sub_semop (SYS_ipc_subcall + 1)
239
#define SYS_sub_semget (SYS_ipc_subcall + 2)
240
#define SYS_sub_semctl (SYS_ipc_subcall + 3)
241
#define SYS_sub_semtimedop (SYS_ipc_subcall + 4)
242
#define SYS_sub_msgsnd (SYS_ipc_subcall + 11)
243
#define SYS_sub_msgrcv (SYS_ipc_subcall + 12)
244
#define SYS_sub_msgget (SYS_ipc_subcall + 13)
245
#define SYS_sub_msgctl (SYS_ipc_subcall + 14)
246
#define SYS_sub_shmat (SYS_ipc_subcall + 21)
247
#define SYS_sub_shmdt (SYS_ipc_subcall + 22)
248
#define SYS_sub_shmget (SYS_ipc_subcall + 23)
249
#define SYS_sub_shmctl (SYS_ipc_subcall + 24)
218
251
#define SYS_ipc_nsubcalls 25
219
#endif /* !(ALPHA || MIPS || SPARC || HPPA || X86_64) */
252
#endif /* !(ALPHA || MIPS || SPARC || HPPA) */
254
#if defined SYS_ipc_subcall && !defined SYS_ipc
255
# define SYS_ipc SYS_ipc_subcall
257
#if defined SYS_socket_subcall && !defined SYS_socketcall
258
# define SYS_socketcall SYS_socket_subcall