linux_syscall.h revision 1.33
11.33Schristos/* $NetBSD: linux_syscall.h,v 1.33 2006/06/10 21:16:50 christos Exp $ */
21.1Smanu
31.1Smanu/*
41.1Smanu * System call numbers.
51.1Smanu *
61.1Smanu * DO NOT EDIT-- this file is automatically generated.
71.33Schristos * created from	NetBSD: syscalls.master,v 1.27 2006/06/10 21:15:33 christos Exp
81.1Smanu */
91.1Smanu
101.33Schristos#ifndef _LINUX_SYS_SYSCALL_H_
111.33Schristos#define	_LINUX_SYS_SYSCALL_H_
121.33Schristos
131.1Smanu/* syscall: "syscall" ret: "int" args: */
141.1Smanu#define	LINUX_SYS_syscall	0
151.1Smanu
161.1Smanu/* syscall: "exit" ret: "int" args: "int" */
171.1Smanu#define	LINUX_SYS_exit	1
181.1Smanu
191.1Smanu/* syscall: "fork" ret: "int" args: */
201.1Smanu#define	LINUX_SYS_fork	2
211.1Smanu
221.1Smanu/* syscall: "read" ret: "int" args: "int" "char *" "u_int" */
231.1Smanu#define	LINUX_SYS_read	3
241.1Smanu
251.1Smanu/* syscall: "write" ret: "int" args: "int" "char *" "u_int" */
261.1Smanu#define	LINUX_SYS_write	4
271.1Smanu
281.1Smanu/* syscall: "open" ret: "int" args: "const char *" "int" "int" */
291.1Smanu#define	LINUX_SYS_open	5
301.1Smanu
311.1Smanu/* syscall: "close" ret: "int" args: "int" */
321.1Smanu#define	LINUX_SYS_close	6
331.1Smanu
341.1Smanu/* syscall: "waitpid" ret: "int" args: "int" "int *" "int" */
351.1Smanu#define	LINUX_SYS_waitpid	7
361.1Smanu
371.1Smanu/* syscall: "creat" ret: "int" args: "const char *" "int" */
381.1Smanu#define	LINUX_SYS_creat	8
391.1Smanu
401.1Smanu/* syscall: "link" ret: "int" args: "const char *" "const char *" */
411.1Smanu#define	LINUX_SYS_link	9
421.1Smanu
431.1Smanu/* syscall: "unlink" ret: "int" args: "const char *" */
441.1Smanu#define	LINUX_SYS_unlink	10
451.1Smanu
461.1Smanu/* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */
471.1Smanu#define	LINUX_SYS_execve	11
481.1Smanu
491.1Smanu/* syscall: "chdir" ret: "int" args: "const char *" */
501.1Smanu#define	LINUX_SYS_chdir	12
511.1Smanu
521.1Smanu/* syscall: "time" ret: "int" args: "linux_time_t *" */
531.1Smanu#define	LINUX_SYS_time	13
541.1Smanu
551.1Smanu/* syscall: "mknod" ret: "int" args: "const char *" "int" "int" */
561.1Smanu#define	LINUX_SYS_mknod	14
571.1Smanu
581.1Smanu/* syscall: "chmod" ret: "int" args: "const char *" "int" */
591.1Smanu#define	LINUX_SYS_chmod	15
601.1Smanu
611.1Smanu/* syscall: "lchown" ret: "int" args: "const char *" "int" "int" */
621.1Smanu#define	LINUX_SYS_lchown	16
631.1Smanu
641.1Smanu				/* 17 is obsolete break */
651.1Smanu				/* 18 is obsolete ostat */
661.1Smanu/* syscall: "lseek" ret: "long" args: "int" "long" "int" */
671.1Smanu#define	LINUX_SYS_lseek	19
681.1Smanu
691.1Smanu/* syscall: "getpid" ret: "pid_t" args: */
701.1Smanu#define	LINUX_SYS_getpid	20
711.1Smanu
721.1Smanu				/* 22 is obsolete umount */
731.1Smanu/* syscall: "setuid" ret: "int" args: "uid_t" */
741.1Smanu#define	LINUX_SYS_setuid	23
751.1Smanu
761.1Smanu/* syscall: "getuid" ret: "uid_t" args: */
771.1Smanu#define	LINUX_SYS_getuid	24
781.1Smanu
791.1Smanu/* syscall: "stime" ret: "int" args: "linux_time_t *" */
801.1Smanu#define	LINUX_SYS_stime	25
811.1Smanu
821.1Smanu/* syscall: "ptrace" ret: "int" args: "int" "int" "int" "int" */
831.1Smanu#define	LINUX_SYS_ptrace	26
841.1Smanu
851.1Smanu/* syscall: "alarm" ret: "int" args: "unsigned int" */
861.1Smanu#define	LINUX_SYS_alarm	27
871.1Smanu
881.1Smanu				/* 28 is obsolete ofstat */
891.1Smanu/* syscall: "pause" ret: "int" args: */
901.1Smanu#define	LINUX_SYS_pause	29
911.1Smanu
921.1Smanu/* syscall: "utime" ret: "int" args: "const char *" "struct linux_utimbuf *" */
931.1Smanu#define	LINUX_SYS_utime	30
941.1Smanu
951.1Smanu				/* 31 is obsolete stty */
961.1Smanu				/* 32 is obsolete gtty */
971.1Smanu/* syscall: "access" ret: "int" args: "const char *" "int" */
981.1Smanu#define	LINUX_SYS_access	33
991.1Smanu
1001.1Smanu/* syscall: "nice" ret: "int" args: "int" */
1011.1Smanu#define	LINUX_SYS_nice	34
1021.1Smanu
1031.1Smanu				/* 35 is obsolete ftime */
1041.1Smanu/* syscall: "sync" ret: "int" args: */
1051.1Smanu#define	LINUX_SYS_sync	36
1061.1Smanu
1071.1Smanu/* syscall: "kill" ret: "int" args: "int" "int" */
1081.1Smanu#define	LINUX_SYS_kill	37
1091.1Smanu
1101.1Smanu/* syscall: "rename" ret: "int" args: "const char *" "const char *" */
1111.1Smanu#define	LINUX_SYS_rename	38
1121.1Smanu
1131.1Smanu/* syscall: "mkdir" ret: "int" args: "const char *" "int" */
1141.1Smanu#define	LINUX_SYS_mkdir	39
1151.1Smanu
1161.1Smanu/* syscall: "rmdir" ret: "int" args: "const char *" */
1171.1Smanu#define	LINUX_SYS_rmdir	40
1181.1Smanu
1191.1Smanu/* syscall: "dup" ret: "int" args: "u_int" */
1201.1Smanu#define	LINUX_SYS_dup	41
1211.1Smanu
1221.1Smanu/* syscall: "pipe" ret: "int" args: "int *" */
1231.1Smanu#define	LINUX_SYS_pipe	42
1241.1Smanu
1251.1Smanu/* syscall: "times" ret: "int" args: "struct times *" */
1261.1Smanu#define	LINUX_SYS_times	43
1271.1Smanu
1281.1Smanu				/* 44 is obsolete prof */
1291.1Smanu/* syscall: "brk" ret: "int" args: "char *" */
1301.1Smanu#define	LINUX_SYS_brk	45
1311.1Smanu
1321.1Smanu/* syscall: "setgid" ret: "int" args: "gid_t" */
1331.1Smanu#define	LINUX_SYS_setgid	46
1341.1Smanu
1351.1Smanu/* syscall: "getgid" ret: "gid_t" args: */
1361.1Smanu#define	LINUX_SYS_getgid	47
1371.1Smanu
1381.1Smanu/* syscall: "signal" ret: "int" args: "int" "linux_handler_t" */
1391.1Smanu#define	LINUX_SYS_signal	48
1401.1Smanu
1411.1Smanu/* syscall: "geteuid" ret: "uid_t" args: */
1421.1Smanu#define	LINUX_SYS_geteuid	49
1431.1Smanu
1441.1Smanu/* syscall: "getegid" ret: "gid_t" args: */
1451.1Smanu#define	LINUX_SYS_getegid	50
1461.1Smanu
1471.1Smanu/* syscall: "acct" ret: "int" args: "char *" */
1481.1Smanu#define	LINUX_SYS_acct	51
1491.1Smanu
1501.1Smanu				/* 53 is obsolete lock */
1511.1Smanu/* syscall: "ioctl" ret: "int" args: "int" "u_long" "caddr_t" */
1521.1Smanu#define	LINUX_SYS_ioctl	54
1531.1Smanu
1541.1Smanu/* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */
1551.1Smanu#define	LINUX_SYS_fcntl	55
1561.1Smanu
1571.1Smanu				/* 56 is obsolete mpx */
1581.1Smanu/* syscall: "setpgid" ret: "int" args: "int" "int" */
1591.1Smanu#define	LINUX_SYS_setpgid	57
1601.1Smanu
1611.1Smanu				/* 58 is obsolete ulimit */
1621.1Smanu/* syscall: "olduname" ret: "int" args: "struct linux_old_utsname *" */
1631.1Smanu#define	LINUX_SYS_olduname	59
1641.1Smanu
1651.1Smanu/* syscall: "umask" ret: "int" args: "int" */
1661.1Smanu#define	LINUX_SYS_umask	60
1671.1Smanu
1681.1Smanu/* syscall: "chroot" ret: "int" args: "char *" */
1691.1Smanu#define	LINUX_SYS_chroot	61
1701.1Smanu
1711.1Smanu/* syscall: "dup2" ret: "int" args: "u_int" "u_int" */
1721.1Smanu#define	LINUX_SYS_dup2	63
1731.1Smanu
1741.1Smanu/* syscall: "getppid" ret: "pid_t" args: */
1751.1Smanu#define	LINUX_SYS_getppid	64
1761.1Smanu
1771.1Smanu/* syscall: "getpgrp" ret: "int" args: */
1781.1Smanu#define	LINUX_SYS_getpgrp	65
1791.1Smanu
1801.1Smanu/* syscall: "setsid" ret: "int" args: */
1811.1Smanu#define	LINUX_SYS_setsid	66
1821.1Smanu
1831.1Smanu/* syscall: "sigaction" ret: "int" args: "int" "const struct linux_old_sigaction *" "struct linux_old_sigaction *" */
1841.1Smanu#define	LINUX_SYS_sigaction	67
1851.1Smanu
1861.1Smanu/* syscall: "siggetmask" ret: "int" args: */
1871.1Smanu#define	LINUX_SYS_siggetmask	68
1881.1Smanu
1891.1Smanu/* syscall: "sigsetmask" ret: "int" args: "linux_old_sigset_t" */
1901.1Smanu#define	LINUX_SYS_sigsetmask	69
1911.1Smanu
1921.1Smanu/* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */
1931.1Smanu#define	LINUX_SYS_setreuid	70
1941.1Smanu
1951.1Smanu/* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */
1961.1Smanu#define	LINUX_SYS_setregid	71
1971.1Smanu
1981.1Smanu/* syscall: "sigsuspend" ret: "int" args: "caddr_t" "int" "int" */
1991.1Smanu#define	LINUX_SYS_sigsuspend	72
2001.1Smanu
2011.1Smanu/* syscall: "sigpending" ret: "int" args: "linux_old_sigset_t *" */
2021.1Smanu#define	LINUX_SYS_sigpending	73
2031.1Smanu
2041.1Smanu/* syscall: "sethostname" ret: "int" args: "char *" "u_int" */
2051.1Smanu#define	LINUX_SYS_sethostname	74
2061.1Smanu
2071.1Smanu/* syscall: "setrlimit" ret: "int" args: "u_int" "struct orlimit *" */
2081.1Smanu#define	LINUX_SYS_setrlimit	75
2091.1Smanu
2101.1Smanu/* syscall: "getrlimit" ret: "int" args: "u_int" "struct orlimit *" */
2111.1Smanu#define	LINUX_SYS_getrlimit	76
2121.1Smanu
2131.1Smanu/* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */
2141.1Smanu#define	LINUX_SYS_getrusage	77
2151.1Smanu
2161.1Smanu/* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
2171.1Smanu#define	LINUX_SYS_gettimeofday	78
2181.1Smanu
2191.1Smanu/* syscall: "settimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
2201.1Smanu#define	LINUX_SYS_settimeofday	79
2211.1Smanu
2221.1Smanu/* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */
2231.1Smanu#define	LINUX_SYS_getgroups	80
2241.1Smanu
2251.1Smanu/* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */
2261.1Smanu#define	LINUX_SYS_setgroups	81
2271.1Smanu
2281.1Smanu/* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */
2291.1Smanu#define	LINUX_SYS_select	82
2301.1Smanu
2311.1Smanu/* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
2321.1Smanu#define	LINUX_SYS_symlink	83
2331.1Smanu
2341.1Smanu/* syscall: "oolstat" ret: "int" args: "const char *" "struct stat43 *" */
2351.1Smanu#define	LINUX_SYS_oolstat	84
2361.1Smanu
2371.1Smanu/* syscall: "readlink" ret: "int" args: "const char *" "char *" "int" */
2381.1Smanu#define	LINUX_SYS_readlink	85
2391.1Smanu
2401.31Schristos#ifdef EXEC_AOUT
2411.1Smanu/* syscall: "uselib" ret: "int" args: "const char *" */
2421.1Smanu#define	LINUX_SYS_uselib	86
2431.1Smanu
2441.31Schristos#else
2451.31Schristos#endif
2461.1Smanu/* syscall: "swapon" ret: "int" args: "char *" */
2471.1Smanu#define	LINUX_SYS_swapon	87
2481.1Smanu
2491.1Smanu/* syscall: "reboot" ret: "int" args: "int" "int" "int" "void *" */
2501.1Smanu#define	LINUX_SYS_reboot	88
2511.1Smanu
2521.1Smanu/* syscall: "readdir" ret: "int" args: "int" "caddr_t" "unsigned int" */
2531.1Smanu#define	LINUX_SYS_readdir	89
2541.1Smanu
2551.10Smanu/* syscall: "mmap" ret: "int" args: "unsigned long" "size_t" "int" "int" "int" "linux_off_t" */
2561.10Smanu#define	LINUX_SYS_mmap	90
2571.1Smanu
2581.1Smanu/* syscall: "munmap" ret: "int" args: "caddr_t" "int" */
2591.1Smanu#define	LINUX_SYS_munmap	91
2601.1Smanu
2611.1Smanu/* syscall: "truncate" ret: "int" args: "const char *" "long" */
2621.1Smanu#define	LINUX_SYS_truncate	92
2631.1Smanu
2641.1Smanu/* syscall: "ftruncate" ret: "int" args: "int" "long" */
2651.1Smanu#define	LINUX_SYS_ftruncate	93
2661.1Smanu
2671.1Smanu/* syscall: "fchmod" ret: "int" args: "int" "int" */
2681.1Smanu#define	LINUX_SYS_fchmod	94
2691.1Smanu
2701.1Smanu/* syscall: "__posix_fchown" ret: "int" args: "int" "int" "int" */
2711.1Smanu#define	LINUX_SYS___posix_fchown	95
2721.1Smanu
2731.1Smanu/* syscall: "getpriority" ret: "int" args: "int" "int" */
2741.1Smanu#define	LINUX_SYS_getpriority	96
2751.1Smanu
2761.1Smanu/* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
2771.1Smanu#define	LINUX_SYS_setpriority	97
2781.1Smanu
2791.1Smanu/* syscall: "profil" ret: "int" args: "caddr_t" "u_int" "u_int" "u_int" */
2801.1Smanu#define	LINUX_SYS_profil	98
2811.1Smanu
2821.1Smanu/* syscall: "statfs" ret: "int" args: "const char *" "struct linux_statfs *" */
2831.1Smanu#define	LINUX_SYS_statfs	99
2841.1Smanu
2851.1Smanu/* syscall: "fstatfs" ret: "int" args: "int" "struct linux_statfs *" */
2861.1Smanu#define	LINUX_SYS_fstatfs	100
2871.1Smanu
2881.1Smanu/* syscall: "ioperm" ret: "int" args: "unsigned int" "unsigned int" "int" */
2891.1Smanu#define	LINUX_SYS_ioperm	101
2901.1Smanu
2911.1Smanu/* syscall: "socketcall" ret: "int" args: "int" "void *" */
2921.1Smanu#define	LINUX_SYS_socketcall	102
2931.1Smanu
2941.1Smanu/* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval *" "struct itimerval *" */
2951.1Smanu#define	LINUX_SYS_setitimer	104
2961.1Smanu
2971.1Smanu/* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval *" */
2981.1Smanu#define	LINUX_SYS_getitimer	105
2991.1Smanu
3001.1Smanu/* syscall: "stat" ret: "int" args: "const char *" "struct linux_stat *" */
3011.1Smanu#define	LINUX_SYS_stat	106
3021.1Smanu
3031.1Smanu/* syscall: "lstat" ret: "int" args: "const char *" "struct linux_stat *" */
3041.1Smanu#define	LINUX_SYS_lstat	107
3051.1Smanu
3061.1Smanu/* syscall: "fstat" ret: "int" args: "int" "struct linux_stat *" */
3071.1Smanu#define	LINUX_SYS_fstat	108
3081.1Smanu
3091.1Smanu/* syscall: "uname" ret: "int" args: "struct linux_utsname *" */
3101.1Smanu#define	LINUX_SYS_uname	109
3111.1Smanu
3121.1Smanu/* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage *" */
3131.1Smanu#define	LINUX_SYS_wait4	114
3141.1Smanu
3151.1Smanu/* syscall: "swapoff" ret: "int" args: "const char *" */
3161.1Smanu#define	LINUX_SYS_swapoff	115
3171.1Smanu
3181.1Smanu/* syscall: "sysinfo" ret: "int" args: "struct linux_sysinfo *" */
3191.1Smanu#define	LINUX_SYS_sysinfo	116
3201.1Smanu
3211.1Smanu/* syscall: "ipc" ret: "int" args: "int" "int" "int" "int" "caddr_t" */
3221.1Smanu#define	LINUX_SYS_ipc	117
3231.1Smanu
3241.1Smanu/* syscall: "fsync" ret: "int" args: "int" */
3251.1Smanu#define	LINUX_SYS_fsync	118
3261.1Smanu
3271.1Smanu/* syscall: "sigreturn" ret: "int" args: "struct linux_sigcontext *" */
3281.1Smanu#define	LINUX_SYS_sigreturn	119
3291.1Smanu
3301.1Smanu/* syscall: "clone" ret: "int" args: "int" "void *" */
3311.1Smanu#define	LINUX_SYS_clone	120
3321.1Smanu
3331.1Smanu/* syscall: "setdomainname" ret: "int" args: "char *" "int" */
3341.1Smanu#define	LINUX_SYS_setdomainname	121
3351.1Smanu
3361.1Smanu/* syscall: "new_uname" ret: "int" args: "struct linux_utsname *" */
3371.1Smanu#define	LINUX_SYS_new_uname	122
3381.1Smanu
3391.14Schristos/* syscall: "mprotect" ret: "int" args: "const void *" "unsigned long" "int" */
3401.1Smanu#define	LINUX_SYS_mprotect	125
3411.1Smanu
3421.1Smanu/* syscall: "sigprocmask" ret: "int" args: "int" "const linux_old_sigset_t *" "linux_old_sigset_t *" */
3431.1Smanu#define	LINUX_SYS_sigprocmask	126
3441.1Smanu
3451.1Smanu/* syscall: "getpgid" ret: "int" args: "int" */
3461.1Smanu#define	LINUX_SYS_getpgid	132
3471.1Smanu
3481.1Smanu/* syscall: "fchdir" ret: "int" args: "int" */
3491.1Smanu#define	LINUX_SYS_fchdir	133
3501.1Smanu
3511.1Smanu/* syscall: "personality" ret: "int" args: "int" */
3521.1Smanu#define	LINUX_SYS_personality	136
3531.1Smanu
3541.1Smanu/* syscall: "setfsuid" ret: "int" args: "uid_t" */
3551.1Smanu#define	LINUX_SYS_setfsuid	138
3561.1Smanu
3571.1Smanu/* syscall: "getfsuid" ret: "int" args: */
3581.1Smanu#define	LINUX_SYS_getfsuid	139
3591.1Smanu
3601.1Smanu/* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "caddr_t" "int" */
3611.1Smanu#define	LINUX_SYS_llseek	140
3621.1Smanu
3631.1Smanu/* syscall: "getdents" ret: "int" args: "int" "struct linux_dirent *" "unsigned int" */
3641.1Smanu#define	LINUX_SYS_getdents	141
3651.1Smanu
3661.1Smanu/* syscall: "new_select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */
3671.1Smanu#define	LINUX_SYS_new_select	142
3681.1Smanu
3691.1Smanu/* syscall: "flock" ret: "int" args: "int" "int" */
3701.1Smanu#define	LINUX_SYS_flock	143
3711.1Smanu
3721.1Smanu/* syscall: "msync" ret: "int" args: "caddr_t" "int" "int" */
3731.1Smanu#define	LINUX_SYS_msync	144
3741.1Smanu
3751.1Smanu/* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */
3761.1Smanu#define	LINUX_SYS_readv	145
3771.1Smanu
3781.1Smanu/* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */
3791.1Smanu#define	LINUX_SYS_writev	146
3801.1Smanu
3811.1Smanu/* syscall: "getsid" ret: "pid_t" args: "pid_t" */
3821.1Smanu#define	LINUX_SYS_getsid	147
3831.1Smanu
3841.1Smanu/* syscall: "fdatasync" ret: "int" args: "int" */
3851.1Smanu#define	LINUX_SYS_fdatasync	148
3861.1Smanu
3871.1Smanu/* syscall: "__sysctl" ret: "int" args: "struct linux___sysctl *" */
3881.1Smanu#define	LINUX_SYS___sysctl	149
3891.1Smanu
3901.1Smanu/* syscall: "mlock" ret: "int" args: "caddr_t" "size_t" */
3911.1Smanu#define	LINUX_SYS_mlock	150
3921.1Smanu
3931.1Smanu/* syscall: "munlock" ret: "int" args: "caddr_t" "size_t" */
3941.1Smanu#define	LINUX_SYS_munlock	151
3951.1Smanu
3961.1Smanu/* syscall: "mlockall" ret: "int" args: "int" */
3971.1Smanu#define	LINUX_SYS_mlockall	152
3981.1Smanu
3991.1Smanu/* syscall: "munlockall" ret: "int" args: */
4001.1Smanu#define	LINUX_SYS_munlockall	153
4011.1Smanu
4021.1Smanu/* syscall: "sched_setparam" ret: "int" args: "pid_t" "const struct linux_sched_param *" */
4031.1Smanu#define	LINUX_SYS_sched_setparam	154
4041.1Smanu
4051.1Smanu/* syscall: "sched_getparam" ret: "int" args: "pid_t" "struct linux_sched_param *" */
4061.1Smanu#define	LINUX_SYS_sched_getparam	155
4071.1Smanu
4081.1Smanu/* syscall: "sched_setscheduler" ret: "int" args: "pid_t" "int" "const struct linux_sched_param *" */
4091.1Smanu#define	LINUX_SYS_sched_setscheduler	156
4101.1Smanu
4111.1Smanu/* syscall: "sched_getscheduler" ret: "int" args: "pid_t" */
4121.1Smanu#define	LINUX_SYS_sched_getscheduler	157
4131.1Smanu
4141.1Smanu/* syscall: "sched_yield" ret: "int" args: */
4151.1Smanu#define	LINUX_SYS_sched_yield	158
4161.1Smanu
4171.1Smanu/* syscall: "sched_get_priority_max" ret: "int" args: "int" */
4181.1Smanu#define	LINUX_SYS_sched_get_priority_max	159
4191.1Smanu
4201.1Smanu/* syscall: "sched_get_priority_min" ret: "int" args: "int" */
4211.1Smanu#define	LINUX_SYS_sched_get_priority_min	160
4221.1Smanu
4231.1Smanu/* syscall: "nanosleep" ret: "int" args: "const struct timespec *" "struct timespec *" */
4241.1Smanu#define	LINUX_SYS_nanosleep	162
4251.1Smanu
4261.1Smanu/* syscall: "mremap" ret: "void *" args: "void *" "size_t" "size_t" "u_long" */
4271.1Smanu#define	LINUX_SYS_mremap	163
4281.1Smanu
4291.1Smanu/* syscall: "setresuid" ret: "int" args: "uid_t" "uid_t" "uid_t" */
4301.1Smanu#define	LINUX_SYS_setresuid	164
4311.1Smanu
4321.1Smanu/* syscall: "getresuid" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */
4331.1Smanu#define	LINUX_SYS_getresuid	165
4341.1Smanu
4351.1Smanu/* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
4361.1Smanu#define	LINUX_SYS_poll	167
4371.1Smanu
4381.1Smanu/* syscall: "setresgid" ret: "int" args: "gid_t" "gid_t" "gid_t" */
4391.1Smanu#define	LINUX_SYS_setresgid	169
4401.1Smanu
4411.1Smanu/* syscall: "getresgid" ret: "int" args: "gid_t *" "gid_t *" "gid_t *" */
4421.1Smanu#define	LINUX_SYS_getresgid	170
4431.1Smanu
4441.1Smanu/* syscall: "rt_sigreturn" ret: "int" args: "struct linux_rt_sigframe *" */
4451.1Smanu#define	LINUX_SYS_rt_sigreturn	172
4461.1Smanu
4471.1Smanu/* syscall: "rt_sigaction" ret: "int" args: "int" "const struct linux_sigaction *" "struct linux_sigaction *" "size_t" */
4481.1Smanu#define	LINUX_SYS_rt_sigaction	173
4491.1Smanu
4501.1Smanu/* syscall: "rt_sigprocmask" ret: "int" args: "int" "const linux_sigset_t *" "linux_sigset_t *" "size_t" */
4511.1Smanu#define	LINUX_SYS_rt_sigprocmask	174
4521.1Smanu
4531.1Smanu/* syscall: "rt_sigpending" ret: "int" args: "linux_sigset_t *" "size_t" */
4541.1Smanu#define	LINUX_SYS_rt_sigpending	175
4551.1Smanu
4561.1Smanu/* syscall: "rt_queueinfo" ret: "int" args: "int" "int" "void *" */
4571.1Smanu#define	LINUX_SYS_rt_queueinfo	177
4581.1Smanu
4591.1Smanu/* syscall: "rt_sigsuspend" ret: "int" args: "linux_sigset_t *" "size_t" */
4601.1Smanu#define	LINUX_SYS_rt_sigsuspend	178
4611.1Smanu
4621.1Smanu/* syscall: "pread" ret: "int" args: "int" "char *" "size_t" "linux_off_t" */
4631.1Smanu#define	LINUX_SYS_pread	179
4641.1Smanu
4651.1Smanu/* syscall: "pwrite" ret: "int" args: "int" "char *" "size_t" "linux_off_t" */
4661.1Smanu#define	LINUX_SYS_pwrite	180
4671.1Smanu
4681.1Smanu/* syscall: "chown" ret: "int" args: "const char *" "int" "int" */
4691.1Smanu#define	LINUX_SYS_chown	181
4701.1Smanu
4711.1Smanu/* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
4721.1Smanu#define	LINUX_SYS___getcwd	182
4731.1Smanu
4741.1Smanu/* syscall: "sigaltstack" ret: "int" args: "const struct linux_sigaltstack *" "struct linux_sigaltstack *" */
4751.1Smanu#define	LINUX_SYS_sigaltstack	185
4761.1Smanu
4771.1Smanu/* syscall: "__vfork14" ret: "int" args: */
4781.1Smanu#define	LINUX_SYS___vfork14	189
4791.13Snathanw
4801.13Snathanw/* syscall: "ugetrlimit" ret: "int" args: "int" "struct rlimit *" */
4811.13Snathanw#define	LINUX_SYS_ugetrlimit	190
4821.21Schristos
4831.21Schristos/* syscall: "mmap2" ret: "linux_off_t" args: "unsigned long" "size_t" "int" "int" "int" "linux_off_t" */
4841.21Schristos#define	LINUX_SYS_mmap2	192
4851.17Sjdolecek
4861.17Sjdolecek/* syscall: "truncate64" ret: "int" args: "const char *" "off_t" */
4871.17Sjdolecek#define	LINUX_SYS_truncate64	193
4881.17Sjdolecek
4891.22Sjdolecek/* syscall: "ftruncate64" ret: "int" args: "unsigned int" "off_t" */
4901.22Sjdolecek#define	LINUX_SYS_ftruncate64	194
4911.15Schristos
4921.16Sjdolecek/* syscall: "stat64" ret: "int" args: "const char *" "struct linux_stat64 *" */
4931.16Sjdolecek#define	LINUX_SYS_stat64	195
4941.16Sjdolecek
4951.16Sjdolecek/* syscall: "lstat64" ret: "int" args: "const char *" "struct linux_stat64 *" */
4961.16Sjdolecek#define	LINUX_SYS_lstat64	196
4971.16Sjdolecek
4981.16Sjdolecek/* syscall: "fstat64" ret: "int" args: "int" "struct linux_stat64 *" */
4991.16Sjdolecek#define	LINUX_SYS_fstat64	197
5001.16Sjdolecek
5011.15Schristos/* syscall: "getdents64" ret: "int" args: "int" "struct linux_dirent64 *" "unsigned int" */
5021.15Schristos#define	LINUX_SYS_getdents64	202
5031.16Sjdolecek
5041.16Sjdolecek/* syscall: "fcntl64" ret: "int" args: "int" "int" "void *" */
5051.16Sjdolecek#define	LINUX_SYS_fcntl64	204
5061.12Schristos
5071.23Sjdolecek/* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */
5081.23Sjdolecek#define	LINUX_SYS_mincore	205
5091.23Sjdolecek
5101.23Sjdolecek/* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
5111.23Sjdolecek#define	LINUX_SYS_madvise	206
5121.23Sjdolecek
5131.29Sfvdl/* syscall: "setxattr" ret: "int" args: "char *" "char *" "void *" "size_t" "int" */
5141.29Sfvdl#define	LINUX_SYS_setxattr	209
5151.29Sfvdl
5161.29Sfvdl/* syscall: "lsetxattr" ret: "int" args: "char *" "char *" "void *" "size_t" "int" */
5171.29Sfvdl#define	LINUX_SYS_lsetxattr	210
5181.29Sfvdl
5191.29Sfvdl/* syscall: "fsetxattr" ret: "int" args: "int" "char *" "void *" "size_t" "int" */
5201.29Sfvdl#define	LINUX_SYS_fsetxattr	211
5211.29Sfvdl
5221.29Sfvdl/* syscall: "getxattr" ret: "ssize_t" args: "char *" "char *" "void *" "size_t" */
5231.29Sfvdl#define	LINUX_SYS_getxattr	212
5241.29Sfvdl
5251.29Sfvdl/* syscall: "lgetxattr" ret: "ssize_t" args: "char *" "char *" "void *" "size_t" */
5261.29Sfvdl#define	LINUX_SYS_lgetxattr	213
5271.29Sfvdl
5281.29Sfvdl/* syscall: "fgetxattr" ret: "ssize_t" args: "int" "char *" "void *" "size_t" */
5291.29Sfvdl#define	LINUX_SYS_fgetxattr	214
5301.29Sfvdl
5311.29Sfvdl/* syscall: "listxattr" ret: "ssize_t" args: "char *" "char *" "size_t" */
5321.29Sfvdl#define	LINUX_SYS_listxattr	215
5331.29Sfvdl
5341.29Sfvdl/* syscall: "llistxattr" ret: "ssize_t" args: "char *" "char *" "size_t" */
5351.29Sfvdl#define	LINUX_SYS_llistxattr	216
5361.29Sfvdl
5371.29Sfvdl/* syscall: "flistxattr" ret: "ssize_t" args: "int" "char *" "size_t" */
5381.29Sfvdl#define	LINUX_SYS_flistxattr	217
5391.29Sfvdl
5401.29Sfvdl/* syscall: "removexattr" ret: "int" args: "char *" "char *" */
5411.29Sfvdl#define	LINUX_SYS_removexattr	218
5421.29Sfvdl
5431.29Sfvdl/* syscall: "lremovexattr" ret: "int" args: "char *" "char *" */
5441.29Sfvdl#define	LINUX_SYS_lremovexattr	219
5451.29Sfvdl
5461.29Sfvdl/* syscall: "fremovexattr" ret: "int" args: "int" "char *" */
5471.29Sfvdl#define	LINUX_SYS_fremovexattr	220
5481.29Sfvdl
5491.25Sjdolecek/* syscall: "exit_group" ret: "int" args: "int" */
5501.25Sjdolecek#define	LINUX_SYS_exit_group	234
5511.25Sjdolecek
5521.30Sfvdl/* syscall: "clock_settime" ret: "int" args: "clockid_t" "struct linux_timespec *" */
5531.30Sfvdl#define	LINUX_SYS_clock_settime	245
5541.30Sfvdl
5551.30Sfvdl/* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct linux_timespec *" */
5561.30Sfvdl#define	LINUX_SYS_clock_gettime	246
5571.30Sfvdl
5581.30Sfvdl/* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct linux_timespec *" */
5591.30Sfvdl#define	LINUX_SYS_clock_getres	247
5601.30Sfvdl
5611.30Sfvdl/* syscall: "clock_nanosleep" ret: "int" args: "clockid_t" "int" "struct linux_timespec *" "struct linux_timespec *" */
5621.30Sfvdl#define	LINUX_SYS_clock_nanosleep	248
5631.30Sfvdl
5641.26Sjdolecek/* syscall: "statfs64" ret: "int" args: "const char *" "size_t" "struct linux_statfs64 *" */
5651.26Sjdolecek#define	LINUX_SYS_statfs64	252
5661.26Sjdolecek
5671.26Sjdolecek/* syscall: "fstatfs64" ret: "int" args: "int" "size_t" "struct linux_statfs64 *" */
5681.26Sjdolecek#define	LINUX_SYS_fstatfs64	253
5691.26Sjdolecek
5701.24Sjdolecek#define	LINUX_SYS_MAXSYSCALL	269
5711.24Sjdolecek#define	LINUX_SYS_NSYSENT	512
5721.33Schristos#endif /* _LINUX_SYS_SYSCALL_H_ */
573