linux_syscall.h revision 1.26
11.26Schristos/* $NetBSD: linux_syscall.h,v 1.26 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.26Schristos * created from	NetBSD: syscalls.master,v 1.21 2006/06/10 21:15:33 christos Exp
81.1Smanu */
91.1Smanu
101.26Schristos#ifndef _LINUX_SYS_SYSCALL_H_
111.26Schristos#define	_LINUX_SYS_SYSCALL_H_
121.26Schristos
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				/* 18 is obsolete ostat */
651.1Smanu/* syscall: "lseek" ret: "long" args: "int" "long" "int" */
661.1Smanu#define	LINUX_SYS_lseek	19
671.1Smanu
681.1Smanu/* syscall: "getpid" ret: "pid_t" args: */
691.1Smanu#define	LINUX_SYS_getpid	20
701.1Smanu
711.1Smanu				/* 22 is obsolete umount */
721.1Smanu/* syscall: "setuid" ret: "int" args: "uid_t" */
731.1Smanu#define	LINUX_SYS_setuid	23
741.1Smanu
751.1Smanu/* syscall: "getuid" ret: "uid_t" args: */
761.1Smanu#define	LINUX_SYS_getuid	24
771.1Smanu
781.1Smanu/* syscall: "stime" ret: "int" args: "linux_time_t *" */
791.1Smanu#define	LINUX_SYS_stime	25
801.1Smanu
811.1Smanu/* syscall: "ptrace" ret: "int" args: "int" "int" "int" "int" */
821.1Smanu#define	LINUX_SYS_ptrace	26
831.1Smanu
841.1Smanu/* syscall: "alarm" ret: "int" args: "unsigned int" */
851.1Smanu#define	LINUX_SYS_alarm	27
861.1Smanu
871.1Smanu				/* 28 is obsolete ofstat */
881.1Smanu/* syscall: "pause" ret: "int" args: */
891.1Smanu#define	LINUX_SYS_pause	29
901.1Smanu
911.1Smanu/* syscall: "utime" ret: "int" args: "const char *" "struct linux_utimbuf *" */
921.1Smanu#define	LINUX_SYS_utime	30
931.1Smanu
941.1Smanu/* syscall: "access" ret: "int" args: "const char *" "int" */
951.1Smanu#define	LINUX_SYS_access	33
961.1Smanu
971.1Smanu/* syscall: "nice" ret: "int" args: "int" */
981.1Smanu#define	LINUX_SYS_nice	34
991.1Smanu
1001.1Smanu/* syscall: "sync" ret: "int" args: */
1011.1Smanu#define	LINUX_SYS_sync	36
1021.1Smanu
1031.1Smanu/* syscall: "kill" ret: "int" args: "int" "int" */
1041.1Smanu#define	LINUX_SYS_kill	37
1051.1Smanu
1061.1Smanu/* syscall: "rename" ret: "int" args: "const char *" "const char *" */
1071.1Smanu#define	LINUX_SYS_rename	38
1081.1Smanu
1091.1Smanu/* syscall: "mkdir" ret: "int" args: "const char *" "int" */
1101.1Smanu#define	LINUX_SYS_mkdir	39
1111.1Smanu
1121.1Smanu/* syscall: "rmdir" ret: "int" args: "const char *" */
1131.1Smanu#define	LINUX_SYS_rmdir	40
1141.1Smanu
1151.1Smanu/* syscall: "dup" ret: "int" args: "u_int" */
1161.1Smanu#define	LINUX_SYS_dup	41
1171.1Smanu
1181.1Smanu/* syscall: "pipe" ret: "int" args: "int *" */
1191.1Smanu#define	LINUX_SYS_pipe	42
1201.1Smanu
1211.1Smanu/* syscall: "times" ret: "int" args: "struct times *" */
1221.1Smanu#define	LINUX_SYS_times	43
1231.1Smanu
1241.1Smanu/* syscall: "brk" ret: "int" args: "char *" */
1251.1Smanu#define	LINUX_SYS_brk	45
1261.1Smanu
1271.1Smanu/* syscall: "setgid" ret: "int" args: "gid_t" */
1281.1Smanu#define	LINUX_SYS_setgid	46
1291.1Smanu
1301.1Smanu/* syscall: "getgid" ret: "gid_t" args: */
1311.1Smanu#define	LINUX_SYS_getgid	47
1321.1Smanu
1331.1Smanu/* syscall: "signal" ret: "int" args: "int" "linux___sighandler_t" */
1341.1Smanu#define	LINUX_SYS_signal	48
1351.1Smanu
1361.1Smanu/* syscall: "geteuid" ret: "uid_t" args: */
1371.1Smanu#define	LINUX_SYS_geteuid	49
1381.1Smanu
1391.1Smanu/* syscall: "getegid" ret: "gid_t" args: */
1401.1Smanu#define	LINUX_SYS_getegid	50
1411.1Smanu
1421.1Smanu/* syscall: "acct" ret: "int" args: "char *" */
1431.1Smanu#define	LINUX_SYS_acct	51
1441.1Smanu
1451.1Smanu/* syscall: "ioctl" ret: "int" args: "int" "u_long" "caddr_t" */
1461.1Smanu#define	LINUX_SYS_ioctl	54
1471.1Smanu
1481.1Smanu/* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */
1491.1Smanu#define	LINUX_SYS_fcntl	55
1501.1Smanu
1511.1Smanu				/* 56 is obsolete mpx */
1521.1Smanu/* syscall: "setpgid" ret: "int" args: "int" "int" */
1531.1Smanu#define	LINUX_SYS_setpgid	57
1541.1Smanu
1551.1Smanu/* syscall: "olduname" ret: "int" args: "struct linux_old_utsname *" */
1561.1Smanu#define	LINUX_SYS_olduname	59
1571.1Smanu
1581.1Smanu/* syscall: "umask" ret: "int" args: "int" */
1591.1Smanu#define	LINUX_SYS_umask	60
1601.1Smanu
1611.1Smanu/* syscall: "chroot" ret: "int" args: "char *" */
1621.1Smanu#define	LINUX_SYS_chroot	61
1631.1Smanu
1641.1Smanu/* syscall: "dup2" ret: "int" args: "u_int" "u_int" */
1651.1Smanu#define	LINUX_SYS_dup2	63
1661.1Smanu
1671.1Smanu/* syscall: "getppid" ret: "pid_t" args: */
1681.1Smanu#define	LINUX_SYS_getppid	64
1691.1Smanu
1701.1Smanu/* syscall: "getpgrp" ret: "int" args: */
1711.1Smanu#define	LINUX_SYS_getpgrp	65
1721.1Smanu
1731.1Smanu/* syscall: "setsid" ret: "int" args: */
1741.1Smanu#define	LINUX_SYS_setsid	66
1751.1Smanu
1761.1Smanu/* syscall: "sigaction" ret: "int" args: "int" "const struct linux_old_sigaction *" "struct linux_old_sigaction *" */
1771.1Smanu#define	LINUX_SYS_sigaction	67
1781.1Smanu
1791.1Smanu/* syscall: "siggetmask" ret: "int" args: */
1801.1Smanu#define	LINUX_SYS_siggetmask	68
1811.1Smanu
1821.1Smanu/* syscall: "sigsetmask" ret: "int" args: "linux_old_sigset_t" */
1831.1Smanu#define	LINUX_SYS_sigsetmask	69
1841.1Smanu
1851.1Smanu/* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */
1861.1Smanu#define	LINUX_SYS_setreuid	70
1871.1Smanu
1881.1Smanu/* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */
1891.1Smanu#define	LINUX_SYS_setregid	71
1901.1Smanu
1911.1Smanu/* syscall: "sigsuspend" ret: "int" args: "caddr_t" "int" "int" */
1921.1Smanu#define	LINUX_SYS_sigsuspend	72
1931.1Smanu
1941.1Smanu/* syscall: "sigpending" ret: "int" args: "linux_old_sigset_t *" */
1951.1Smanu#define	LINUX_SYS_sigpending	73
1961.1Smanu
1971.1Smanu/* syscall: "sethostname" ret: "int" args: "char *" "u_int" */
1981.1Smanu#define	LINUX_SYS_sethostname	74
1991.1Smanu
2001.1Smanu/* syscall: "setrlimit" ret: "int" args: "u_int" "struct orlimit *" */
2011.1Smanu#define	LINUX_SYS_setrlimit	75
2021.1Smanu
2031.1Smanu/* syscall: "getrlimit" ret: "int" args: "u_int" "struct orlimit *" */
2041.1Smanu#define	LINUX_SYS_getrlimit	76
2051.1Smanu
2061.1Smanu/* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */
2071.1Smanu#define	LINUX_SYS_getrusage	77
2081.1Smanu
2091.1Smanu/* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
2101.1Smanu#define	LINUX_SYS_gettimeofday	78
2111.1Smanu
2121.1Smanu/* syscall: "settimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
2131.1Smanu#define	LINUX_SYS_settimeofday	79
2141.1Smanu
2151.1Smanu/* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */
2161.1Smanu#define	LINUX_SYS_getgroups	80
2171.1Smanu
2181.1Smanu/* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */
2191.1Smanu#define	LINUX_SYS_setgroups	81
2201.1Smanu
2211.1Smanu/* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
2221.1Smanu#define	LINUX_SYS_symlink	83
2231.1Smanu
2241.1Smanu/* syscall: "oolstat" ret: "int" args: "const char *" "struct stat43 *" */
2251.1Smanu#define	LINUX_SYS_oolstat	84
2261.1Smanu
2271.1Smanu/* syscall: "readlink" ret: "int" args: "const char *" "char *" "int" */
2281.1Smanu#define	LINUX_SYS_readlink	85
2291.1Smanu
2301.1Smanu/* syscall: "swapon" ret: "int" args: "char *" */
2311.1Smanu#define	LINUX_SYS_swapon	87
2321.1Smanu
2331.1Smanu/* syscall: "reboot" ret: "int" args: "int" "int" "int" "void *" */
2341.1Smanu#define	LINUX_SYS_reboot	88
2351.1Smanu
2361.1Smanu/* syscall: "readdir" ret: "int" args: "int" "caddr_t" "unsigned int" */
2371.1Smanu#define	LINUX_SYS_readdir	89
2381.1Smanu
2391.1Smanu/* syscall: "mmap" ret: "int" args: "unsigned long" "size_t" "int" "int" "int" "linux_off_t" */
2401.1Smanu#define	LINUX_SYS_mmap	90
2411.1Smanu
2421.1Smanu/* syscall: "munmap" ret: "int" args: "caddr_t" "int" */
2431.1Smanu#define	LINUX_SYS_munmap	91
2441.1Smanu
2451.1Smanu/* syscall: "truncate" ret: "int" args: "const char *" "long" */
2461.1Smanu#define	LINUX_SYS_truncate	92
2471.1Smanu
2481.1Smanu/* syscall: "ftruncate" ret: "int" args: "int" "long" */
2491.1Smanu#define	LINUX_SYS_ftruncate	93
2501.1Smanu
2511.1Smanu/* syscall: "fchmod" ret: "int" args: "int" "int" */
2521.1Smanu#define	LINUX_SYS_fchmod	94
2531.1Smanu
2541.1Smanu/* syscall: "__posix_fchown" ret: "int" args: "int" "int" "int" */
2551.1Smanu#define	LINUX_SYS___posix_fchown	95
2561.1Smanu
2571.1Smanu/* syscall: "getpriority" ret: "int" args: "int" "int" */
2581.1Smanu#define	LINUX_SYS_getpriority	96
2591.1Smanu
2601.1Smanu/* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
2611.1Smanu#define	LINUX_SYS_setpriority	97
2621.1Smanu
2631.1Smanu/* syscall: "statfs" ret: "int" args: "const char *" "struct linux_statfs *" */
2641.1Smanu#define	LINUX_SYS_statfs	99
2651.1Smanu
2661.1Smanu/* syscall: "fstatfs" ret: "int" args: "int" "struct linux_statfs *" */
2671.1Smanu#define	LINUX_SYS_fstatfs	100
2681.1Smanu
2691.1Smanu/* syscall: "ioperm" ret: "int" args: "unsigned int" "unsigned int" "int" */
2701.1Smanu#define	LINUX_SYS_ioperm	101
2711.1Smanu
2721.1Smanu/* syscall: "socketcall" ret: "int" args: "int" "void *" */
2731.1Smanu#define	LINUX_SYS_socketcall	102
2741.1Smanu
2751.1Smanu/* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval *" "struct itimerval *" */
2761.1Smanu#define	LINUX_SYS_setitimer	104
2771.1Smanu
2781.1Smanu/* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval *" */
2791.1Smanu#define	LINUX_SYS_getitimer	105
2801.1Smanu
2811.1Smanu/* syscall: "stat" ret: "int" args: "const char *" "struct linux_stat *" */
2821.1Smanu#define	LINUX_SYS_stat	106
2831.1Smanu
2841.1Smanu/* syscall: "lstat" ret: "int" args: "const char *" "struct linux_stat *" */
2851.1Smanu#define	LINUX_SYS_lstat	107
2861.1Smanu
2871.1Smanu/* syscall: "fstat" ret: "int" args: "int" "struct linux_stat *" */
2881.1Smanu#define	LINUX_SYS_fstat	108
2891.1Smanu
2901.1Smanu/* syscall: "uname" ret: "int" args: "struct linux_utsname *" */
2911.1Smanu#define	LINUX_SYS_uname	109
2921.1Smanu
2931.1Smanu/* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage *" */
2941.1Smanu#define	LINUX_SYS_wait4	114
2951.1Smanu
2961.1Smanu/* syscall: "swapoff" ret: "int" args: "const char *" */
2971.1Smanu#define	LINUX_SYS_swapoff	115
2981.1Smanu
2991.1Smanu/* syscall: "sysinfo" ret: "int" args: "struct linux_sysinfo *" */
3001.1Smanu#define	LINUX_SYS_sysinfo	116
3011.1Smanu
3021.1Smanu/* syscall: "ipc" ret: "int" args: "int" "int" "int" "int" "caddr_t" */
3031.1Smanu#define	LINUX_SYS_ipc	117
3041.1Smanu
3051.1Smanu/* syscall: "fsync" ret: "int" args: "int" */
3061.1Smanu#define	LINUX_SYS_fsync	118
3071.1Smanu
3081.6Smanu/* syscall: "sigreturn" ret: "int" args: "struct linux_sigframe *" */
3091.1Smanu#define	LINUX_SYS_sigreturn	119
3101.1Smanu
3111.1Smanu/* syscall: "clone" ret: "int" args: "int" "void *" */
3121.1Smanu#define	LINUX_SYS_clone	120
3131.1Smanu
3141.1Smanu/* syscall: "setdomainname" ret: "int" args: "char *" "int" */
3151.1Smanu#define	LINUX_SYS_setdomainname	121
3161.1Smanu
3171.1Smanu/* syscall: "new_uname" ret: "int" args: "struct linux_utsname *" */
3181.1Smanu#define	LINUX_SYS_new_uname	122
3191.1Smanu
3201.10Schristos/* syscall: "mprotect" ret: "int" args: "const void *" "unsigned long" "int" */
3211.1Smanu#define	LINUX_SYS_mprotect	125
3221.1Smanu
3231.1Smanu/* syscall: "sigprocmask" ret: "int" args: "int" "const linux_old_sigset_t *" "linux_old_sigset_t *" */
3241.1Smanu#define	LINUX_SYS_sigprocmask	126
3251.1Smanu
3261.1Smanu/* syscall: "getpgid" ret: "int" args: "int" */
3271.1Smanu#define	LINUX_SYS_getpgid	132
3281.1Smanu
3291.1Smanu/* syscall: "fchdir" ret: "int" args: "int" */
3301.1Smanu#define	LINUX_SYS_fchdir	133
3311.1Smanu
3321.1Smanu/* syscall: "personality" ret: "int" args: "int" */
3331.1Smanu#define	LINUX_SYS_personality	136
3341.1Smanu
3351.1Smanu/* syscall: "setfsuid" ret: "int" args: "uid_t" */
3361.1Smanu#define	LINUX_SYS_setfsuid	138
3371.1Smanu
3381.1Smanu/* syscall: "getfsuid" ret: "int" args: */
3391.1Smanu#define	LINUX_SYS_getfsuid	139
3401.1Smanu
3411.1Smanu/* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "caddr_t" "int" */
3421.1Smanu#define	LINUX_SYS_llseek	140
3431.1Smanu
3441.1Smanu/* syscall: "getdents" ret: "int" args: "int" "struct linux_dirent *" "unsigned int" */
3451.1Smanu#define	LINUX_SYS_getdents	141
3461.1Smanu
3471.1Smanu/* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */
3481.1Smanu#define	LINUX_SYS_select	142
3491.1Smanu
3501.1Smanu/* syscall: "flock" ret: "int" args: "int" "int" */
3511.1Smanu#define	LINUX_SYS_flock	143
3521.1Smanu
3531.1Smanu/* syscall: "msync" ret: "int" args: "caddr_t" "int" "int" */
3541.1Smanu#define	LINUX_SYS_msync	144
3551.1Smanu
3561.1Smanu/* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */
3571.1Smanu#define	LINUX_SYS_readv	145
3581.1Smanu
3591.1Smanu/* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */
3601.1Smanu#define	LINUX_SYS_writev	146
3611.1Smanu
3621.1Smanu/* syscall: "cacheflush" ret: "int" args: "void *" "int" "int" */
3631.1Smanu#define	LINUX_SYS_cacheflush	147
3641.1Smanu
3651.2Smanu/* syscall: "sysmips" ret: "int" args: "int" "int" "int" "int" */
3661.2Smanu#define	LINUX_SYS_sysmips	149
3671.2Smanu
3681.1Smanu/* syscall: "getsid" ret: "pid_t" args: "pid_t" */
3691.1Smanu#define	LINUX_SYS_getsid	151
3701.1Smanu
3711.1Smanu/* syscall: "fdatasync" ret: "int" args: "int" */
3721.1Smanu#define	LINUX_SYS_fdatasync	152
3731.1Smanu
3741.1Smanu/* syscall: "__sysctl" ret: "int" args: "struct linux___sysctl *" */
3751.1Smanu#define	LINUX_SYS___sysctl	153
3761.1Smanu
3771.1Smanu/* syscall: "mlock" ret: "int" args: "caddr_t" "size_t" */
3781.1Smanu#define	LINUX_SYS_mlock	154
3791.1Smanu
3801.1Smanu/* syscall: "munlock" ret: "int" args: "caddr_t" "size_t" */
3811.1Smanu#define	LINUX_SYS_munlock	155
3821.1Smanu
3831.1Smanu/* syscall: "mlockall" ret: "int" args: "int" */
3841.1Smanu#define	LINUX_SYS_mlockall	156
3851.1Smanu
3861.1Smanu/* syscall: "munlockall" ret: "int" args: */
3871.1Smanu#define	LINUX_SYS_munlockall	157
3881.1Smanu
3891.1Smanu/* syscall: "sched_setparam" ret: "int" args: "pid_t" "const struct linux_sched_param *" */
3901.1Smanu#define	LINUX_SYS_sched_setparam	158
3911.1Smanu
3921.1Smanu/* syscall: "sched_getparam" ret: "int" args: "pid_t" "struct linux_sched_param *" */
3931.1Smanu#define	LINUX_SYS_sched_getparam	159
3941.1Smanu
3951.1Smanu/* syscall: "sched_setscheduler" ret: "int" args: "pid_t" "int" "const struct linux_sched_param *" */
3961.1Smanu#define	LINUX_SYS_sched_setscheduler	160
3971.1Smanu
3981.1Smanu/* syscall: "sched_getscheduler" ret: "int" args: "pid_t" */
3991.1Smanu#define	LINUX_SYS_sched_getscheduler	161
4001.1Smanu
4011.1Smanu/* syscall: "sched_yield" ret: "int" args: */
4021.1Smanu#define	LINUX_SYS_sched_yield	162
4031.1Smanu
4041.1Smanu/* syscall: "sched_get_priority_max" ret: "int" args: "int" */
4051.1Smanu#define	LINUX_SYS_sched_get_priority_max	163
4061.1Smanu
4071.1Smanu/* syscall: "sched_get_priority_min" ret: "int" args: "int" */
4081.1Smanu#define	LINUX_SYS_sched_get_priority_min	164
4091.1Smanu
4101.1Smanu/* syscall: "nanosleep" ret: "int" args: "const struct timespec *" "struct timespec *" */
4111.1Smanu#define	LINUX_SYS_nanosleep	166
4121.1Smanu
4131.1Smanu/* syscall: "mremap" ret: "void *" args: "void *" "size_t" "size_t" "u_long" */
4141.1Smanu#define	LINUX_SYS_mremap	167
4151.3Smanu
4161.3Smanu/* syscall: "accept" ret: "int" args: "int" "struct osockaddr *" "int *" */
4171.3Smanu#define	LINUX_SYS_accept	168
4181.3Smanu
4191.3Smanu/* syscall: "bind" ret: "int" args: "int" "const struct osockaddr *" "int" */
4201.3Smanu#define	LINUX_SYS_bind	169
4211.3Smanu
4221.3Smanu/* syscall: "connect" ret: "int" args: "int" "const struct sockaddr *" "int" */
4231.3Smanu#define	LINUX_SYS_connect	170
4241.3Smanu
4251.3Smanu/* syscall: "getpeername" ret: "int" args: "int" "caddr_t" "int *" */
4261.3Smanu#define	LINUX_SYS_getpeername	171
4271.3Smanu
4281.3Smanu/* syscall: "getsockname" ret: "int" args: "int" "caddr_t" "int *" */
4291.3Smanu#define	LINUX_SYS_getsockname	172
4301.3Smanu
4311.3Smanu/* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */
4321.3Smanu#define	LINUX_SYS_getsockopt	173
4331.3Smanu
4341.3Smanu/* syscall: "listen" ret: "int" args: "int" "int" */
4351.3Smanu#define	LINUX_SYS_listen	174
4361.3Smanu
4371.3Smanu/* syscall: "recv" ret: "int" args: "int" "void *" "int" "int" */
4381.3Smanu#define	LINUX_SYS_recv	175
4391.3Smanu
4401.3Smanu/* syscall: "recvfrom" ret: "int" args: "int" "void *" "int" "int" "struct osockaddr *" "int *" */
4411.3Smanu#define	LINUX_SYS_recvfrom	176
4421.3Smanu
4431.3Smanu/* syscall: "recvmsg" ret: "int" args: "int" "struct msghdr *" "u_int" */
4441.3Smanu#define	LINUX_SYS_recvmsg	177
4451.3Smanu
4461.3Smanu/* syscall: "send" ret: "int" args: "int" "caddr_t" "int" "int" */
4471.3Smanu#define	LINUX_SYS_send	178
4481.3Smanu
4491.3Smanu/* syscall: "sendmsg" ret: "int" args: "int" "struct msghdr *" "u_int" */
4501.3Smanu#define	LINUX_SYS_sendmsg	179
4511.3Smanu
4521.3Smanu/* syscall: "sendto" ret: "int" args: "int" "void *" "int" "int" "struct osockaddr *" "int" */
4531.3Smanu#define	LINUX_SYS_sendto	180
4541.3Smanu
4551.3Smanu/* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "void *" "int" */
4561.3Smanu#define	LINUX_SYS_setsockopt	181
4571.3Smanu
4581.3Smanu/* syscall: "socket" ret: "int" args: "int" "int" "int" */
4591.3Smanu#define	LINUX_SYS_socket	183
4601.3Smanu
4611.3Smanu/* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
4621.3Smanu#define	LINUX_SYS_socketpair	184
4631.1Smanu
4641.1Smanu/* syscall: "setresuid" ret: "int" args: "uid_t" "uid_t" "uid_t" */
4651.1Smanu#define	LINUX_SYS_setresuid	185
4661.1Smanu
4671.1Smanu/* syscall: "getresuid" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */
4681.1Smanu#define	LINUX_SYS_getresuid	186
4691.1Smanu
4701.1Smanu/* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
4711.1Smanu#define	LINUX_SYS_poll	188
4721.1Smanu
4731.1Smanu/* syscall: "setresgid" ret: "int" args: "gid_t" "gid_t" "gid_t" */
4741.1Smanu#define	LINUX_SYS_setresgid	190
4751.1Smanu
4761.1Smanu/* syscall: "getresgid" ret: "int" args: "gid_t *" "gid_t *" "gid_t *" */
4771.1Smanu#define	LINUX_SYS_getresgid	191
4781.1Smanu
4791.1Smanu/* syscall: "rt_sigreturn" ret: "int" args: "struct linux_pt_regs" */
4801.1Smanu#define	LINUX_SYS_rt_sigreturn	193
4811.1Smanu
4821.1Smanu/* syscall: "rt_sigaction" ret: "int" args: "int" "const struct linux_sigaction *" "struct linux_sigaction *" "size_t" */
4831.1Smanu#define	LINUX_SYS_rt_sigaction	194
4841.1Smanu
4851.1Smanu/* syscall: "rt_sigprocmask" ret: "int" args: "int" "const linux_sigset_t *" "linux_sigset_t *" "size_t" */
4861.1Smanu#define	LINUX_SYS_rt_sigprocmask	195
4871.1Smanu
4881.1Smanu/* syscall: "rt_sigpending" ret: "int" args: "linux_sigset_t *" "size_t" */
4891.1Smanu#define	LINUX_SYS_rt_sigpending	196
4901.1Smanu
4911.1Smanu/* syscall: "rt_queueinfo" ret: "int" args: "int" "int" "void *" */
4921.1Smanu#define	LINUX_SYS_rt_queueinfo	198
4931.1Smanu
4941.1Smanu/* syscall: "rt_sigsuspend" ret: "int" args: "linux_sigset_t *" "size_t" */
4951.1Smanu#define	LINUX_SYS_rt_sigsuspend	199
4961.1Smanu
4971.1Smanu/* syscall: "pread" ret: "int" args: "int" "char *" "size_t" "linux_off_t" */
4981.1Smanu#define	LINUX_SYS_pread	200
4991.1Smanu
5001.1Smanu/* syscall: "pwrite" ret: "int" args: "int" "char *" "size_t" "linux_off_t" */
5011.1Smanu#define	LINUX_SYS_pwrite	201
5021.1Smanu
5031.1Smanu/* syscall: "chown" ret: "int" args: "const char *" "int" "int" */
5041.1Smanu#define	LINUX_SYS_chown	202
5051.1Smanu
5061.1Smanu/* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
5071.1Smanu#define	LINUX_SYS___getcwd	203
5081.1Smanu
5091.1Smanu/* syscall: "sigaltstack" ret: "int" args: "const struct linux_sigaltstack *" "struct linux_sigaltstack *" */
5101.1Smanu#define	LINUX_SYS_sigaltstack	206
5111.15Schristos
5121.15Schristos/* syscall: "mmap2" ret: "linux_off_t" args: "unsigned long" "size_t" "int" "int" "int" "linux_off_t" */
5131.15Schristos#define	LINUX_SYS_mmap2	210
5141.8Schristos
5151.8Schristos/* syscall: "truncate64" ret: "int" args: "const char *" "off_t" */
5161.8Schristos#define	LINUX_SYS_truncate64	211
5171.16Sjdolecek
5181.16Sjdolecek/* syscall: "ftruncate64" ret: "int" args: "unsigned int" "off_t" */
5191.16Sjdolecek#define	LINUX_SYS_ftruncate64	212
5201.8Schristos
5211.8Schristos/* syscall: "stat64" ret: "int" args: "const char *" "struct linux_stat64 *" */
5221.8Schristos#define	LINUX_SYS_stat64	213
5231.8Schristos
5241.8Schristos/* syscall: "lstat64" ret: "int" args: "const char *" "struct linux_stat64 *" */
5251.8Schristos#define	LINUX_SYS_lstat64	214
5261.8Schristos
5271.8Schristos/* syscall: "fstat64" ret: "int" args: "int" "struct linux_stat64 *" */
5281.8Schristos#define	LINUX_SYS_fstat64	215
5291.11Schristos
5301.17Sjdolecek/* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */
5311.17Sjdolecek#define	LINUX_SYS_mincore	217
5321.17Sjdolecek
5331.17Sjdolecek/* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
5341.17Sjdolecek#define	LINUX_SYS_madvise	218
5351.17Sjdolecek
5361.11Schristos/* syscall: "getdents64" ret: "int" args: "int" "struct linux_dirent64 *" "unsigned int" */
5371.11Schristos#define	LINUX_SYS_getdents64	219
5381.8Schristos
5391.10Schristos/* syscall: "fcntl64" ret: "int" args: "int" "int" "void *" */
5401.8Schristos#define	LINUX_SYS_fcntl64	220
5411.8Schristos
5421.23Sfvdl/* syscall: "setxattr" ret: "int" args: "char *" "char *" "void *" "size_t" "int" */
5431.23Sfvdl#define	LINUX_SYS_setxattr	224
5441.23Sfvdl
5451.23Sfvdl/* syscall: "lsetxattr" ret: "int" args: "char *" "char *" "void *" "size_t" "int" */
5461.23Sfvdl#define	LINUX_SYS_lsetxattr	225
5471.23Sfvdl
5481.23Sfvdl/* syscall: "fsetxattr" ret: "int" args: "int" "char *" "void *" "size_t" "int" */
5491.23Sfvdl#define	LINUX_SYS_fsetxattr	226
5501.23Sfvdl
5511.23Sfvdl/* syscall: "getxattr" ret: "ssize_t" args: "char *" "char *" "void *" "size_t" */
5521.23Sfvdl#define	LINUX_SYS_getxattr	227
5531.23Sfvdl
5541.23Sfvdl/* syscall: "lgetxattr" ret: "ssize_t" args: "char *" "char *" "void *" "size_t" */
5551.23Sfvdl#define	LINUX_SYS_lgetxattr	228
5561.23Sfvdl
5571.23Sfvdl/* syscall: "fgetxattr" ret: "ssize_t" args: "int" "char *" "void *" "size_t" */
5581.23Sfvdl#define	LINUX_SYS_fgetxattr	229
5591.23Sfvdl
5601.23Sfvdl/* syscall: "listxattr" ret: "ssize_t" args: "char *" "char *" "size_t" */
5611.23Sfvdl#define	LINUX_SYS_listxattr	230
5621.23Sfvdl
5631.23Sfvdl/* syscall: "llistxattr" ret: "ssize_t" args: "char *" "char *" "size_t" */
5641.23Sfvdl#define	LINUX_SYS_llistxattr	231
5651.23Sfvdl
5661.23Sfvdl/* syscall: "flistxattr" ret: "ssize_t" args: "int" "char *" "size_t" */
5671.23Sfvdl#define	LINUX_SYS_flistxattr	232
5681.23Sfvdl
5691.23Sfvdl/* syscall: "removexattr" ret: "int" args: "char *" "char *" */
5701.23Sfvdl#define	LINUX_SYS_removexattr	233
5711.23Sfvdl
5721.23Sfvdl/* syscall: "lremovexattr" ret: "int" args: "char *" "char *" */
5731.23Sfvdl#define	LINUX_SYS_lremovexattr	234
5741.23Sfvdl
5751.23Sfvdl/* syscall: "fremovexattr" ret: "int" args: "int" "char *" */
5761.23Sfvdl#define	LINUX_SYS_fremovexattr	235
5771.23Sfvdl
5781.19Sjdolecek/* syscall: "exit_group" ret: "int" args: "int" */
5791.19Sjdolecek#define	LINUX_SYS_exit_group	246
5801.19Sjdolecek
5811.20Sjdolecek/* syscall: "statfs64" ret: "int" args: "const char *" "size_t" "struct linux_statfs64 *" */
5821.20Sjdolecek#define	LINUX_SYS_statfs64	255
5831.20Sjdolecek
5841.20Sjdolecek/* syscall: "fstatfs64" ret: "int" args: "int" "size_t" "struct linux_statfs64 *" */
5851.20Sjdolecek#define	LINUX_SYS_fstatfs64	256
5861.20Sjdolecek
5871.24Sfvdl/* syscall: "clock_settime" ret: "int" args: "clockid_t" "struct linux_timespec *" */
5881.24Sfvdl#define	LINUX_SYS_clock_settime	262
5891.24Sfvdl
5901.24Sfvdl/* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct linux_timespec *" */
5911.24Sfvdl#define	LINUX_SYS_clock_gettime	263
5921.24Sfvdl
5931.24Sfvdl/* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct linux_timespec *" */
5941.24Sfvdl#define	LINUX_SYS_clock_getres	264
5951.24Sfvdl
5961.24Sfvdl/* syscall: "clock_nanosleep" ret: "int" args: "clockid_t" "int" "struct linux_timespec *" "struct linux_timespec *" */
5971.24Sfvdl#define	LINUX_SYS_clock_nanosleep	265
5981.24Sfvdl
5991.18Sjdolecek#define	LINUX_SYS_MAXSYSCALL	277
6001.18Sjdolecek#define	LINUX_SYS_NSYSENT	512
6011.26Schristos#endif /* _LINUX_SYS_SYSCALL_H_ */
602