linux_syscall.h revision 1.59
11.59Schristos/* $NetBSD: linux_syscall.h,v 1.59 2006/06/10 21:16:49 christos Exp $ */
21.1Serh
31.1Serh/*
41.1Serh * System call numbers.
51.1Serh *
61.1Serh * DO NOT EDIT-- this file is automatically generated.
71.59Schristos * created from	NetBSD: syscalls.master,v 1.53 2006/06/10 21:15:33 christos Exp
81.1Serh */
91.1Serh
101.59Schristos#ifndef _LINUX_SYS_SYSCALL_H_
111.59Schristos#define	_LINUX_SYS_SYSCALL_H_
121.59Schristos
131.1Serh/* syscall: "syscall" ret: "int" args: */
141.1Serh#define	LINUX_SYS_syscall	0
151.1Serh
161.1Serh/* syscall: "exit" ret: "int" args: "int" */
171.1Serh#define	LINUX_SYS_exit	1
181.1Serh
191.1Serh/* syscall: "fork" ret: "int" args: */
201.1Serh#define	LINUX_SYS_fork	2
211.1Serh
221.15Serh/* syscall: "read" ret: "int" args: "int" "void *" "size_t" */
231.1Serh#define	LINUX_SYS_read	3
241.1Serh
251.15Serh/* syscall: "write" ret: "int" args: "int" "const void *" "size_t" */
261.1Serh#define	LINUX_SYS_write	4
271.1Serh
281.1Serh/* syscall: "close" ret: "int" args: "int" */
291.1Serh#define	LINUX_SYS_close	6
301.1Serh
311.15Serh/* syscall: "creat" ret: "int" args: "const char *" "mode_t" */
321.1Serh#define	LINUX_SYS_creat	8
331.1Serh
341.15Serh/* syscall: "link" ret: "int" args: "const char *" "const char *" */
351.1Serh#define	LINUX_SYS_link	9
361.1Serh
371.15Serh/* syscall: "unlink" ret: "int" args: "const char *" */
381.1Serh#define	LINUX_SYS_unlink	10
391.1Serh
401.15Serh/* syscall: "chdir" ret: "int" args: "const char *" */
411.1Serh#define	LINUX_SYS_chdir	12
421.1Serh
431.1Serh/* syscall: "fchdir" ret: "int" args: "int" */
441.1Serh#define	LINUX_SYS_fchdir	13
451.1Serh
461.15Serh/* syscall: "mknod" ret: "int" args: "const char *" "int" "int" */
471.1Serh#define	LINUX_SYS_mknod	14
481.1Serh
491.15Serh/* syscall: "chmod" ret: "int" args: "const char *" "int" */
501.1Serh#define	LINUX_SYS_chmod	15
511.1Serh
521.32Sthorpej/* syscall: "__posix_chown" ret: "int" args: "const char *" "int" "int" */
531.32Sthorpej#define	LINUX_SYS___posix_chown	16
541.1Serh
551.1Serh/* syscall: "brk" ret: "int" args: "char *" */
561.1Serh#define	LINUX_SYS_brk	17
571.1Serh
581.1Serh/* syscall: "lseek" ret: "long" args: "int" "long" "int" */
591.1Serh#define	LINUX_SYS_lseek	19
601.1Serh
611.28Smycroft/* syscall: "getpid_with_ppid" ret: "pid_t" args: */
621.28Smycroft#define	LINUX_SYS_getpid_with_ppid	20
631.1Serh
641.1Serh/* syscall: "setuid" ret: "int" args: "uid_t" */
651.1Serh#define	LINUX_SYS_setuid	23
661.1Serh
671.29Smycroft/* syscall: "getuid_with_euid" ret: "uid_t" args: */
681.29Smycroft#define	LINUX_SYS_getuid_with_euid	24
691.14Stron
701.15Serh/* syscall: "ptrace" ret: "int" args: "long" "long" "long" "long" */
711.14Stron#define	LINUX_SYS_ptrace	26
721.1Serh
731.15Serh/* syscall: "access" ret: "int" args: "const char *" "int" */
741.1Serh#define	LINUX_SYS_access	33
751.1Serh
761.1Serh/* syscall: "sync" ret: "int" args: */
771.1Serh#define	LINUX_SYS_sync	36
781.1Serh
791.1Serh/* syscall: "kill" ret: "int" args: "int" "int" */
801.1Serh#define	LINUX_SYS_kill	37
811.1Serh
821.1Serh/* syscall: "setpgid" ret: "int" args: "int" "int" */
831.1Serh#define	LINUX_SYS_setpgid	39
841.1Serh
851.15Serh/* syscall: "dup" ret: "int" args: "int" */
861.1Serh#define	LINUX_SYS_dup	41
871.1Serh
881.1Serh/* syscall: "pipe" ret: "int" args: */
891.1Serh#define	LINUX_SYS_pipe	42
901.1Serh
911.15Serh/* syscall: "open" ret: "int" args: "const char *" "int" "int" */
921.1Serh#define	LINUX_SYS_open	45
931.1Serh
941.29Smycroft/* syscall: "getgid_with_egid" ret: "gid_t" args: */
951.29Smycroft#define	LINUX_SYS_getgid_with_egid	47
961.1Serh
971.23Serh/* syscall: "sigprocmask" ret: "int" args: "int" "sigset13_t" */
981.23Serh#define	LINUX_SYS_sigprocmask	48
991.23Serh
1001.15Serh/* syscall: "acct" ret: "int" args: "const char *" */
1011.1Serh#define	LINUX_SYS_acct	51
1021.1Serh
1031.1Serh/* syscall: "sigpending" ret: "int" args: "linux_old_sigset_t *" */
1041.1Serh#define	LINUX_SYS_sigpending	52
1051.1Serh
1061.1Serh/* syscall: "ioctl" ret: "int" args: "int" "u_long" "caddr_t" */
1071.1Serh#define	LINUX_SYS_ioctl	54
1081.1Serh
1091.15Serh/* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
1101.1Serh#define	LINUX_SYS_symlink	57
1111.1Serh
1121.15Serh/* syscall: "readlink" ret: "int" args: "const char *" "char *" "int" */
1131.1Serh#define	LINUX_SYS_readlink	58
1141.1Serh
1151.15Serh/* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */
1161.1Serh#define	LINUX_SYS_execve	59
1171.1Serh
1181.15Serh/* syscall: "umask" ret: "mode_t" args: "mode_t" */
1191.1Serh#define	LINUX_SYS_umask	60
1201.1Serh
1211.15Serh/* syscall: "chroot" ret: "int" args: "const char *" */
1221.1Serh#define	LINUX_SYS_chroot	61
1231.1Serh
1241.1Serh/* syscall: "getpgrp" ret: "int" args: */
1251.1Serh#define	LINUX_SYS_getpgrp	63
1261.1Serh
1271.1Serh/* syscall: "getpagesize" ret: "int" args: */
1281.1Serh#define	LINUX_SYS_getpagesize	64
1291.1Serh
1301.11Sthorpej/* syscall: "__vfork14" ret: "int" args: */
1311.11Sthorpej#define	LINUX_SYS___vfork14	66
1321.11Sthorpej
1331.15Serh/* syscall: "stat" ret: "int" args: "const char *" "struct linux_stat *" */
1341.1Serh#define	LINUX_SYS_stat	67
1351.1Serh
1361.15Serh/* syscall: "lstat" ret: "int" args: "const char *" "struct linux_stat *" */
1371.1Serh#define	LINUX_SYS_lstat	68
1381.1Serh
1391.40Smanu/* syscall: "mmap" ret: "int" args: "unsigned long" "size_t" "int" "int" "int" "linux_off_t" */
1401.1Serh#define	LINUX_SYS_mmap	71
1411.1Serh
1421.15Serh/* syscall: "munmap" ret: "int" args: "void *" "size_t" */
1431.1Serh#define	LINUX_SYS_munmap	73
1441.1Serh
1451.45Schristos/* syscall: "mprotect" ret: "int" args: "const void *" "unsigned long" "int" */
1461.1Serh#define	LINUX_SYS_mprotect	74
1471.1Serh
1481.49Sjdolecek/* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
1491.49Sjdolecek#define	LINUX_SYS_madvise	75
1501.49Sjdolecek
1511.15Serh/* syscall: "getgroups" ret: "int" args: "int" "gid_t *" */
1521.1Serh#define	LINUX_SYS_getgroups	79
1531.1Serh
1541.15Serh/* syscall: "setgroups" ret: "int" args: "int" "const gid_t *" */
1551.1Serh#define	LINUX_SYS_setgroups	80
1561.1Serh
1571.1Serh/* syscall: "gethostname" ret: "int" args: "char *" "u_int" */
1581.1Serh#define	LINUX_SYS_gethostname	87
1591.1Serh
1601.1Serh/* syscall: "sethostname" ret: "int" args: "char *" "u_int" */
1611.1Serh#define	LINUX_SYS_sethostname	88
1621.1Serh
1631.15Serh/* syscall: "dup2" ret: "int" args: "int" "int" */
1641.1Serh#define	LINUX_SYS_dup2	90
1651.1Serh
1661.1Serh/* syscall: "fstat" ret: "int" args: "int" "struct linux_stat *" */
1671.1Serh#define	LINUX_SYS_fstat	91
1681.1Serh
1691.1Serh/* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */
1701.1Serh#define	LINUX_SYS_fcntl	92
1711.9Stron
1721.9Stron/* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
1731.9Stron#define	LINUX_SYS_poll	94
1741.1Serh
1751.1Serh/* syscall: "fsync" ret: "int" args: "int" */
1761.1Serh#define	LINUX_SYS_fsync	95
1771.1Serh
1781.1Serh/* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
1791.1Serh#define	LINUX_SYS_setpriority	96
1801.1Serh
1811.1Serh/* syscall: "socket" ret: "int" args: "int" "int" "int" */
1821.1Serh#define	LINUX_SYS_socket	97
1831.1Serh
1841.39Sjdolecek/* syscall: "connect" ret: "int" args: "int" "const struct osockaddr *" "unsigned int" */
1851.1Serh#define	LINUX_SYS_connect	98
1861.1Serh
1871.39Sjdolecek/* syscall: "accept" ret: "int" args: "int" "struct osockaddr *" "int *" */
1881.1Serh#define	LINUX_SYS_accept	99
1891.1Serh
1901.1Serh/* syscall: "getpriority" ret: "int" args: "int" "int" */
1911.1Serh#define	LINUX_SYS_getpriority	100
1921.1Serh
1931.1Serh/* syscall: "send" ret: "int" args: "int" "caddr_t" "int" "int" */
1941.1Serh#define	LINUX_SYS_send	101
1951.1Serh
1961.1Serh/* syscall: "recv" ret: "int" args: "int" "caddr_t" "int" "int" */
1971.1Serh#define	LINUX_SYS_recv	102
1981.1Serh
1991.1Serh/* syscall: "sigreturn" ret: "int" args: "struct linux_sigframe *" */
2001.1Serh#define	LINUX_SYS_sigreturn	103
2011.1Serh
2021.39Sjdolecek/* syscall: "bind" ret: "int" args: "int" "const struct osockaddr *" "unsigned int" */
2031.1Serh#define	LINUX_SYS_bind	104
2041.1Serh
2051.1Serh/* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "void *" "int" */
2061.1Serh#define	LINUX_SYS_setsockopt	105
2071.1Serh
2081.1Serh/* syscall: "listen" ret: "int" args: "int" "int" */
2091.1Serh#define	LINUX_SYS_listen	106
2101.1Serh
2111.1Serh/* syscall: "sigsuspend" ret: "int" args: "caddr_t" "int" "int" */
2121.1Serh#define	LINUX_SYS_sigsuspend	111
2131.1Serh
2141.23Serh/* syscall: "sigstack" ret: "int" args: "struct sigstack *" "struct sigstack *" */
2151.23Serh#define	LINUX_SYS_sigstack	112
2161.23Serh
2171.15Serh/* syscall: "recvmsg" ret: "size_t" args: "int" "struct msghdr *" "int" */
2181.1Serh#define	LINUX_SYS_recvmsg	113
2191.1Serh
2201.15Serh/* syscall: "sendmsg" ret: "ssize_t" args: "int" "const struct msghdr *" "int" */
2211.1Serh#define	LINUX_SYS_sendmsg	114
2221.1Serh
2231.1Serh/* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */
2241.1Serh#define	LINUX_SYS_getsockopt	118
2251.1Serh
2261.15Serh/* syscall: "readv" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
2271.1Serh#define	LINUX_SYS_readv	120
2281.1Serh
2291.22Serh/* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
2301.1Serh#define	LINUX_SYS_writev	121
2311.1Serh
2321.32Sthorpej/* syscall: "__posix_fchown" ret: "int" args: "int" "int" "int" */
2331.32Sthorpej#define	LINUX_SYS___posix_fchown	123
2341.1Serh
2351.15Serh/* syscall: "fchmod" ret: "int" args: "int" "mode_t" */
2361.1Serh#define	LINUX_SYS_fchmod	124
2371.1Serh
2381.39Sjdolecek/* syscall: "recvfrom" ret: "int" args: "int" "void *" "int" "int" "struct osockaddr *" "int *" */
2391.1Serh#define	LINUX_SYS_recvfrom	125
2401.1Serh
2411.32Sthorpej/* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */
2421.1Serh#define	LINUX_SYS_setreuid	126
2431.1Serh
2441.32Sthorpej/* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */
2451.1Serh#define	LINUX_SYS_setregid	127
2461.1Serh
2471.15Serh/* syscall: "rename" ret: "int" args: "const char *" "const char *" */
2481.1Serh#define	LINUX_SYS_rename	128
2491.1Serh
2501.15Serh/* syscall: "truncate" ret: "int" args: "const char *" "long" */
2511.1Serh#define	LINUX_SYS_truncate	129
2521.1Serh
2531.1Serh/* syscall: "ftruncate" ret: "int" args: "int" "long" */
2541.1Serh#define	LINUX_SYS_ftruncate	130
2551.1Serh
2561.1Serh/* syscall: "flock" ret: "int" args: "int" "int" */
2571.1Serh#define	LINUX_SYS_flock	131
2581.1Serh
2591.1Serh/* syscall: "setgid" ret: "int" args: "gid_t" */
2601.1Serh#define	LINUX_SYS_setgid	132
2611.1Serh
2621.39Sjdolecek/* syscall: "sendto" ret: "int" args: "int" "void *" "int" "int" "struct osockaddr *" "int" */
2631.1Serh#define	LINUX_SYS_sendto	133
2641.1Serh
2651.1Serh/* syscall: "shutdown" ret: "int" args: "int" "int" */
2661.1Serh#define	LINUX_SYS_shutdown	134
2671.1Serh
2681.1Serh/* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
2691.1Serh#define	LINUX_SYS_socketpair	135
2701.1Serh
2711.15Serh/* syscall: "mkdir" ret: "int" args: "const char *" "int" */
2721.1Serh#define	LINUX_SYS_mkdir	136
2731.1Serh
2741.15Serh/* syscall: "rmdir" ret: "int" args: "const char *" */
2751.1Serh#define	LINUX_SYS_rmdir	137
2761.1Serh
2771.1Serh/* syscall: "getpeername" ret: "int" args: "int" "caddr_t" "int *" */
2781.1Serh#define	LINUX_SYS_getpeername	141
2791.1Serh
2801.15Serh/* syscall: "getrlimit" ret: "int" args: "int" "struct orlimit *" */
2811.1Serh#define	LINUX_SYS_getrlimit	144
2821.1Serh
2831.15Serh/* syscall: "setrlimit" ret: "int" args: "int" "const struct orlimit *" */
2841.1Serh#define	LINUX_SYS_setrlimit	145
2851.1Serh
2861.1Serh/* syscall: "setsid" ret: "int" args: */
2871.1Serh#define	LINUX_SYS_setsid	147
2881.1Serh
2891.1Serh/* syscall: "getsockname" ret: "int" args: "int" "caddr_t" "int *" */
2901.1Serh#define	LINUX_SYS_getsockname	150
2911.1Serh
2921.1Serh/* syscall: "sigaction" ret: "int" args: "int" "const struct linux_old_sigaction *" "struct linux_old_sigaction *" */
2931.1Serh#define	LINUX_SYS_sigaction	156
2941.23Serh
2951.23Serh/* syscall: "getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
2961.23Serh#define	LINUX_SYS_getdirentries	159
2971.23Serh
2981.23Serh/* syscall: "getdomainname" ret: "int" args: "char *" "int" */
2991.23Serh#define	LINUX_SYS_getdomainname	165
3001.1Serh
3011.24Sjdolecek/* syscall: "setdomainname" ret: "int" args: "char *" "int" */
3021.24Sjdolecek#define	LINUX_SYS_setdomainname	166
3031.43Schristos
3041.43Schristos/* syscall: "ugetrlimit" ret: "int" args: "int" "struct rlimit *" */
3051.43Schristos#define	LINUX_SYS_ugetrlimit	191
3061.24Sjdolecek
3071.49Sjdolecek#ifdef SYSVMSG
3081.1Serh/* syscall: "msgctl" ret: "int" args: "int" "int" "struct linux_msqid_ds *" */
3091.1Serh#define	LINUX_SYS_msgctl	200
3101.1Serh
3111.1Serh/* syscall: "msgget" ret: "int" args: "key_t" "int" */
3121.1Serh#define	LINUX_SYS_msgget	201
3131.1Serh
3141.17Serh/* syscall: "msgrcv" ret: "ssize_t" args: "int" "void *" "size_t" "long" "int" */
3151.1Serh#define	LINUX_SYS_msgrcv	202
3161.1Serh
3171.1Serh/* syscall: "msgsnd" ret: "int" args: "int" "void *" "size_t" "int" */
3181.1Serh#define	LINUX_SYS_msgsnd	203
3191.1Serh
3201.49Sjdolecek#else
3211.49Sjdolecek#endif
3221.49Sjdolecek#ifdef SYSVSEM
3231.1Serh/* syscall: "semctl" ret: "int" args: "int" "int" "int" "union linux_semun" */
3241.1Serh#define	LINUX_SYS_semctl	204
3251.1Serh
3261.1Serh/* syscall: "semget" ret: "int" args: "key_t" "int" "int" */
3271.1Serh#define	LINUX_SYS_semget	205
3281.1Serh
3291.15Serh/* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "size_t" */
3301.1Serh#define	LINUX_SYS_semop	206
3311.1Serh
3321.49Sjdolecek#else
3331.49Sjdolecek#endif
3341.1Serh/* syscall: "olduname" ret: "int" args: "struct linux_old_utsname *" */
3351.1Serh#define	LINUX_SYS_olduname	207
3361.1Serh
3371.32Sthorpej/* syscall: "__posix_lchown" ret: "int" args: "const char *" "int" "int" */
3381.32Sthorpej#define	LINUX_SYS___posix_lchown	208
3391.1Serh
3401.49Sjdolecek#ifdef SYSVSHM
3411.1Serh/* syscall: "shmat" ret: "int" args: "int" "void *" "int" "u_long *" */
3421.1Serh#define	LINUX_SYS_shmat	209
3431.1Serh
3441.1Serh/* syscall: "shmctl" ret: "int" args: "int" "int" "struct linux_shmid_ds *" */
3451.1Serh#define	LINUX_SYS_shmctl	210
3461.1Serh
3471.15Serh/* syscall: "shmdt" ret: "int" args: "const void *" */
3481.1Serh#define	LINUX_SYS_shmdt	211
3491.1Serh
3501.15Serh/* syscall: "shmget" ret: "int" args: "key_t" "size_t" "int" */
3511.1Serh#define	LINUX_SYS_shmget	212
3521.1Serh
3531.49Sjdolecek#else
3541.49Sjdolecek#endif
3551.1Serh/* syscall: "msync" ret: "int" args: "caddr_t" "int" "int" */
3561.1Serh#define	LINUX_SYS_msync	217
3571.1Serh
3581.1Serh/* syscall: "getpgid" ret: "int" args: "int" */
3591.1Serh#define	LINUX_SYS_getpgid	233
3601.1Serh
3611.1Serh/* syscall: "getsid" ret: "pid_t" args: "pid_t" */
3621.1Serh#define	LINUX_SYS_getsid	234
3631.1Serh
3641.1Serh/* syscall: "fdatasync" ret: "int" args: "int" */
3651.1Serh#define	LINUX_SYS_fdatasync	261
3661.25Sjdolecek
3671.25Sjdolecek/* syscall: "swapoff" ret: "int" args: "const char *" */
3681.25Sjdolecek#define	LINUX_SYS_swapoff	304
3691.1Serh
3701.1Serh/* syscall: "getdents" ret: "int" args: "int" "struct linux_dirent *" "unsigned int" */
3711.1Serh#define	LINUX_SYS_getdents	305
3721.1Serh
3731.16Serh/* syscall: "reboot" ret: "int" args: "int" "int" "int" "void *" */
3741.1Serh#define	LINUX_SYS_reboot	311
3751.18Serh
3761.18Serh/* syscall: "clone" ret: "int" args: "int" "void *" */
3771.18Serh#define	LINUX_SYS_clone	312
3781.1Serh
3791.49Sjdolecek#ifdef EXEC_AOUT
3801.24Sjdolecek/* syscall: "uselib" ret: "int" args: "const char *" */
3811.1Serh#define	LINUX_SYS_uselib	313
3821.1Serh
3831.49Sjdolecek#else
3841.49Sjdolecek#endif
3851.1Serh/* syscall: "mlock" ret: "int" args: "const void *" "size_t" */
3861.1Serh#define	LINUX_SYS_mlock	314
3871.1Serh
3881.1Serh/* syscall: "munlock" ret: "int" args: "const void *" "size_t" */
3891.1Serh#define	LINUX_SYS_munlock	315
3901.21Sjdolecek
3911.21Sjdolecek/* syscall: "mlockall" ret: "int" args: "int" */
3921.21Sjdolecek#define	LINUX_SYS_mlockall	316
3931.21Sjdolecek
3941.21Sjdolecek/* syscall: "munlockall" ret: "int" args: */
3951.21Sjdolecek#define	LINUX_SYS_munlockall	317
3961.31Sjdolecek
3971.31Sjdolecek/* syscall: "sysinfo" ret: "int" args: "struct linux_sysinfo *" */
3981.31Sjdolecek#define	LINUX_SYS_sysinfo	318
3991.1Serh
4001.1Serh/* syscall: "__sysctl" ret: "int" args: "struct linux___sysctl *" */
4011.1Serh#define	LINUX_SYS___sysctl	319
4021.1Serh
4031.15Serh/* syscall: "swapon" ret: "int" args: "const char *" */
4041.1Serh#define	LINUX_SYS_swapon	322
4051.1Serh
4061.1Serh/* syscall: "times" ret: "int" args: "struct times *" */
4071.1Serh#define	LINUX_SYS_times	323
4081.1Serh
4091.1Serh/* syscall: "personality" ret: "int" args: "int" */
4101.1Serh#define	LINUX_SYS_personality	324
4111.1Serh
4121.15Serh/* syscall: "setfsuid" ret: "int" args: "uid_t" */
4131.15Serh#define	LINUX_SYS_setfsuid	325
4141.15Serh
4151.15Serh/* syscall: "statfs" ret: "int" args: "const char *" "struct linux_statfs *" */
4161.1Serh#define	LINUX_SYS_statfs	328
4171.1Serh
4181.1Serh/* syscall: "fstatfs" ret: "int" args: "int" "struct linux_statfs *" */
4191.1Serh#define	LINUX_SYS_fstatfs	329
4201.12Stron
4211.12Stron/* syscall: "sched_setparam" ret: "int" args: "pid_t" "const struct linux_sched_param *" */
4221.12Stron#define	LINUX_SYS_sched_setparam	330
4231.12Stron
4241.12Stron/* syscall: "sched_getparam" ret: "int" args: "pid_t" "struct linux_sched_param *" */
4251.12Stron#define	LINUX_SYS_sched_getparam	331
4261.12Stron
4271.12Stron/* syscall: "sched_setscheduler" ret: "int" args: "pid_t" "int" "const struct linux_sched_param *" */
4281.12Stron#define	LINUX_SYS_sched_setscheduler	332
4291.12Stron
4301.12Stron/* syscall: "sched_getscheduler" ret: "int" args: "pid_t" */
4311.12Stron#define	LINUX_SYS_sched_getscheduler	333
4321.12Stron
4331.12Stron/* syscall: "sched_yield" ret: "int" args: */
4341.12Stron#define	LINUX_SYS_sched_yield	334
4351.12Stron
4361.12Stron/* syscall: "sched_get_priority_max" ret: "int" args: "int" */
4371.12Stron#define	LINUX_SYS_sched_get_priority_max	335
4381.12Stron
4391.12Stron/* syscall: "sched_get_priority_min" ret: "int" args: "int" */
4401.12Stron#define	LINUX_SYS_sched_get_priority_min	336
4411.1Serh
4421.1Serh/* syscall: "uname" ret: "int" args: "struct linux_utsname *" */
4431.1Serh#define	LINUX_SYS_uname	339
4441.1Serh
4451.1Serh/* syscall: "nanosleep" ret: "int" args: "const struct timespec *" "struct timespec *" */
4461.1Serh#define	LINUX_SYS_nanosleep	340
4471.1Serh
4481.1Serh/* syscall: "mremap" ret: "void *" args: "void *" "size_t" "size_t" "u_long" */
4491.1Serh#define	LINUX_SYS_mremap	341
4501.11Sthorpej
4511.11Sthorpej/* syscall: "setresuid" ret: "int" args: "uid_t" "uid_t" "uid_t" */
4521.11Sthorpej#define	LINUX_SYS_setresuid	343
4531.11Sthorpej
4541.11Sthorpej/* syscall: "getresuid" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */
4551.11Sthorpej#define	LINUX_SYS_getresuid	344
4561.7Sthorpej
4571.13Stron/* syscall: "pread" ret: "int" args: "int" "char *" "size_t" "linux_off_t" */
4581.7Sthorpej#define	LINUX_SYS_pread	349
4591.7Sthorpej
4601.13Stron/* syscall: "pwrite" ret: "int" args: "int" "char *" "size_t" "linux_off_t" */
4611.7Sthorpej#define	LINUX_SYS_pwrite	350
4621.1Serh
4631.1Serh/* syscall: "rt_sigreturn" ret: "int" args: "struct linux_rt_sigframe *" */
4641.1Serh#define	LINUX_SYS_rt_sigreturn	351
4651.1Serh
4661.1Serh/* syscall: "rt_sigaction" ret: "int" args: "int" "const struct linux_sigaction *" "struct linux_sigaction *" "size_t" */
4671.1Serh#define	LINUX_SYS_rt_sigaction	352
4681.1Serh
4691.1Serh/* syscall: "rt_sigprocmask" ret: "int" args: "int" "const linux_sigset_t *" "linux_sigset_t *" "size_t" */
4701.1Serh#define	LINUX_SYS_rt_sigprocmask	353
4711.1Serh
4721.1Serh/* syscall: "rt_sigpending" ret: "int" args: "linux_sigset_t *" "size_t" */
4731.1Serh#define	LINUX_SYS_rt_sigpending	354
4741.1Serh
4751.4Serh/* syscall: "rt_queueinfo" ret: "int" args: "int" "int" "linux_siginfo_t *" */
4761.1Serh#define	LINUX_SYS_rt_queueinfo	356
4771.1Serh
4781.1Serh/* syscall: "rt_sigsuspend" ret: "int" args: "linux_sigset_t *" "size_t" */
4791.1Serh#define	LINUX_SYS_rt_sigsuspend	357
4801.1Serh
4811.1Serh/* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */
4821.1Serh#define	LINUX_SYS_select	358
4831.1Serh
4841.1Serh/* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
4851.1Serh#define	LINUX_SYS_gettimeofday	359
4861.1Serh
4871.15Serh/* syscall: "settimeofday" ret: "int" args: "const struct timeval *" "const struct timezone *" */
4881.1Serh#define	LINUX_SYS_settimeofday	360
4891.1Serh
4901.15Serh/* syscall: "getitimer" ret: "int" args: "int" "struct itimerval *" */
4911.1Serh#define	LINUX_SYS_getitimer	361
4921.1Serh
4931.15Serh/* syscall: "setitimer" ret: "int" args: "int" "const struct itimerval *" "struct itimerval *" */
4941.1Serh#define	LINUX_SYS_setitimer	362
4951.1Serh
4961.15Serh/* syscall: "utimes" ret: "int" args: "char *" "struct timeval *" */
4971.1Serh#define	LINUX_SYS_utimes	363
4981.1Serh
4991.1Serh/* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */
5001.1Serh#define	LINUX_SYS_getrusage	364
5011.1Serh
5021.1Serh/* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage *" */
5031.1Serh#define	LINUX_SYS_wait4	365
5041.1Serh
5051.8Stron/* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
5061.8Stron#define	LINUX_SYS___getcwd	367
5071.46Schristos
5081.49Sjdolecek/* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */
5091.49Sjdolecek#define	LINUX_SYS_mincore	375
5101.49Sjdolecek
5111.46Schristos/* syscall: "getdents64" ret: "int" args: "int" "struct linux_dirent64 *" "unsigned int" */
5121.46Schristos#define	LINUX_SYS_getdents64	377
5131.8Stron
5141.56Sfvdl/* syscall: "setxattr" ret: "int" args: "char *" "char *" "void *" "size_t" "int" */
5151.56Sfvdl#define	LINUX_SYS_setxattr	382
5161.56Sfvdl
5171.56Sfvdl/* syscall: "lsetxattr" ret: "int" args: "char *" "char *" "void *" "size_t" "int" */
5181.56Sfvdl#define	LINUX_SYS_lsetxattr	383
5191.56Sfvdl
5201.56Sfvdl/* syscall: "fsetxattr" ret: "int" args: "int" "char *" "void *" "size_t" "int" */
5211.56Sfvdl#define	LINUX_SYS_fsetxattr	384
5221.56Sfvdl
5231.56Sfvdl/* syscall: "getxattr" ret: "ssize_t" args: "char *" "char *" "void *" "size_t" */
5241.56Sfvdl#define	LINUX_SYS_getxattr	385
5251.56Sfvdl
5261.56Sfvdl/* syscall: "lgetxattr" ret: "ssize_t" args: "char *" "char *" "void *" "size_t" */
5271.56Sfvdl#define	LINUX_SYS_lgetxattr	386
5281.56Sfvdl
5291.56Sfvdl/* syscall: "fgetxattr" ret: "ssize_t" args: "int" "char *" "void *" "size_t" */
5301.56Sfvdl#define	LINUX_SYS_fgetxattr	387
5311.56Sfvdl
5321.56Sfvdl/* syscall: "listxattr" ret: "ssize_t" args: "char *" "char *" "size_t" */
5331.56Sfvdl#define	LINUX_SYS_listxattr	388
5341.56Sfvdl
5351.56Sfvdl/* syscall: "llistxattr" ret: "ssize_t" args: "char *" "char *" "size_t" */
5361.56Sfvdl#define	LINUX_SYS_llistxattr	389
5371.56Sfvdl
5381.56Sfvdl/* syscall: "flistxattr" ret: "ssize_t" args: "int" "char *" "size_t" */
5391.56Sfvdl#define	LINUX_SYS_flistxattr	390
5401.56Sfvdl
5411.56Sfvdl/* syscall: "removexattr" ret: "int" args: "char *" "char *" */
5421.56Sfvdl#define	LINUX_SYS_removexattr	391
5431.56Sfvdl
5441.56Sfvdl/* syscall: "lremovexattr" ret: "int" args: "char *" "char *" */
5451.56Sfvdl#define	LINUX_SYS_lremovexattr	392
5461.56Sfvdl
5471.56Sfvdl/* syscall: "fremovexattr" ret: "int" args: "int" "char *" */
5481.56Sfvdl#define	LINUX_SYS_fremovexattr	393
5491.56Sfvdl
5501.51Sjdolecek/* syscall: "exit_group" ret: "int" args: "int" */
5511.51Sjdolecek#define	LINUX_SYS_exit_group	405
5521.51Sjdolecek
5531.57Sfvdl/* syscall: "clock_settime" ret: "int" args: "clockid_t" "struct linux_timespec *" */
5541.57Sfvdl#define	LINUX_SYS_clock_settime	419
5551.57Sfvdl
5561.57Sfvdl/* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct linux_timespec *" */
5571.57Sfvdl#define	LINUX_SYS_clock_gettime	420
5581.57Sfvdl
5591.57Sfvdl/* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct linux_timespec *" */
5601.57Sfvdl#define	LINUX_SYS_clock_getres	421
5611.57Sfvdl
5621.57Sfvdl/* syscall: "clock_nanosleep" ret: "int" args: "clockid_t" "int" "struct linux_timespec *" "struct linux_timespec *" */
5631.57Sfvdl#define	LINUX_SYS_clock_nanosleep	422
5641.57Sfvdl
5651.50Sjdolecek#define	LINUX_SYS_MAXSYSCALL	438
5661.30Smycroft#define	LINUX_SYS_NSYSENT	512
5671.59Schristos#endif /* _LINUX_SYS_SYSCALL_H_ */
568