linux_syscall.h revision 1.114
11.63Snjoly/* $NetBSD: linux_syscall.h,v 1.114 2021/09/20 02:20:30 thorpej Exp $ */ 21.1Serh 31.1Serh/* 41.1Serh * System call numbers. 51.1Serh * 61.1Serh * DO NOT EDIT-- this file is automatically generated. 71.114Sthorpej * created from NetBSD: syscalls.master,v 1.101 2021/09/20 02:20:02 thorpej 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.108Smaxv/* syscall: "osf1_wait4" ret: "int" args: "int" "int *" "int" "struct osf1_rusage *" */ 341.108Smaxv#define LINUX_SYS_osf1_wait4 7 351.108Smaxv 361.87Snjoly/* syscall: "creat" ret: "int" args: "const char *" "linux_umode_t" */ 371.1Serh#define LINUX_SYS_creat 8 381.1Serh 391.15Serh/* syscall: "link" ret: "int" args: "const char *" "const char *" */ 401.1Serh#define LINUX_SYS_link 9 411.1Serh 421.15Serh/* syscall: "unlink" ret: "int" args: "const char *" */ 431.1Serh#define LINUX_SYS_unlink 10 441.1Serh 451.15Serh/* syscall: "chdir" ret: "int" args: "const char *" */ 461.1Serh#define LINUX_SYS_chdir 12 471.1Serh 481.1Serh/* syscall: "fchdir" ret: "int" args: "int" */ 491.1Serh#define LINUX_SYS_fchdir 13 501.1Serh 511.92Snjoly/* syscall: "mknod" ret: "int" args: "const char *" "linux_umode_t" "unsigned" */ 521.1Serh#define LINUX_SYS_mknod 14 531.1Serh 541.15Serh/* syscall: "chmod" ret: "int" args: "const char *" "int" */ 551.1Serh#define LINUX_SYS_chmod 15 561.1Serh 571.98Snjoly/* syscall: "__posix_chown" ret: "int" args: "const char *" "uid_t" "gid_t" */ 581.32Sthorpej#define LINUX_SYS___posix_chown 16 591.1Serh 601.1Serh/* syscall: "brk" ret: "int" args: "char *" */ 611.1Serh#define LINUX_SYS_brk 17 621.1Serh 631.1Serh/* syscall: "lseek" ret: "long" args: "int" "long" "int" */ 641.1Serh#define LINUX_SYS_lseek 19 651.1Serh 661.28Smycroft/* syscall: "getpid_with_ppid" ret: "pid_t" args: */ 671.28Smycroft#define LINUX_SYS_getpid_with_ppid 20 681.1Serh 691.108Smaxv/* syscall: "osf1_mount" ret: "int" args: "int" "const char *" "int" "void *" */ 701.108Smaxv#define LINUX_SYS_osf1_mount 21 711.108Smaxv 721.1Serh/* syscall: "setuid" ret: "int" args: "uid_t" */ 731.1Serh#define LINUX_SYS_setuid 23 741.1Serh 751.29Smycroft/* syscall: "getuid_with_euid" ret: "uid_t" args: */ 761.29Smycroft#define LINUX_SYS_getuid_with_euid 24 771.14Stron 781.15Serh/* syscall: "ptrace" ret: "int" args: "long" "long" "long" "long" */ 791.14Stron#define LINUX_SYS_ptrace 26 801.1Serh 811.15Serh/* syscall: "access" ret: "int" args: "const char *" "int" */ 821.1Serh#define LINUX_SYS_access 33 831.1Serh 841.1Serh/* syscall: "sync" ret: "int" args: */ 851.1Serh#define LINUX_SYS_sync 36 861.1Serh 871.1Serh/* syscall: "kill" ret: "int" args: "int" "int" */ 881.1Serh#define LINUX_SYS_kill 37 891.1Serh 901.1Serh/* syscall: "setpgid" ret: "int" args: "int" "int" */ 911.1Serh#define LINUX_SYS_setpgid 39 921.1Serh 931.15Serh/* syscall: "dup" ret: "int" args: "int" */ 941.1Serh#define LINUX_SYS_dup 41 951.1Serh 961.1Serh/* syscall: "pipe" ret: "int" args: */ 971.1Serh#define LINUX_SYS_pipe 42 981.1Serh 991.108Smaxv/* syscall: "osf1_set_program_attributes" ret: "int" args: "void *" "unsigned long" "void *" "unsigned long" */ 1001.108Smaxv#define LINUX_SYS_osf1_set_program_attributes 43 1011.108Smaxv 1021.87Snjoly/* syscall: "open" ret: "int" args: "const char *" "int" "linux_umode_t" */ 1031.1Serh#define LINUX_SYS_open 45 1041.1Serh 1051.29Smycroft/* syscall: "getgid_with_egid" ret: "gid_t" args: */ 1061.29Smycroft#define LINUX_SYS_getgid_with_egid 47 1071.1Serh 1081.23Serh/* syscall: "sigprocmask" ret: "int" args: "int" "sigset13_t" */ 1091.23Serh#define LINUX_SYS_sigprocmask 48 1101.23Serh 1111.15Serh/* syscall: "acct" ret: "int" args: "const char *" */ 1121.1Serh#define LINUX_SYS_acct 51 1131.1Serh 1141.1Serh/* syscall: "sigpending" ret: "int" args: "linux_old_sigset_t *" */ 1151.1Serh#define LINUX_SYS_sigpending 52 1161.1Serh 1171.62Schristos/* syscall: "ioctl" ret: "int" args: "int" "u_long" "void *" */ 1181.1Serh#define LINUX_SYS_ioctl 54 1191.1Serh 1201.15Serh/* syscall: "symlink" ret: "int" args: "const char *" "const char *" */ 1211.1Serh#define LINUX_SYS_symlink 57 1221.1Serh 1231.99Snjoly/* syscall: "readlink" ret: "ssize_t" args: "const char *" "char *" "int" */ 1241.1Serh#define LINUX_SYS_readlink 58 1251.1Serh 1261.15Serh/* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */ 1271.1Serh#define LINUX_SYS_execve 59 1281.1Serh 1291.15Serh/* syscall: "umask" ret: "mode_t" args: "mode_t" */ 1301.1Serh#define LINUX_SYS_umask 60 1311.1Serh 1321.15Serh/* syscall: "chroot" ret: "int" args: "const char *" */ 1331.1Serh#define LINUX_SYS_chroot 61 1341.1Serh 1351.1Serh/* syscall: "getpgrp" ret: "int" args: */ 1361.1Serh#define LINUX_SYS_getpgrp 63 1371.1Serh 1381.1Serh/* syscall: "getpagesize" ret: "int" args: */ 1391.1Serh#define LINUX_SYS_getpagesize 64 1401.1Serh 1411.11Sthorpej/* syscall: "__vfork14" ret: "int" args: */ 1421.11Sthorpej#define LINUX_SYS___vfork14 66 1431.11Sthorpej 1441.15Serh/* syscall: "stat" ret: "int" args: "const char *" "struct linux_stat *" */ 1451.1Serh#define LINUX_SYS_stat 67 1461.1Serh 1471.15Serh/* syscall: "lstat" ret: "int" args: "const char *" "struct linux_stat *" */ 1481.1Serh#define LINUX_SYS_lstat 68 1491.1Serh 1501.40Smanu/* syscall: "mmap" ret: "int" args: "unsigned long" "size_t" "int" "int" "int" "linux_off_t" */ 1511.1Serh#define LINUX_SYS_mmap 71 1521.1Serh 1531.15Serh/* syscall: "munmap" ret: "int" args: "void *" "size_t" */ 1541.1Serh#define LINUX_SYS_munmap 73 1551.1Serh 1561.45Schristos/* syscall: "mprotect" ret: "int" args: "const void *" "unsigned long" "int" */ 1571.1Serh#define LINUX_SYS_mprotect 74 1581.1Serh 1591.49Sjdolecek/* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */ 1601.49Sjdolecek#define LINUX_SYS_madvise 75 1611.49Sjdolecek 1621.15Serh/* syscall: "getgroups" ret: "int" args: "int" "gid_t *" */ 1631.1Serh#define LINUX_SYS_getgroups 79 1641.1Serh 1651.15Serh/* syscall: "setgroups" ret: "int" args: "int" "const gid_t *" */ 1661.1Serh#define LINUX_SYS_setgroups 80 1671.1Serh 1681.108Smaxv/* syscall: "osf1_setitimer" ret: "int" args: "int" "struct osf1_itimerval *" "struct osf1_itimerval *" */ 1691.108Smaxv#define LINUX_SYS_osf1_setitimer 83 1701.108Smaxv 1711.1Serh/* syscall: "gethostname" ret: "int" args: "char *" "u_int" */ 1721.1Serh#define LINUX_SYS_gethostname 87 1731.1Serh 1741.1Serh/* syscall: "sethostname" ret: "int" args: "char *" "u_int" */ 1751.1Serh#define LINUX_SYS_sethostname 88 1761.1Serh 1771.15Serh/* syscall: "dup2" ret: "int" args: "int" "int" */ 1781.1Serh#define LINUX_SYS_dup2 90 1791.1Serh 1801.1Serh/* syscall: "fstat" ret: "int" args: "int" "struct linux_stat *" */ 1811.1Serh#define LINUX_SYS_fstat 91 1821.1Serh 1831.1Serh/* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */ 1841.1Serh#define LINUX_SYS_fcntl 92 1851.9Stron 1861.108Smaxv/* syscall: "osf1_select" ret: "int" args: "u_int" "fd_set *" "fd_set *" "fd_set *" "struct osf1_timeval *" */ 1871.108Smaxv#define LINUX_SYS_osf1_select 93 1881.108Smaxv 1891.9Stron/* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */ 1901.9Stron#define LINUX_SYS_poll 94 1911.1Serh 1921.1Serh/* syscall: "fsync" ret: "int" args: "int" */ 1931.1Serh#define LINUX_SYS_fsync 95 1941.1Serh 1951.1Serh/* syscall: "setpriority" ret: "int" args: "int" "int" "int" */ 1961.1Serh#define LINUX_SYS_setpriority 96 1971.1Serh 1981.1Serh/* syscall: "socket" ret: "int" args: "int" "int" "int" */ 1991.1Serh#define LINUX_SYS_socket 97 2001.1Serh 2011.39Sjdolecek/* syscall: "connect" ret: "int" args: "int" "const struct osockaddr *" "unsigned int" */ 2021.1Serh#define LINUX_SYS_connect 98 2031.1Serh 2041.39Sjdolecek/* syscall: "accept" ret: "int" args: "int" "struct osockaddr *" "int *" */ 2051.1Serh#define LINUX_SYS_accept 99 2061.1Serh 2071.1Serh/* syscall: "getpriority" ret: "int" args: "int" "int" */ 2081.1Serh#define LINUX_SYS_getpriority 100 2091.1Serh 2101.62Schristos/* syscall: "send" ret: "int" args: "int" "void *" "int" "int" */ 2111.1Serh#define LINUX_SYS_send 101 2121.1Serh 2131.62Schristos/* syscall: "recv" ret: "int" args: "int" "void *" "int" "int" */ 2141.1Serh#define LINUX_SYS_recv 102 2151.1Serh 2161.1Serh/* syscall: "sigreturn" ret: "int" args: "struct linux_sigframe *" */ 2171.1Serh#define LINUX_SYS_sigreturn 103 2181.1Serh 2191.39Sjdolecek/* syscall: "bind" ret: "int" args: "int" "const struct osockaddr *" "unsigned int" */ 2201.1Serh#define LINUX_SYS_bind 104 2211.1Serh 2221.1Serh/* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "void *" "int" */ 2231.1Serh#define LINUX_SYS_setsockopt 105 2241.1Serh 2251.1Serh/* syscall: "listen" ret: "int" args: "int" "int" */ 2261.1Serh#define LINUX_SYS_listen 106 2271.1Serh 2281.62Schristos/* syscall: "sigsuspend" ret: "int" args: "void *" "int" "int" */ 2291.1Serh#define LINUX_SYS_sigsuspend 111 2301.1Serh 2311.23Serh/* syscall: "sigstack" ret: "int" args: "struct sigstack *" "struct sigstack *" */ 2321.23Serh#define LINUX_SYS_sigstack 112 2331.23Serh 2341.75Snjoly/* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct linux_msghdr *" "int" */ 2351.1Serh#define LINUX_SYS_recvmsg 113 2361.1Serh 2371.75Snjoly/* syscall: "sendmsg" ret: "ssize_t" args: "int" "const struct linux_msghdr *" "int" */ 2381.1Serh#define LINUX_SYS_sendmsg 114 2391.1Serh 2401.108Smaxv/* syscall: "osf1_gettimeofday" ret: "int" args: "struct osf1_timeval *" "struct osf1_timezone *" */ 2411.108Smaxv#define LINUX_SYS_osf1_gettimeofday 116 2421.108Smaxv 2431.108Smaxv/* syscall: "osf1_getrusage" ret: "int" args: "int" "struct osf1_rusage *" */ 2441.108Smaxv#define LINUX_SYS_osf1_getrusage 117 2451.108Smaxv 2461.1Serh/* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */ 2471.1Serh#define LINUX_SYS_getsockopt 118 2481.1Serh 2491.15Serh/* syscall: "readv" ret: "ssize_t" args: "int" "const struct iovec *" "int" */ 2501.1Serh#define LINUX_SYS_readv 120 2511.1Serh 2521.22Serh/* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */ 2531.1Serh#define LINUX_SYS_writev 121 2541.1Serh 2551.108Smaxv/* syscall: "osf1_settimeofday" ret: "int" args: "struct osf1_timeval *" "struct osf1_timezone *" */ 2561.108Smaxv#define LINUX_SYS_osf1_settimeofday 122 2571.108Smaxv 2581.98Snjoly/* syscall: "__posix_fchown" ret: "int" args: "int" "uid_t" "gid_t" */ 2591.32Sthorpej#define LINUX_SYS___posix_fchown 123 2601.1Serh 2611.87Snjoly/* syscall: "fchmod" ret: "int" args: "int" "linux_umode_t" */ 2621.1Serh#define LINUX_SYS_fchmod 124 2631.1Serh 2641.39Sjdolecek/* syscall: "recvfrom" ret: "int" args: "int" "void *" "int" "int" "struct osockaddr *" "int *" */ 2651.1Serh#define LINUX_SYS_recvfrom 125 2661.1Serh 2671.32Sthorpej/* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */ 2681.1Serh#define LINUX_SYS_setreuid 126 2691.1Serh 2701.32Sthorpej/* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */ 2711.1Serh#define LINUX_SYS_setregid 127 2721.1Serh 2731.63Snjoly/* syscall: "__posix_rename" ret: "int" args: "const char *" "const char *" */ 2741.63Snjoly#define LINUX_SYS___posix_rename 128 2751.1Serh 2761.15Serh/* syscall: "truncate" ret: "int" args: "const char *" "long" */ 2771.1Serh#define LINUX_SYS_truncate 129 2781.1Serh 2791.1Serh/* syscall: "ftruncate" ret: "int" args: "int" "long" */ 2801.1Serh#define LINUX_SYS_ftruncate 130 2811.1Serh 2821.1Serh/* syscall: "flock" ret: "int" args: "int" "int" */ 2831.1Serh#define LINUX_SYS_flock 131 2841.1Serh 2851.1Serh/* syscall: "setgid" ret: "int" args: "gid_t" */ 2861.1Serh#define LINUX_SYS_setgid 132 2871.1Serh 2881.39Sjdolecek/* syscall: "sendto" ret: "int" args: "int" "void *" "int" "int" "struct osockaddr *" "int" */ 2891.1Serh#define LINUX_SYS_sendto 133 2901.1Serh 2911.1Serh/* syscall: "shutdown" ret: "int" args: "int" "int" */ 2921.1Serh#define LINUX_SYS_shutdown 134 2931.1Serh 2941.1Serh/* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */ 2951.1Serh#define LINUX_SYS_socketpair 135 2961.1Serh 2971.87Snjoly/* syscall: "mkdir" ret: "int" args: "const char *" "linux_umode_t" */ 2981.1Serh#define LINUX_SYS_mkdir 136 2991.1Serh 3001.15Serh/* syscall: "rmdir" ret: "int" args: "const char *" */ 3011.1Serh#define LINUX_SYS_rmdir 137 3021.1Serh 3031.108Smaxv/* syscall: "osf1_utimes" ret: "int" args: "const char *" "const struct osf1_timeval *" */ 3041.108Smaxv#define LINUX_SYS_osf1_utimes 138 3051.108Smaxv 3061.62Schristos/* syscall: "getpeername" ret: "int" args: "int" "void *" "int *" */ 3071.1Serh#define LINUX_SYS_getpeername 141 3081.1Serh 3091.15Serh/* syscall: "getrlimit" ret: "int" args: "int" "struct orlimit *" */ 3101.1Serh#define LINUX_SYS_getrlimit 144 3111.1Serh 3121.15Serh/* syscall: "setrlimit" ret: "int" args: "int" "const struct orlimit *" */ 3131.1Serh#define LINUX_SYS_setrlimit 145 3141.1Serh 3151.1Serh/* syscall: "setsid" ret: "int" args: */ 3161.1Serh#define LINUX_SYS_setsid 147 3171.1Serh 3181.62Schristos/* syscall: "getsockname" ret: "int" args: "int" "void *" "int *" */ 3191.1Serh#define LINUX_SYS_getsockname 150 3201.1Serh 3211.1Serh/* syscall: "sigaction" ret: "int" args: "int" "const struct linux_old_sigaction *" "struct linux_old_sigaction *" */ 3221.1Serh#define LINUX_SYS_sigaction 156 3231.23Serh 3241.23Serh/* syscall: "getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */ 3251.23Serh#define LINUX_SYS_getdirentries 159 3261.23Serh 3271.108Smaxv/* syscall: "osf1_statfs" ret: "int" args: "const char *" "struct osf1_statfs *" "int" */ 3281.108Smaxv#define LINUX_SYS_osf1_statfs 160 3291.108Smaxv 3301.108Smaxv/* syscall: "osf1_fstatfs" ret: "int" args: "int" "struct osf1_statfs *" "int" */ 3311.108Smaxv#define LINUX_SYS_osf1_fstatfs 161 3321.108Smaxv 3331.23Serh/* syscall: "getdomainname" ret: "int" args: "char *" "int" */ 3341.23Serh#define LINUX_SYS_getdomainname 165 3351.1Serh 3361.24Sjdolecek/* syscall: "setdomainname" ret: "int" args: "char *" "int" */ 3371.24Sjdolecek#define LINUX_SYS_setdomainname 166 3381.43Schristos 3391.43Schristos/* syscall: "ugetrlimit" ret: "int" args: "int" "struct rlimit *" */ 3401.43Schristos#define LINUX_SYS_ugetrlimit 191 3411.24Sjdolecek 3421.49Sjdolecek#ifdef SYSVMSG 3431.1Serh/* syscall: "msgctl" ret: "int" args: "int" "int" "struct linux_msqid_ds *" */ 3441.1Serh#define LINUX_SYS_msgctl 200 3451.1Serh 3461.1Serh/* syscall: "msgget" ret: "int" args: "key_t" "int" */ 3471.1Serh#define LINUX_SYS_msgget 201 3481.1Serh 3491.17Serh/* syscall: "msgrcv" ret: "ssize_t" args: "int" "void *" "size_t" "long" "int" */ 3501.1Serh#define LINUX_SYS_msgrcv 202 3511.1Serh 3521.1Serh/* syscall: "msgsnd" ret: "int" args: "int" "void *" "size_t" "int" */ 3531.1Serh#define LINUX_SYS_msgsnd 203 3541.1Serh 3551.49Sjdolecek#else 3561.49Sjdolecek#endif 3571.49Sjdolecek#ifdef SYSVSEM 3581.1Serh/* syscall: "semctl" ret: "int" args: "int" "int" "int" "union linux_semun" */ 3591.1Serh#define LINUX_SYS_semctl 204 3601.1Serh 3611.1Serh/* syscall: "semget" ret: "int" args: "key_t" "int" "int" */ 3621.1Serh#define LINUX_SYS_semget 205 3631.1Serh 3641.15Serh/* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "size_t" */ 3651.1Serh#define LINUX_SYS_semop 206 3661.1Serh 3671.49Sjdolecek#else 3681.49Sjdolecek#endif 3691.1Serh/* syscall: "olduname" ret: "int" args: "struct linux_old_utsname *" */ 3701.1Serh#define LINUX_SYS_olduname 207 3711.1Serh 3721.98Snjoly/* syscall: "__posix_lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */ 3731.32Sthorpej#define LINUX_SYS___posix_lchown 208 3741.1Serh 3751.49Sjdolecek#ifdef SYSVSHM 3761.1Serh/* syscall: "shmat" ret: "int" args: "int" "void *" "int" "u_long *" */ 3771.1Serh#define LINUX_SYS_shmat 209 3781.1Serh 3791.1Serh/* syscall: "shmctl" ret: "int" args: "int" "int" "struct linux_shmid_ds *" */ 3801.1Serh#define LINUX_SYS_shmctl 210 3811.1Serh 3821.15Serh/* syscall: "shmdt" ret: "int" args: "const void *" */ 3831.1Serh#define LINUX_SYS_shmdt 211 3841.1Serh 3851.15Serh/* syscall: "shmget" ret: "int" args: "key_t" "size_t" "int" */ 3861.1Serh#define LINUX_SYS_shmget 212 3871.1Serh 3881.49Sjdolecek#else 3891.49Sjdolecek#endif 3901.67Snjoly/* syscall: "__msync13" ret: "int" args: "void *" "size_t" "int" */ 3911.67Snjoly#define LINUX_SYS___msync13 217 3921.1Serh 3931.66Snjoly/* syscall: "getpgid" ret: "pid_t" args: "pid_t" */ 3941.1Serh#define LINUX_SYS_getpgid 233 3951.1Serh 3961.1Serh/* syscall: "getsid" ret: "pid_t" args: "pid_t" */ 3971.1Serh#define LINUX_SYS_getsid 234 3981.1Serh 3991.108Smaxv/* syscall: "osf1_sysinfo" ret: "int" args: "int" "char *" "long" */ 4001.108Smaxv#define LINUX_SYS_osf1_sysinfo 241 4011.108Smaxv 4021.108Smaxv/* syscall: "osf1_usleep_thread" ret: "int" args: "struct osf1_timeval *" "struct osf1_timeval *" */ 4031.108Smaxv#define LINUX_SYS_osf1_usleep_thread 251 4041.108Smaxv 4051.108Smaxv/* syscall: "osf1_getsysinfo" ret: "int" args: "u_long" "void *" "u_long" "void *" "u_long" */ 4061.108Smaxv#define LINUX_SYS_osf1_getsysinfo 256 4071.108Smaxv 4081.108Smaxv/* syscall: "osf1_setsysinfo" ret: "int" args: "u_long" "void *" "u_long" "void *" "u_long" */ 4091.108Smaxv#define LINUX_SYS_osf1_setsysinfo 257 4101.108Smaxv 4111.1Serh/* syscall: "fdatasync" ret: "int" args: "int" */ 4121.1Serh#define LINUX_SYS_fdatasync 261 4131.25Sjdolecek 4141.25Sjdolecek/* syscall: "swapoff" ret: "int" args: "const char *" */ 4151.25Sjdolecek#define LINUX_SYS_swapoff 304 4161.1Serh 4171.1Serh/* syscall: "getdents" ret: "int" args: "int" "struct linux_dirent *" "unsigned int" */ 4181.1Serh#define LINUX_SYS_getdents 305 4191.1Serh 4201.16Serh/* syscall: "reboot" ret: "int" args: "int" "int" "int" "void *" */ 4211.1Serh#define LINUX_SYS_reboot 311 4221.18Serh 4231.78Schs/* syscall: "clone" ret: "int" args: "int" "void *" "void *" "void *" "void *" */ 4241.18Serh#define LINUX_SYS_clone 312 4251.1Serh 4261.49Sjdolecek#ifdef EXEC_AOUT 4271.24Sjdolecek/* syscall: "uselib" ret: "int" args: "const char *" */ 4281.1Serh#define LINUX_SYS_uselib 313 4291.1Serh 4301.49Sjdolecek#else 4311.49Sjdolecek#endif 4321.1Serh/* syscall: "mlock" ret: "int" args: "const void *" "size_t" */ 4331.1Serh#define LINUX_SYS_mlock 314 4341.1Serh 4351.1Serh/* syscall: "munlock" ret: "int" args: "const void *" "size_t" */ 4361.1Serh#define LINUX_SYS_munlock 315 4371.21Sjdolecek 4381.21Sjdolecek/* syscall: "mlockall" ret: "int" args: "int" */ 4391.21Sjdolecek#define LINUX_SYS_mlockall 316 4401.21Sjdolecek 4411.21Sjdolecek/* syscall: "munlockall" ret: "int" args: */ 4421.21Sjdolecek#define LINUX_SYS_munlockall 317 4431.31Sjdolecek 4441.31Sjdolecek/* syscall: "sysinfo" ret: "int" args: "struct linux_sysinfo *" */ 4451.31Sjdolecek#define LINUX_SYS_sysinfo 318 4461.1Serh 4471.1Serh/* syscall: "__sysctl" ret: "int" args: "struct linux___sysctl *" */ 4481.1Serh#define LINUX_SYS___sysctl 319 4491.1Serh 4501.15Serh/* syscall: "swapon" ret: "int" args: "const char *" */ 4511.1Serh#define LINUX_SYS_swapon 322 4521.1Serh 4531.1Serh/* syscall: "times" ret: "int" args: "struct times *" */ 4541.1Serh#define LINUX_SYS_times 323 4551.1Serh 4561.76Snjoly/* syscall: "personality" ret: "int" args: "unsigned long" */ 4571.1Serh#define LINUX_SYS_personality 324 4581.1Serh 4591.15Serh/* syscall: "setfsuid" ret: "int" args: "uid_t" */ 4601.15Serh#define LINUX_SYS_setfsuid 325 4611.15Serh 4621.65Snjoly/* syscall: "setfsgid" ret: "int" args: "gid_t" */ 4631.65Snjoly#define LINUX_SYS_setfsgid 326 4641.65Snjoly 4651.15Serh/* syscall: "statfs" ret: "int" args: "const char *" "struct linux_statfs *" */ 4661.1Serh#define LINUX_SYS_statfs 328 4671.1Serh 4681.1Serh/* syscall: "fstatfs" ret: "int" args: "int" "struct linux_statfs *" */ 4691.1Serh#define LINUX_SYS_fstatfs 329 4701.12Stron 4711.12Stron/* syscall: "sched_setparam" ret: "int" args: "pid_t" "const struct linux_sched_param *" */ 4721.12Stron#define LINUX_SYS_sched_setparam 330 4731.12Stron 4741.12Stron/* syscall: "sched_getparam" ret: "int" args: "pid_t" "struct linux_sched_param *" */ 4751.12Stron#define LINUX_SYS_sched_getparam 331 4761.12Stron 4771.12Stron/* syscall: "sched_setscheduler" ret: "int" args: "pid_t" "int" "const struct linux_sched_param *" */ 4781.12Stron#define LINUX_SYS_sched_setscheduler 332 4791.12Stron 4801.12Stron/* syscall: "sched_getscheduler" ret: "int" args: "pid_t" */ 4811.12Stron#define LINUX_SYS_sched_getscheduler 333 4821.12Stron 4831.12Stron/* syscall: "sched_yield" ret: "int" args: */ 4841.12Stron#define LINUX_SYS_sched_yield 334 4851.12Stron 4861.12Stron/* syscall: "sched_get_priority_max" ret: "int" args: "int" */ 4871.12Stron#define LINUX_SYS_sched_get_priority_max 335 4881.12Stron 4891.12Stron/* syscall: "sched_get_priority_min" ret: "int" args: "int" */ 4901.12Stron#define LINUX_SYS_sched_get_priority_min 336 4911.1Serh 4921.1Serh/* syscall: "uname" ret: "int" args: "struct linux_utsname *" */ 4931.1Serh#define LINUX_SYS_uname 339 4941.1Serh 4951.68Snjoly/* syscall: "nanosleep" ret: "int" args: "const struct linux_timespec *" "struct linux_timespec *" */ 4961.1Serh#define LINUX_SYS_nanosleep 340 4971.1Serh 4981.1Serh/* syscall: "mremap" ret: "void *" args: "void *" "size_t" "size_t" "u_long" */ 4991.1Serh#define LINUX_SYS_mremap 341 5001.11Sthorpej 5011.11Sthorpej/* syscall: "setresuid" ret: "int" args: "uid_t" "uid_t" "uid_t" */ 5021.11Sthorpej#define LINUX_SYS_setresuid 343 5031.11Sthorpej 5041.11Sthorpej/* syscall: "getresuid" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */ 5051.11Sthorpej#define LINUX_SYS_getresuid 344 5061.7Sthorpej 5071.91Snjoly/* syscall: "pread" ret: "int" args: "int" "char *" "size_t" "off_t" */ 5081.7Sthorpej#define LINUX_SYS_pread 349 5091.7Sthorpej 5101.91Snjoly/* syscall: "pwrite" ret: "int" args: "int" "char *" "size_t" "off_t" */ 5111.7Sthorpej#define LINUX_SYS_pwrite 350 5121.1Serh 5131.1Serh/* syscall: "rt_sigreturn" ret: "int" args: "struct linux_rt_sigframe *" */ 5141.1Serh#define LINUX_SYS_rt_sigreturn 351 5151.1Serh 5161.1Serh/* syscall: "rt_sigaction" ret: "int" args: "int" "const struct linux_sigaction *" "struct linux_sigaction *" "size_t" */ 5171.1Serh#define LINUX_SYS_rt_sigaction 352 5181.1Serh 5191.1Serh/* syscall: "rt_sigprocmask" ret: "int" args: "int" "const linux_sigset_t *" "linux_sigset_t *" "size_t" */ 5201.1Serh#define LINUX_SYS_rt_sigprocmask 353 5211.1Serh 5221.1Serh/* syscall: "rt_sigpending" ret: "int" args: "linux_sigset_t *" "size_t" */ 5231.1Serh#define LINUX_SYS_rt_sigpending 354 5241.1Serh 5251.82Schristos/* syscall: "rt_sigtimedwait" ret: "int" args: "const linux_sigset_t *" "linux_siginfo_t *" "const struct linux_timespec *" */ 5261.82Schristos#define LINUX_SYS_rt_sigtimedwait 355 5271.82Schristos 5281.4Serh/* syscall: "rt_queueinfo" ret: "int" args: "int" "int" "linux_siginfo_t *" */ 5291.1Serh#define LINUX_SYS_rt_queueinfo 356 5301.1Serh 5311.1Serh/* syscall: "rt_sigsuspend" ret: "int" args: "linux_sigset_t *" "size_t" */ 5321.1Serh#define LINUX_SYS_rt_sigsuspend 357 5331.1Serh 5341.72Snjoly/* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval50 *" */ 5351.1Serh#define LINUX_SYS_select 358 5361.1Serh 5371.72Snjoly/* syscall: "gettimeofday" ret: "int" args: "struct timeval50 *" "struct timezone *" */ 5381.1Serh#define LINUX_SYS_gettimeofday 359 5391.1Serh 5401.89Snjoly/* syscall: "settimeofday" ret: "int" args: "struct timeval50 *" "struct timezone *" */ 5411.1Serh#define LINUX_SYS_settimeofday 360 5421.1Serh 5431.72Snjoly/* syscall: "getitimer" ret: "int" args: "int" "struct itimerval50 *" */ 5441.1Serh#define LINUX_SYS_getitimer 361 5451.1Serh 5461.72Snjoly/* syscall: "setitimer" ret: "int" args: "int" "const struct itimerval50 *" "struct itimerval50 *" */ 5471.1Serh#define LINUX_SYS_setitimer 362 5481.1Serh 5491.94Snjoly/* syscall: "utimes" ret: "int" args: "const char *" "const struct timeval50 *" */ 5501.1Serh#define LINUX_SYS_utimes 363 5511.1Serh 5521.72Snjoly/* syscall: "getrusage" ret: "int" args: "int" "struct rusage50 *" */ 5531.1Serh#define LINUX_SYS_getrusage 364 5541.1Serh 5551.73Snjoly/* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage50 *" */ 5561.1Serh#define LINUX_SYS_wait4 365 5571.1Serh 5581.8Stron/* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */ 5591.8Stron#define LINUX_SYS___getcwd 367 5601.46Schristos 5611.49Sjdolecek/* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */ 5621.49Sjdolecek#define LINUX_SYS_mincore 375 5631.49Sjdolecek 5641.46Schristos/* syscall: "getdents64" ret: "int" args: "int" "struct linux_dirent64 *" "unsigned int" */ 5651.46Schristos#define LINUX_SYS_getdents64 377 5661.8Stron 5671.78Schs/* syscall: "gettid" ret: "pid_t" args: */ 5681.78Schs#define LINUX_SYS_gettid 378 5691.78Schs 5701.78Schs/* syscall: "tkill" ret: "int" args: "int" "int" */ 5711.78Schs#define LINUX_SYS_tkill 381 5721.78Schs 5731.56Sfvdl/* syscall: "setxattr" ret: "int" args: "char *" "char *" "void *" "size_t" "int" */ 5741.56Sfvdl#define LINUX_SYS_setxattr 382 5751.56Sfvdl 5761.56Sfvdl/* syscall: "lsetxattr" ret: "int" args: "char *" "char *" "void *" "size_t" "int" */ 5771.56Sfvdl#define LINUX_SYS_lsetxattr 383 5781.56Sfvdl 5791.56Sfvdl/* syscall: "fsetxattr" ret: "int" args: "int" "char *" "void *" "size_t" "int" */ 5801.56Sfvdl#define LINUX_SYS_fsetxattr 384 5811.56Sfvdl 5821.56Sfvdl/* syscall: "getxattr" ret: "ssize_t" args: "char *" "char *" "void *" "size_t" */ 5831.56Sfvdl#define LINUX_SYS_getxattr 385 5841.56Sfvdl 5851.56Sfvdl/* syscall: "lgetxattr" ret: "ssize_t" args: "char *" "char *" "void *" "size_t" */ 5861.56Sfvdl#define LINUX_SYS_lgetxattr 386 5871.56Sfvdl 5881.56Sfvdl/* syscall: "fgetxattr" ret: "ssize_t" args: "int" "char *" "void *" "size_t" */ 5891.56Sfvdl#define LINUX_SYS_fgetxattr 387 5901.56Sfvdl 5911.56Sfvdl/* syscall: "listxattr" ret: "ssize_t" args: "char *" "char *" "size_t" */ 5921.56Sfvdl#define LINUX_SYS_listxattr 388 5931.56Sfvdl 5941.56Sfvdl/* syscall: "llistxattr" ret: "ssize_t" args: "char *" "char *" "size_t" */ 5951.56Sfvdl#define LINUX_SYS_llistxattr 389 5961.56Sfvdl 5971.56Sfvdl/* syscall: "flistxattr" ret: "ssize_t" args: "int" "char *" "size_t" */ 5981.56Sfvdl#define LINUX_SYS_flistxattr 390 5991.56Sfvdl 6001.56Sfvdl/* syscall: "removexattr" ret: "int" args: "char *" "char *" */ 6011.56Sfvdl#define LINUX_SYS_removexattr 391 6021.56Sfvdl 6031.56Sfvdl/* syscall: "lremovexattr" ret: "int" args: "char *" "char *" */ 6041.56Sfvdl#define LINUX_SYS_lremovexattr 392 6051.56Sfvdl 6061.56Sfvdl/* syscall: "fremovexattr" ret: "int" args: "int" "char *" */ 6071.56Sfvdl#define LINUX_SYS_fremovexattr 393 6081.56Sfvdl 6091.78Schs/* syscall: "futex" ret: "int" args: "int *" "int" "int" "const struct linux_timespec *" "int *" "int" */ 6101.78Schs#define LINUX_SYS_futex 394 6111.78Schs 6121.78Schs/* syscall: "sched_setaffinity" ret: "int" args: "pid_t" "unsigned int" "unsigned long *" */ 6131.78Schs#define LINUX_SYS_sched_setaffinity 395 6141.78Schs 6151.78Schs/* syscall: "sched_getaffinity" ret: "int" args: "pid_t" "unsigned int" "unsigned long *" */ 6161.78Schs#define LINUX_SYS_sched_getaffinity 396 6171.78Schs 6181.51Sjdolecek/* syscall: "exit_group" ret: "int" args: "int" */ 6191.51Sjdolecek#define LINUX_SYS_exit_group 405 6201.51Sjdolecek 6211.78Schs/* syscall: "set_tid_address" ret: "int" args: "int *" */ 6221.78Schs#define LINUX_SYS_set_tid_address 411 6231.78Schs 6241.93Snjoly/* syscall: "fadvise64" ret: "int" args: "int" "off_t" "size_t" "int" */ 6251.80Salnsn#define LINUX_SYS_fadvise64 413 6261.80Salnsn 6271.111Sthorpej/* syscall: "timer_create" ret: "int" args: "clockid_t" "struct linux_sigevent *" "timer_t *" */ 6281.111Sthorpej#define LINUX_SYS_timer_create 414 6291.111Sthorpej 6301.111Sthorpej/* syscall: "timer_settime" ret: "int" args: "timer_t" "int" "const struct linux_itimerspec *" "struct linux_itimerspec *" */ 6311.111Sthorpej#define LINUX_SYS_timer_settime 415 6321.111Sthorpej 6331.111Sthorpej/* syscall: "timer_gettime" ret: "int" args: "timer_t" "struct linux_itimerspec *" */ 6341.111Sthorpej#define LINUX_SYS_timer_gettime 416 6351.111Sthorpej 6361.111Sthorpej/* syscall: "timer_getoverrun" ret: "int" args: "timer_t" */ 6371.111Sthorpej#define LINUX_SYS_timer_getoverrun 417 6381.111Sthorpej 6391.111Sthorpej/* syscall: "timer_delete" ret: "int" args: "timer_t" */ 6401.111Sthorpej#define LINUX_SYS_timer_delete 418 6411.111Sthorpej 6421.57Sfvdl/* syscall: "clock_settime" ret: "int" args: "clockid_t" "struct linux_timespec *" */ 6431.57Sfvdl#define LINUX_SYS_clock_settime 419 6441.57Sfvdl 6451.57Sfvdl/* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct linux_timespec *" */ 6461.57Sfvdl#define LINUX_SYS_clock_gettime 420 6471.57Sfvdl 6481.57Sfvdl/* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct linux_timespec *" */ 6491.57Sfvdl#define LINUX_SYS_clock_getres 421 6501.57Sfvdl 6511.57Sfvdl/* syscall: "clock_nanosleep" ret: "int" args: "clockid_t" "int" "struct linux_timespec *" "struct linux_timespec *" */ 6521.57Sfvdl#define LINUX_SYS_clock_nanosleep 422 6531.57Sfvdl 6541.78Schs/* syscall: "tgkill" ret: "int" args: "int" "int" "int" */ 6551.78Schs#define LINUX_SYS_tgkill 424 6561.78Schs 6571.88Snjoly/* syscall: "stat64" ret: "int" args: "const char *" "struct linux_stat64 *" */ 6581.88Snjoly#define LINUX_SYS_stat64 425 6591.88Snjoly 6601.88Snjoly/* syscall: "lstat64" ret: "int" args: "const char *" "struct linux_stat64 *" */ 6611.88Snjoly#define LINUX_SYS_lstat64 426 6621.88Snjoly 6631.88Snjoly/* syscall: "fstat64" ret: "int" args: "int" "struct linux_stat64 *" */ 6641.88Snjoly#define LINUX_SYS_fstat64 427 6651.88Snjoly 6661.86Schs/* syscall: "openat" ret: "int" args: "int" "const char *" "int" "..." */ 6671.86Schs#define LINUX_SYS_openat 450 6681.86Schs 6691.86Schs/* syscall: "mkdirat" ret: "int" args: "int" "const char *" "linux_umode_t" */ 6701.86Schs#define LINUX_SYS_mkdirat 451 6711.86Schs 6721.86Schs/* syscall: "mknodat" ret: "int" args: "int" "const char *" "linux_umode_t" "unsigned" */ 6731.86Schs#define LINUX_SYS_mknodat 452 6741.86Schs 6751.86Schs/* syscall: "fchownat" ret: "int" args: "int" "const char *" "uid_t" "gid_t" "int" */ 6761.86Schs#define LINUX_SYS_fchownat 453 6771.86Schs 6781.88Snjoly/* syscall: "fstatat64" ret: "int" args: "int" "const char *" "struct linux_stat64 *" "int" */ 6791.88Snjoly#define LINUX_SYS_fstatat64 455 6801.88Snjoly 6811.86Schs/* syscall: "unlinkat" ret: "int" args: "int" "const char *" "int" */ 6821.86Schs#define LINUX_SYS_unlinkat 456 6831.86Schs 6841.86Schs/* syscall: "renameat" ret: "int" args: "int" "const char *" "int" "const char *" */ 6851.86Schs#define LINUX_SYS_renameat 457 6861.86Schs 6871.86Schs/* syscall: "linkat" ret: "int" args: "int" "const char *" "int" "const char *" "int" */ 6881.86Schs#define LINUX_SYS_linkat 458 6891.86Schs 6901.86Schs/* syscall: "symlinkat" ret: "int" args: "const char *" "int" "const char *" */ 6911.86Schs#define LINUX_SYS_symlinkat 459 6921.86Schs 6931.99Snjoly/* syscall: "readlinkat" ret: "ssize_t" args: "int" "const char *" "char *" "size_t" */ 6941.86Schs#define LINUX_SYS_readlinkat 460 6951.86Schs 6961.86Schs/* syscall: "fchmodat" ret: "int" args: "int" "const char *" "linux_umode_t" */ 6971.86Schs#define LINUX_SYS_fchmodat 461 6981.86Schs 6991.86Schs/* syscall: "faccessat" ret: "int" args: "int" "const char *" "int" */ 7001.86Schs#define LINUX_SYS_faccessat 462 7011.86Schs 7021.100Smanu/* syscall: "pselect6" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct linux_timespec *" "linux_sized_sigset_t *" */ 7031.100Smanu#define LINUX_SYS_pselect6 463 7041.100Smanu 7051.95Snjoly/* syscall: "ppoll" ret: "int" args: "struct pollfd *" "u_int" "struct linux_timespec *" "linux_sigset_t *" */ 7061.83Spooka#define LINUX_SYS_ppoll 464 7071.83Spooka 7081.110Sthorpej/* syscall: "__futex_set_robust_list" ret: "int" args: "void *" "size_t" */ 7091.110Sthorpej#define LINUX_SYS___futex_set_robust_list 466 7101.78Schs 7111.110Sthorpej/* syscall: "__futex_get_robust_list" ret: "int" args: "lwpid_t" "void **" "size_t *" */ 7121.110Sthorpej#define LINUX_SYS___futex_get_robust_list 467 7131.78Schs 7141.85Snjoly/* syscall: "utimensat" ret: "int" args: "int" "const char *" "struct linux_timespec *" "int" */ 7151.85Snjoly#define LINUX_SYS_utimensat 475 7161.85Snjoly 7171.113Sthorpej/* syscall: "eventfd" ret: "int" args: "unsigned int" */ 7181.113Sthorpej#define LINUX_SYS_eventfd 478 7191.113Sthorpej 7201.105Schristos/* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */ 7211.105Schristos#define LINUX_SYS_recvmmsg 479 7221.105Schristos 7231.109Sjdolecek/* syscall: "fallocate" ret: "int" args: "int" "int" "off_t" "off_t" */ 7241.109Sjdolecek#define LINUX_SYS_fallocate 480 7251.109Sjdolecek 7261.112Sthorpej/* syscall: "timerfd_create" ret: "int" args: "clockid_t" "int" */ 7271.112Sthorpej#define LINUX_SYS_timerfd_create 481 7281.112Sthorpej 7291.112Sthorpej/* syscall: "timerfd_settime" ret: "int" args: "int" "int" "const struct linux_itimerspec *" "struct linux_itimerspec *" */ 7301.112Sthorpej#define LINUX_SYS_timerfd_settime 482 7311.112Sthorpej 7321.112Sthorpej/* syscall: "timerfd_gettime" ret: "int" args: "int" "struct linux_itimerspec *" */ 7331.112Sthorpej#define LINUX_SYS_timerfd_gettime 483 7341.112Sthorpej 7351.113Sthorpej/* syscall: "eventfd2" ret: "int" args: "unsigned int" "int" */ 7361.113Sthorpej#define LINUX_SYS_eventfd2 485 7371.113Sthorpej 7381.79She/* syscall: "dup3" ret: "int" args: "int" "int" "int" */ 7391.79She#define LINUX_SYS_dup3 487 7401.79She 7411.79She/* syscall: "pipe2" ret: "int" args: "int *" "int" */ 7421.79She#define LINUX_SYS_pipe2 488 7431.79She 7441.114Sthorpej/* syscall: "preadv" ret: "int" args: "int" "const struct iovec *" "int" "unsigned long" "unsigned long" */ 7451.114Sthorpej#define LINUX_SYS_preadv 490 7461.114Sthorpej 7471.114Sthorpej/* syscall: "pwritev" ret: "int" args: "int" "const struct iovcnt *" "int" "unsigned long" "unsigned long" */ 7481.114Sthorpej#define LINUX_SYS_pwritev 491 7491.114Sthorpej 7501.104Smartin/* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */ 7511.104Smartin#define LINUX_SYS_accept4 502 7521.104Smartin 7531.105Schristos/* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */ 7541.105Schristos#define LINUX_SYS_sendmmsg 503 7551.105Schristos 7561.105Schristos#define LINUX_SYS_MAXSYSCALL 511 7571.30Smycroft#define LINUX_SYS_NSYSENT 512 7581.59Schristos#endif /* _LINUX_SYS_SYSCALL_H_ */ 759