linux_syscall.h revision 1.104
11.63Snjoly/* $NetBSD: linux_syscall.h,v 1.104 2017/02/03 06:07:29 martin Exp $ */
21.1Serh
31.1Serh/*
41.1Serh * System call numbers.
51.1Serh *
61.1Serh * DO NOT EDIT-- this file is automatically generated.
71.104Smartin * created from	NetBSD: syscalls.master,v 1.93 2017/02/03 06:06:08 martin Exp
81.1Serh */
91.1Serh
101.59Schristos#ifndef _LINUX_SYS_SYSCALL_H_
111.59Schristos#define	_LINUX_SYS_SYSCALL_H_
121.59Schristos
131.63Snjoly#define	LINUX_SYS_MAXSYSARGS	8
141.63Snjoly
151.1Serh/* syscall: "syscall" ret: "int" args: */
161.1Serh#define	LINUX_SYS_syscall	0
171.1Serh
181.1Serh/* syscall: "exit" ret: "int" args: "int" */
191.1Serh#define	LINUX_SYS_exit	1
201.1Serh
211.1Serh/* syscall: "fork" ret: "int" args: */
221.1Serh#define	LINUX_SYS_fork	2
231.1Serh
241.90Snjoly/* syscall: "read" ret: "ssize_t" args: "int" "void *" "size_t" */
251.1Serh#define	LINUX_SYS_read	3
261.1Serh
271.90Snjoly/* syscall: "write" ret: "ssize_t" args: "int" "const void *" "size_t" */
281.1Serh#define	LINUX_SYS_write	4
291.1Serh
301.1Serh/* syscall: "close" ret: "int" args: "int" */
311.1Serh#define	LINUX_SYS_close	6
321.1Serh
331.87Snjoly/* syscall: "creat" ret: "int" args: "const char *" "linux_umode_t" */
341.1Serh#define	LINUX_SYS_creat	8
351.1Serh
361.15Serh/* syscall: "link" ret: "int" args: "const char *" "const char *" */
371.1Serh#define	LINUX_SYS_link	9
381.1Serh
391.15Serh/* syscall: "unlink" ret: "int" args: "const char *" */
401.1Serh#define	LINUX_SYS_unlink	10
411.1Serh
421.15Serh/* syscall: "chdir" ret: "int" args: "const char *" */
431.1Serh#define	LINUX_SYS_chdir	12
441.1Serh
451.1Serh/* syscall: "fchdir" ret: "int" args: "int" */
461.1Serh#define	LINUX_SYS_fchdir	13
471.1Serh
481.92Snjoly/* syscall: "mknod" ret: "int" args: "const char *" "linux_umode_t" "unsigned" */
491.1Serh#define	LINUX_SYS_mknod	14
501.1Serh
511.15Serh/* syscall: "chmod" ret: "int" args: "const char *" "int" */
521.1Serh#define	LINUX_SYS_chmod	15
531.1Serh
541.98Snjoly/* syscall: "__posix_chown" ret: "int" args: "const char *" "uid_t" "gid_t" */
551.32Sthorpej#define	LINUX_SYS___posix_chown	16
561.1Serh
571.1Serh/* syscall: "brk" ret: "int" args: "char *" */
581.1Serh#define	LINUX_SYS_brk	17
591.1Serh
601.1Serh/* syscall: "lseek" ret: "long" args: "int" "long" "int" */
611.1Serh#define	LINUX_SYS_lseek	19
621.1Serh
631.28Smycroft/* syscall: "getpid_with_ppid" ret: "pid_t" args: */
641.28Smycroft#define	LINUX_SYS_getpid_with_ppid	20
651.1Serh
661.1Serh/* syscall: "setuid" ret: "int" args: "uid_t" */
671.1Serh#define	LINUX_SYS_setuid	23
681.1Serh
691.29Smycroft/* syscall: "getuid_with_euid" ret: "uid_t" args: */
701.29Smycroft#define	LINUX_SYS_getuid_with_euid	24
711.14Stron
721.15Serh/* syscall: "ptrace" ret: "int" args: "long" "long" "long" "long" */
731.14Stron#define	LINUX_SYS_ptrace	26
741.1Serh
751.15Serh/* syscall: "access" ret: "int" args: "const char *" "int" */
761.1Serh#define	LINUX_SYS_access	33
771.1Serh
781.1Serh/* syscall: "sync" ret: "int" args: */
791.1Serh#define	LINUX_SYS_sync	36
801.1Serh
811.1Serh/* syscall: "kill" ret: "int" args: "int" "int" */
821.1Serh#define	LINUX_SYS_kill	37
831.1Serh
841.1Serh/* syscall: "setpgid" ret: "int" args: "int" "int" */
851.1Serh#define	LINUX_SYS_setpgid	39
861.1Serh
871.15Serh/* syscall: "dup" ret: "int" args: "int" */
881.1Serh#define	LINUX_SYS_dup	41
891.1Serh
901.1Serh/* syscall: "pipe" ret: "int" args: */
911.1Serh#define	LINUX_SYS_pipe	42
921.1Serh
931.87Snjoly/* syscall: "open" ret: "int" args: "const char *" "int" "linux_umode_t" */
941.1Serh#define	LINUX_SYS_open	45
951.1Serh
961.29Smycroft/* syscall: "getgid_with_egid" ret: "gid_t" args: */
971.29Smycroft#define	LINUX_SYS_getgid_with_egid	47
981.1Serh
991.23Serh/* syscall: "sigprocmask" ret: "int" args: "int" "sigset13_t" */
1001.23Serh#define	LINUX_SYS_sigprocmask	48
1011.23Serh
1021.15Serh/* syscall: "acct" ret: "int" args: "const char *" */
1031.1Serh#define	LINUX_SYS_acct	51
1041.1Serh
1051.1Serh/* syscall: "sigpending" ret: "int" args: "linux_old_sigset_t *" */
1061.1Serh#define	LINUX_SYS_sigpending	52
1071.1Serh
1081.62Schristos/* syscall: "ioctl" ret: "int" args: "int" "u_long" "void *" */
1091.1Serh#define	LINUX_SYS_ioctl	54
1101.1Serh
1111.15Serh/* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
1121.1Serh#define	LINUX_SYS_symlink	57
1131.1Serh
1141.99Snjoly/* syscall: "readlink" ret: "ssize_t" args: "const char *" "char *" "int" */
1151.1Serh#define	LINUX_SYS_readlink	58
1161.1Serh
1171.15Serh/* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */
1181.1Serh#define	LINUX_SYS_execve	59
1191.1Serh
1201.15Serh/* syscall: "umask" ret: "mode_t" args: "mode_t" */
1211.1Serh#define	LINUX_SYS_umask	60
1221.1Serh
1231.15Serh/* syscall: "chroot" ret: "int" args: "const char *" */
1241.1Serh#define	LINUX_SYS_chroot	61
1251.1Serh
1261.1Serh/* syscall: "getpgrp" ret: "int" args: */
1271.1Serh#define	LINUX_SYS_getpgrp	63
1281.1Serh
1291.1Serh/* syscall: "getpagesize" ret: "int" args: */
1301.1Serh#define	LINUX_SYS_getpagesize	64
1311.1Serh
1321.11Sthorpej/* syscall: "__vfork14" ret: "int" args: */
1331.11Sthorpej#define	LINUX_SYS___vfork14	66
1341.11Sthorpej
1351.15Serh/* syscall: "stat" ret: "int" args: "const char *" "struct linux_stat *" */
1361.1Serh#define	LINUX_SYS_stat	67
1371.1Serh
1381.15Serh/* syscall: "lstat" ret: "int" args: "const char *" "struct linux_stat *" */
1391.1Serh#define	LINUX_SYS_lstat	68
1401.1Serh
1411.40Smanu/* syscall: "mmap" ret: "int" args: "unsigned long" "size_t" "int" "int" "int" "linux_off_t" */
1421.1Serh#define	LINUX_SYS_mmap	71
1431.1Serh
1441.15Serh/* syscall: "munmap" ret: "int" args: "void *" "size_t" */
1451.1Serh#define	LINUX_SYS_munmap	73
1461.1Serh
1471.45Schristos/* syscall: "mprotect" ret: "int" args: "const void *" "unsigned long" "int" */
1481.1Serh#define	LINUX_SYS_mprotect	74
1491.1Serh
1501.49Sjdolecek/* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
1511.49Sjdolecek#define	LINUX_SYS_madvise	75
1521.49Sjdolecek
1531.15Serh/* syscall: "getgroups" ret: "int" args: "int" "gid_t *" */
1541.1Serh#define	LINUX_SYS_getgroups	79
1551.1Serh
1561.15Serh/* syscall: "setgroups" ret: "int" args: "int" "const gid_t *" */
1571.1Serh#define	LINUX_SYS_setgroups	80
1581.1Serh
1591.1Serh/* syscall: "gethostname" ret: "int" args: "char *" "u_int" */
1601.1Serh#define	LINUX_SYS_gethostname	87
1611.1Serh
1621.1Serh/* syscall: "sethostname" ret: "int" args: "char *" "u_int" */
1631.1Serh#define	LINUX_SYS_sethostname	88
1641.1Serh
1651.15Serh/* syscall: "dup2" ret: "int" args: "int" "int" */
1661.1Serh#define	LINUX_SYS_dup2	90
1671.1Serh
1681.1Serh/* syscall: "fstat" ret: "int" args: "int" "struct linux_stat *" */
1691.1Serh#define	LINUX_SYS_fstat	91
1701.1Serh
1711.1Serh/* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */
1721.1Serh#define	LINUX_SYS_fcntl	92
1731.9Stron
1741.9Stron/* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
1751.9Stron#define	LINUX_SYS_poll	94
1761.1Serh
1771.1Serh/* syscall: "fsync" ret: "int" args: "int" */
1781.1Serh#define	LINUX_SYS_fsync	95
1791.1Serh
1801.1Serh/* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
1811.1Serh#define	LINUX_SYS_setpriority	96
1821.1Serh
1831.1Serh/* syscall: "socket" ret: "int" args: "int" "int" "int" */
1841.1Serh#define	LINUX_SYS_socket	97
1851.1Serh
1861.39Sjdolecek/* syscall: "connect" ret: "int" args: "int" "const struct osockaddr *" "unsigned int" */
1871.1Serh#define	LINUX_SYS_connect	98
1881.1Serh
1891.39Sjdolecek/* syscall: "accept" ret: "int" args: "int" "struct osockaddr *" "int *" */
1901.1Serh#define	LINUX_SYS_accept	99
1911.1Serh
1921.1Serh/* syscall: "getpriority" ret: "int" args: "int" "int" */
1931.1Serh#define	LINUX_SYS_getpriority	100
1941.1Serh
1951.62Schristos/* syscall: "send" ret: "int" args: "int" "void *" "int" "int" */
1961.1Serh#define	LINUX_SYS_send	101
1971.1Serh
1981.62Schristos/* syscall: "recv" ret: "int" args: "int" "void *" "int" "int" */
1991.1Serh#define	LINUX_SYS_recv	102
2001.1Serh
2011.1Serh/* syscall: "sigreturn" ret: "int" args: "struct linux_sigframe *" */
2021.1Serh#define	LINUX_SYS_sigreturn	103
2031.1Serh
2041.39Sjdolecek/* syscall: "bind" ret: "int" args: "int" "const struct osockaddr *" "unsigned int" */
2051.1Serh#define	LINUX_SYS_bind	104
2061.1Serh
2071.1Serh/* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "void *" "int" */
2081.1Serh#define	LINUX_SYS_setsockopt	105
2091.1Serh
2101.1Serh/* syscall: "listen" ret: "int" args: "int" "int" */
2111.1Serh#define	LINUX_SYS_listen	106
2121.1Serh
2131.62Schristos/* syscall: "sigsuspend" ret: "int" args: "void *" "int" "int" */
2141.1Serh#define	LINUX_SYS_sigsuspend	111
2151.1Serh
2161.23Serh/* syscall: "sigstack" ret: "int" args: "struct sigstack *" "struct sigstack *" */
2171.23Serh#define	LINUX_SYS_sigstack	112
2181.23Serh
2191.75Snjoly/* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct linux_msghdr *" "int" */
2201.1Serh#define	LINUX_SYS_recvmsg	113
2211.1Serh
2221.75Snjoly/* syscall: "sendmsg" ret: "ssize_t" args: "int" "const struct linux_msghdr *" "int" */
2231.1Serh#define	LINUX_SYS_sendmsg	114
2241.1Serh
2251.1Serh/* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */
2261.1Serh#define	LINUX_SYS_getsockopt	118
2271.1Serh
2281.15Serh/* syscall: "readv" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
2291.1Serh#define	LINUX_SYS_readv	120
2301.1Serh
2311.22Serh/* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
2321.1Serh#define	LINUX_SYS_writev	121
2331.1Serh
2341.98Snjoly/* syscall: "__posix_fchown" ret: "int" args: "int" "uid_t" "gid_t" */
2351.32Sthorpej#define	LINUX_SYS___posix_fchown	123
2361.1Serh
2371.87Snjoly/* syscall: "fchmod" ret: "int" args: "int" "linux_umode_t" */
2381.1Serh#define	LINUX_SYS_fchmod	124
2391.1Serh
2401.39Sjdolecek/* syscall: "recvfrom" ret: "int" args: "int" "void *" "int" "int" "struct osockaddr *" "int *" */
2411.1Serh#define	LINUX_SYS_recvfrom	125
2421.1Serh
2431.32Sthorpej/* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */
2441.1Serh#define	LINUX_SYS_setreuid	126
2451.1Serh
2461.32Sthorpej/* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */
2471.1Serh#define	LINUX_SYS_setregid	127
2481.1Serh
2491.63Snjoly/* syscall: "__posix_rename" ret: "int" args: "const char *" "const char *" */
2501.63Snjoly#define	LINUX_SYS___posix_rename	128
2511.1Serh
2521.15Serh/* syscall: "truncate" ret: "int" args: "const char *" "long" */
2531.1Serh#define	LINUX_SYS_truncate	129
2541.1Serh
2551.1Serh/* syscall: "ftruncate" ret: "int" args: "int" "long" */
2561.1Serh#define	LINUX_SYS_ftruncate	130
2571.1Serh
2581.1Serh/* syscall: "flock" ret: "int" args: "int" "int" */
2591.1Serh#define	LINUX_SYS_flock	131
2601.1Serh
2611.1Serh/* syscall: "setgid" ret: "int" args: "gid_t" */
2621.1Serh#define	LINUX_SYS_setgid	132
2631.1Serh
2641.39Sjdolecek/* syscall: "sendto" ret: "int" args: "int" "void *" "int" "int" "struct osockaddr *" "int" */
2651.1Serh#define	LINUX_SYS_sendto	133
2661.1Serh
2671.1Serh/* syscall: "shutdown" ret: "int" args: "int" "int" */
2681.1Serh#define	LINUX_SYS_shutdown	134
2691.1Serh
2701.1Serh/* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
2711.1Serh#define	LINUX_SYS_socketpair	135
2721.1Serh
2731.87Snjoly/* syscall: "mkdir" ret: "int" args: "const char *" "linux_umode_t" */
2741.1Serh#define	LINUX_SYS_mkdir	136
2751.1Serh
2761.15Serh/* syscall: "rmdir" ret: "int" args: "const char *" */
2771.1Serh#define	LINUX_SYS_rmdir	137
2781.1Serh
2791.62Schristos/* syscall: "getpeername" ret: "int" args: "int" "void *" "int *" */
2801.1Serh#define	LINUX_SYS_getpeername	141
2811.1Serh
2821.15Serh/* syscall: "getrlimit" ret: "int" args: "int" "struct orlimit *" */
2831.1Serh#define	LINUX_SYS_getrlimit	144
2841.1Serh
2851.15Serh/* syscall: "setrlimit" ret: "int" args: "int" "const struct orlimit *" */
2861.1Serh#define	LINUX_SYS_setrlimit	145
2871.1Serh
2881.1Serh/* syscall: "setsid" ret: "int" args: */
2891.1Serh#define	LINUX_SYS_setsid	147
2901.1Serh
2911.62Schristos/* syscall: "getsockname" ret: "int" args: "int" "void *" "int *" */
2921.1Serh#define	LINUX_SYS_getsockname	150
2931.1Serh
2941.1Serh/* syscall: "sigaction" ret: "int" args: "int" "const struct linux_old_sigaction *" "struct linux_old_sigaction *" */
2951.1Serh#define	LINUX_SYS_sigaction	156
2961.23Serh
2971.23Serh/* syscall: "getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
2981.23Serh#define	LINUX_SYS_getdirentries	159
2991.23Serh
3001.23Serh/* syscall: "getdomainname" ret: "int" args: "char *" "int" */
3011.23Serh#define	LINUX_SYS_getdomainname	165
3021.1Serh
3031.24Sjdolecek/* syscall: "setdomainname" ret: "int" args: "char *" "int" */
3041.24Sjdolecek#define	LINUX_SYS_setdomainname	166
3051.43Schristos
3061.43Schristos/* syscall: "ugetrlimit" ret: "int" args: "int" "struct rlimit *" */
3071.43Schristos#define	LINUX_SYS_ugetrlimit	191
3081.24Sjdolecek
3091.49Sjdolecek#ifdef SYSVMSG
3101.1Serh/* syscall: "msgctl" ret: "int" args: "int" "int" "struct linux_msqid_ds *" */
3111.1Serh#define	LINUX_SYS_msgctl	200
3121.1Serh
3131.1Serh/* syscall: "msgget" ret: "int" args: "key_t" "int" */
3141.1Serh#define	LINUX_SYS_msgget	201
3151.1Serh
3161.17Serh/* syscall: "msgrcv" ret: "ssize_t" args: "int" "void *" "size_t" "long" "int" */
3171.1Serh#define	LINUX_SYS_msgrcv	202
3181.1Serh
3191.1Serh/* syscall: "msgsnd" ret: "int" args: "int" "void *" "size_t" "int" */
3201.1Serh#define	LINUX_SYS_msgsnd	203
3211.1Serh
3221.49Sjdolecek#else
3231.49Sjdolecek#endif
3241.49Sjdolecek#ifdef SYSVSEM
3251.1Serh/* syscall: "semctl" ret: "int" args: "int" "int" "int" "union linux_semun" */
3261.1Serh#define	LINUX_SYS_semctl	204
3271.1Serh
3281.1Serh/* syscall: "semget" ret: "int" args: "key_t" "int" "int" */
3291.1Serh#define	LINUX_SYS_semget	205
3301.1Serh
3311.15Serh/* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "size_t" */
3321.1Serh#define	LINUX_SYS_semop	206
3331.1Serh
3341.49Sjdolecek#else
3351.49Sjdolecek#endif
3361.1Serh/* syscall: "olduname" ret: "int" args: "struct linux_old_utsname *" */
3371.1Serh#define	LINUX_SYS_olduname	207
3381.1Serh
3391.98Snjoly/* syscall: "__posix_lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */
3401.32Sthorpej#define	LINUX_SYS___posix_lchown	208
3411.1Serh
3421.49Sjdolecek#ifdef SYSVSHM
3431.1Serh/* syscall: "shmat" ret: "int" args: "int" "void *" "int" "u_long *" */
3441.1Serh#define	LINUX_SYS_shmat	209
3451.1Serh
3461.1Serh/* syscall: "shmctl" ret: "int" args: "int" "int" "struct linux_shmid_ds *" */
3471.1Serh#define	LINUX_SYS_shmctl	210
3481.1Serh
3491.15Serh/* syscall: "shmdt" ret: "int" args: "const void *" */
3501.1Serh#define	LINUX_SYS_shmdt	211
3511.1Serh
3521.15Serh/* syscall: "shmget" ret: "int" args: "key_t" "size_t" "int" */
3531.1Serh#define	LINUX_SYS_shmget	212
3541.1Serh
3551.49Sjdolecek#else
3561.49Sjdolecek#endif
3571.67Snjoly/* syscall: "__msync13" ret: "int" args: "void *" "size_t" "int" */
3581.67Snjoly#define	LINUX_SYS___msync13	217
3591.1Serh
3601.66Snjoly/* syscall: "getpgid" ret: "pid_t" args: "pid_t" */
3611.1Serh#define	LINUX_SYS_getpgid	233
3621.1Serh
3631.1Serh/* syscall: "getsid" ret: "pid_t" args: "pid_t" */
3641.1Serh#define	LINUX_SYS_getsid	234
3651.1Serh
3661.1Serh/* syscall: "fdatasync" ret: "int" args: "int" */
3671.1Serh#define	LINUX_SYS_fdatasync	261
3681.25Sjdolecek
3691.25Sjdolecek/* syscall: "swapoff" ret: "int" args: "const char *" */
3701.25Sjdolecek#define	LINUX_SYS_swapoff	304
3711.1Serh
3721.1Serh/* syscall: "getdents" ret: "int" args: "int" "struct linux_dirent *" "unsigned int" */
3731.1Serh#define	LINUX_SYS_getdents	305
3741.1Serh
3751.16Serh/* syscall: "reboot" ret: "int" args: "int" "int" "int" "void *" */
3761.1Serh#define	LINUX_SYS_reboot	311
3771.18Serh
3781.78Schs/* syscall: "clone" ret: "int" args: "int" "void *" "void *" "void *" "void *" */
3791.18Serh#define	LINUX_SYS_clone	312
3801.1Serh
3811.49Sjdolecek#ifdef EXEC_AOUT
3821.24Sjdolecek/* syscall: "uselib" ret: "int" args: "const char *" */
3831.1Serh#define	LINUX_SYS_uselib	313
3841.1Serh
3851.49Sjdolecek#else
3861.49Sjdolecek#endif
3871.1Serh/* syscall: "mlock" ret: "int" args: "const void *" "size_t" */
3881.1Serh#define	LINUX_SYS_mlock	314
3891.1Serh
3901.1Serh/* syscall: "munlock" ret: "int" args: "const void *" "size_t" */
3911.1Serh#define	LINUX_SYS_munlock	315
3921.21Sjdolecek
3931.21Sjdolecek/* syscall: "mlockall" ret: "int" args: "int" */
3941.21Sjdolecek#define	LINUX_SYS_mlockall	316
3951.21Sjdolecek
3961.21Sjdolecek/* syscall: "munlockall" ret: "int" args: */
3971.21Sjdolecek#define	LINUX_SYS_munlockall	317
3981.31Sjdolecek
3991.31Sjdolecek/* syscall: "sysinfo" ret: "int" args: "struct linux_sysinfo *" */
4001.31Sjdolecek#define	LINUX_SYS_sysinfo	318
4011.1Serh
4021.1Serh/* syscall: "__sysctl" ret: "int" args: "struct linux___sysctl *" */
4031.1Serh#define	LINUX_SYS___sysctl	319
4041.1Serh
4051.15Serh/* syscall: "swapon" ret: "int" args: "const char *" */
4061.1Serh#define	LINUX_SYS_swapon	322
4071.1Serh
4081.1Serh/* syscall: "times" ret: "int" args: "struct times *" */
4091.1Serh#define	LINUX_SYS_times	323
4101.1Serh
4111.76Snjoly/* syscall: "personality" ret: "int" args: "unsigned long" */
4121.1Serh#define	LINUX_SYS_personality	324
4131.1Serh
4141.15Serh/* syscall: "setfsuid" ret: "int" args: "uid_t" */
4151.15Serh#define	LINUX_SYS_setfsuid	325
4161.15Serh
4171.65Snjoly/* syscall: "setfsgid" ret: "int" args: "gid_t" */
4181.65Snjoly#define	LINUX_SYS_setfsgid	326
4191.65Snjoly
4201.15Serh/* syscall: "statfs" ret: "int" args: "const char *" "struct linux_statfs *" */
4211.1Serh#define	LINUX_SYS_statfs	328
4221.1Serh
4231.1Serh/* syscall: "fstatfs" ret: "int" args: "int" "struct linux_statfs *" */
4241.1Serh#define	LINUX_SYS_fstatfs	329
4251.12Stron
4261.12Stron/* syscall: "sched_setparam" ret: "int" args: "pid_t" "const struct linux_sched_param *" */
4271.12Stron#define	LINUX_SYS_sched_setparam	330
4281.12Stron
4291.12Stron/* syscall: "sched_getparam" ret: "int" args: "pid_t" "struct linux_sched_param *" */
4301.12Stron#define	LINUX_SYS_sched_getparam	331
4311.12Stron
4321.12Stron/* syscall: "sched_setscheduler" ret: "int" args: "pid_t" "int" "const struct linux_sched_param *" */
4331.12Stron#define	LINUX_SYS_sched_setscheduler	332
4341.12Stron
4351.12Stron/* syscall: "sched_getscheduler" ret: "int" args: "pid_t" */
4361.12Stron#define	LINUX_SYS_sched_getscheduler	333
4371.12Stron
4381.12Stron/* syscall: "sched_yield" ret: "int" args: */
4391.12Stron#define	LINUX_SYS_sched_yield	334
4401.12Stron
4411.12Stron/* syscall: "sched_get_priority_max" ret: "int" args: "int" */
4421.12Stron#define	LINUX_SYS_sched_get_priority_max	335
4431.12Stron
4441.12Stron/* syscall: "sched_get_priority_min" ret: "int" args: "int" */
4451.12Stron#define	LINUX_SYS_sched_get_priority_min	336
4461.1Serh
4471.1Serh/* syscall: "uname" ret: "int" args: "struct linux_utsname *" */
4481.1Serh#define	LINUX_SYS_uname	339
4491.1Serh
4501.68Snjoly/* syscall: "nanosleep" ret: "int" args: "const struct linux_timespec *" "struct linux_timespec *" */
4511.1Serh#define	LINUX_SYS_nanosleep	340
4521.1Serh
4531.1Serh/* syscall: "mremap" ret: "void *" args: "void *" "size_t" "size_t" "u_long" */
4541.1Serh#define	LINUX_SYS_mremap	341
4551.11Sthorpej
4561.11Sthorpej/* syscall: "setresuid" ret: "int" args: "uid_t" "uid_t" "uid_t" */
4571.11Sthorpej#define	LINUX_SYS_setresuid	343
4581.11Sthorpej
4591.11Sthorpej/* syscall: "getresuid" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */
4601.11Sthorpej#define	LINUX_SYS_getresuid	344
4611.7Sthorpej
4621.91Snjoly/* syscall: "pread" ret: "int" args: "int" "char *" "size_t" "off_t" */
4631.7Sthorpej#define	LINUX_SYS_pread	349
4641.7Sthorpej
4651.91Snjoly/* syscall: "pwrite" ret: "int" args: "int" "char *" "size_t" "off_t" */
4661.7Sthorpej#define	LINUX_SYS_pwrite	350
4671.1Serh
4681.1Serh/* syscall: "rt_sigreturn" ret: "int" args: "struct linux_rt_sigframe *" */
4691.1Serh#define	LINUX_SYS_rt_sigreturn	351
4701.1Serh
4711.1Serh/* syscall: "rt_sigaction" ret: "int" args: "int" "const struct linux_sigaction *" "struct linux_sigaction *" "size_t" */
4721.1Serh#define	LINUX_SYS_rt_sigaction	352
4731.1Serh
4741.1Serh/* syscall: "rt_sigprocmask" ret: "int" args: "int" "const linux_sigset_t *" "linux_sigset_t *" "size_t" */
4751.1Serh#define	LINUX_SYS_rt_sigprocmask	353
4761.1Serh
4771.1Serh/* syscall: "rt_sigpending" ret: "int" args: "linux_sigset_t *" "size_t" */
4781.1Serh#define	LINUX_SYS_rt_sigpending	354
4791.1Serh
4801.82Schristos/* syscall: "rt_sigtimedwait" ret: "int" args: "const linux_sigset_t *" "linux_siginfo_t *" "const struct linux_timespec *" */
4811.82Schristos#define	LINUX_SYS_rt_sigtimedwait	355
4821.82Schristos
4831.4Serh/* syscall: "rt_queueinfo" ret: "int" args: "int" "int" "linux_siginfo_t *" */
4841.1Serh#define	LINUX_SYS_rt_queueinfo	356
4851.1Serh
4861.1Serh/* syscall: "rt_sigsuspend" ret: "int" args: "linux_sigset_t *" "size_t" */
4871.1Serh#define	LINUX_SYS_rt_sigsuspend	357
4881.1Serh
4891.72Snjoly/* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval50 *" */
4901.1Serh#define	LINUX_SYS_select	358
4911.1Serh
4921.72Snjoly/* syscall: "gettimeofday" ret: "int" args: "struct timeval50 *" "struct timezone *" */
4931.1Serh#define	LINUX_SYS_gettimeofday	359
4941.1Serh
4951.89Snjoly/* syscall: "settimeofday" ret: "int" args: "struct timeval50 *" "struct timezone *" */
4961.1Serh#define	LINUX_SYS_settimeofday	360
4971.1Serh
4981.72Snjoly/* syscall: "getitimer" ret: "int" args: "int" "struct itimerval50 *" */
4991.1Serh#define	LINUX_SYS_getitimer	361
5001.1Serh
5011.72Snjoly/* syscall: "setitimer" ret: "int" args: "int" "const struct itimerval50 *" "struct itimerval50 *" */
5021.1Serh#define	LINUX_SYS_setitimer	362
5031.1Serh
5041.94Snjoly/* syscall: "utimes" ret: "int" args: "const char *" "const struct timeval50 *" */
5051.1Serh#define	LINUX_SYS_utimes	363
5061.1Serh
5071.72Snjoly/* syscall: "getrusage" ret: "int" args: "int" "struct rusage50 *" */
5081.1Serh#define	LINUX_SYS_getrusage	364
5091.1Serh
5101.73Snjoly/* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage50 *" */
5111.1Serh#define	LINUX_SYS_wait4	365
5121.1Serh
5131.8Stron/* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
5141.8Stron#define	LINUX_SYS___getcwd	367
5151.46Schristos
5161.49Sjdolecek/* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */
5171.49Sjdolecek#define	LINUX_SYS_mincore	375
5181.49Sjdolecek
5191.46Schristos/* syscall: "getdents64" ret: "int" args: "int" "struct linux_dirent64 *" "unsigned int" */
5201.46Schristos#define	LINUX_SYS_getdents64	377
5211.8Stron
5221.78Schs/* syscall: "gettid" ret: "pid_t" args: */
5231.78Schs#define	LINUX_SYS_gettid	378
5241.78Schs
5251.78Schs/* syscall: "tkill" ret: "int" args: "int" "int" */
5261.78Schs#define	LINUX_SYS_tkill	381
5271.78Schs
5281.56Sfvdl/* syscall: "setxattr" ret: "int" args: "char *" "char *" "void *" "size_t" "int" */
5291.56Sfvdl#define	LINUX_SYS_setxattr	382
5301.56Sfvdl
5311.56Sfvdl/* syscall: "lsetxattr" ret: "int" args: "char *" "char *" "void *" "size_t" "int" */
5321.56Sfvdl#define	LINUX_SYS_lsetxattr	383
5331.56Sfvdl
5341.56Sfvdl/* syscall: "fsetxattr" ret: "int" args: "int" "char *" "void *" "size_t" "int" */
5351.56Sfvdl#define	LINUX_SYS_fsetxattr	384
5361.56Sfvdl
5371.56Sfvdl/* syscall: "getxattr" ret: "ssize_t" args: "char *" "char *" "void *" "size_t" */
5381.56Sfvdl#define	LINUX_SYS_getxattr	385
5391.56Sfvdl
5401.56Sfvdl/* syscall: "lgetxattr" ret: "ssize_t" args: "char *" "char *" "void *" "size_t" */
5411.56Sfvdl#define	LINUX_SYS_lgetxattr	386
5421.56Sfvdl
5431.56Sfvdl/* syscall: "fgetxattr" ret: "ssize_t" args: "int" "char *" "void *" "size_t" */
5441.56Sfvdl#define	LINUX_SYS_fgetxattr	387
5451.56Sfvdl
5461.56Sfvdl/* syscall: "listxattr" ret: "ssize_t" args: "char *" "char *" "size_t" */
5471.56Sfvdl#define	LINUX_SYS_listxattr	388
5481.56Sfvdl
5491.56Sfvdl/* syscall: "llistxattr" ret: "ssize_t" args: "char *" "char *" "size_t" */
5501.56Sfvdl#define	LINUX_SYS_llistxattr	389
5511.56Sfvdl
5521.56Sfvdl/* syscall: "flistxattr" ret: "ssize_t" args: "int" "char *" "size_t" */
5531.56Sfvdl#define	LINUX_SYS_flistxattr	390
5541.56Sfvdl
5551.56Sfvdl/* syscall: "removexattr" ret: "int" args: "char *" "char *" */
5561.56Sfvdl#define	LINUX_SYS_removexattr	391
5571.56Sfvdl
5581.56Sfvdl/* syscall: "lremovexattr" ret: "int" args: "char *" "char *" */
5591.56Sfvdl#define	LINUX_SYS_lremovexattr	392
5601.56Sfvdl
5611.56Sfvdl/* syscall: "fremovexattr" ret: "int" args: "int" "char *" */
5621.56Sfvdl#define	LINUX_SYS_fremovexattr	393
5631.56Sfvdl
5641.78Schs/* syscall: "futex" ret: "int" args: "int *" "int" "int" "const struct linux_timespec *" "int *" "int" */
5651.78Schs#define	LINUX_SYS_futex	394
5661.78Schs
5671.78Schs/* syscall: "sched_setaffinity" ret: "int" args: "pid_t" "unsigned int" "unsigned long *" */
5681.78Schs#define	LINUX_SYS_sched_setaffinity	395
5691.78Schs
5701.78Schs/* syscall: "sched_getaffinity" ret: "int" args: "pid_t" "unsigned int" "unsigned long *" */
5711.78Schs#define	LINUX_SYS_sched_getaffinity	396
5721.78Schs
5731.51Sjdolecek/* syscall: "exit_group" ret: "int" args: "int" */
5741.51Sjdolecek#define	LINUX_SYS_exit_group	405
5751.51Sjdolecek
5761.78Schs/* syscall: "set_tid_address" ret: "int" args: "int *" */
5771.78Schs#define	LINUX_SYS_set_tid_address	411
5781.78Schs
5791.93Snjoly/* syscall: "fadvise64" ret: "int" args: "int" "off_t" "size_t" "int" */
5801.80Salnsn#define	LINUX_SYS_fadvise64	413
5811.80Salnsn
5821.57Sfvdl/* syscall: "clock_settime" ret: "int" args: "clockid_t" "struct linux_timespec *" */
5831.57Sfvdl#define	LINUX_SYS_clock_settime	419
5841.57Sfvdl
5851.57Sfvdl/* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct linux_timespec *" */
5861.57Sfvdl#define	LINUX_SYS_clock_gettime	420
5871.57Sfvdl
5881.57Sfvdl/* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct linux_timespec *" */
5891.57Sfvdl#define	LINUX_SYS_clock_getres	421
5901.57Sfvdl
5911.57Sfvdl/* syscall: "clock_nanosleep" ret: "int" args: "clockid_t" "int" "struct linux_timespec *" "struct linux_timespec *" */
5921.57Sfvdl#define	LINUX_SYS_clock_nanosleep	422
5931.57Sfvdl
5941.78Schs/* syscall: "tgkill" ret: "int" args: "int" "int" "int" */
5951.78Schs#define	LINUX_SYS_tgkill	424
5961.78Schs
5971.88Snjoly/* syscall: "stat64" ret: "int" args: "const char *" "struct linux_stat64 *" */
5981.88Snjoly#define	LINUX_SYS_stat64	425
5991.88Snjoly
6001.88Snjoly/* syscall: "lstat64" ret: "int" args: "const char *" "struct linux_stat64 *" */
6011.88Snjoly#define	LINUX_SYS_lstat64	426
6021.88Snjoly
6031.88Snjoly/* syscall: "fstat64" ret: "int" args: "int" "struct linux_stat64 *" */
6041.88Snjoly#define	LINUX_SYS_fstat64	427
6051.88Snjoly
6061.86Schs/* syscall: "openat" ret: "int" args: "int" "const char *" "int" "..." */
6071.86Schs#define	LINUX_SYS_openat	450
6081.86Schs
6091.86Schs/* syscall: "mkdirat" ret: "int" args: "int" "const char *" "linux_umode_t" */
6101.86Schs#define	LINUX_SYS_mkdirat	451
6111.86Schs
6121.86Schs/* syscall: "mknodat" ret: "int" args: "int" "const char *" "linux_umode_t" "unsigned" */
6131.86Schs#define	LINUX_SYS_mknodat	452
6141.86Schs
6151.86Schs/* syscall: "fchownat" ret: "int" args: "int" "const char *" "uid_t" "gid_t" "int" */
6161.86Schs#define	LINUX_SYS_fchownat	453
6171.86Schs
6181.88Snjoly/* syscall: "fstatat64" ret: "int" args: "int" "const char *" "struct linux_stat64 *" "int" */
6191.88Snjoly#define	LINUX_SYS_fstatat64	455
6201.88Snjoly
6211.86Schs/* syscall: "unlinkat" ret: "int" args: "int" "const char *" "int" */
6221.86Schs#define	LINUX_SYS_unlinkat	456
6231.86Schs
6241.86Schs/* syscall: "renameat" ret: "int" args: "int" "const char *" "int" "const char *" */
6251.86Schs#define	LINUX_SYS_renameat	457
6261.86Schs
6271.86Schs/* syscall: "linkat" ret: "int" args: "int" "const char *" "int" "const char *" "int" */
6281.86Schs#define	LINUX_SYS_linkat	458
6291.86Schs
6301.86Schs/* syscall: "symlinkat" ret: "int" args: "const char *" "int" "const char *" */
6311.86Schs#define	LINUX_SYS_symlinkat	459
6321.86Schs
6331.99Snjoly/* syscall: "readlinkat" ret: "ssize_t" args: "int" "const char *" "char *" "size_t" */
6341.86Schs#define	LINUX_SYS_readlinkat	460
6351.86Schs
6361.86Schs/* syscall: "fchmodat" ret: "int" args: "int" "const char *" "linux_umode_t" */
6371.86Schs#define	LINUX_SYS_fchmodat	461
6381.86Schs
6391.86Schs/* syscall: "faccessat" ret: "int" args: "int" "const char *" "int" */
6401.86Schs#define	LINUX_SYS_faccessat	462
6411.86Schs
6421.100Smanu/* syscall: "pselect6" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct linux_timespec *" "linux_sized_sigset_t *" */
6431.100Smanu#define	LINUX_SYS_pselect6	463
6441.100Smanu
6451.95Snjoly/* syscall: "ppoll" ret: "int" args: "struct pollfd *" "u_int" "struct linux_timespec *" "linux_sigset_t *" */
6461.83Spooka#define	LINUX_SYS_ppoll	464
6471.83Spooka
6481.78Schs/* syscall: "set_robust_list" ret: "int" args: "struct linux_robust_list_head *" "size_t" */
6491.78Schs#define	LINUX_SYS_set_robust_list	466
6501.78Schs
6511.78Schs/* syscall: "get_robust_list" ret: "int" args: "int" "struct linux_robust_list_head **" "size_t *" */
6521.78Schs#define	LINUX_SYS_get_robust_list	467
6531.78Schs
6541.85Snjoly/* syscall: "utimensat" ret: "int" args: "int" "const char *" "struct linux_timespec *" "int" */
6551.85Snjoly#define	LINUX_SYS_utimensat	475
6561.85Snjoly
6571.79She/* syscall: "dup3" ret: "int" args: "int" "int" "int" */
6581.79She#define	LINUX_SYS_dup3	487
6591.79She
6601.79She/* syscall: "pipe2" ret: "int" args: "int *" "int" */
6611.79She#define	LINUX_SYS_pipe2	488
6621.79She
6631.104Smartin/* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */
6641.104Smartin#define	LINUX_SYS_accept4	502
6651.104Smartin
6661.104Smartin#define	LINUX_SYS_MAXSYSCALL	503
6671.30Smycroft#define	LINUX_SYS_NSYSENT	512
6681.59Schristos#endif /* _LINUX_SYS_SYSCALL_H_ */
669