linux_syscall.h revision 1.40
167754Smsmith/* $NetBSD: linux_syscall.h,v 1.40 2011/05/30 17:50:31 alnsn Exp $ */ 267754Smsmith 377424Smsmith/* 477424Smsmith * System call numbers. 567754Smsmith * 667754Smsmith * DO NOT EDIT-- this file is automatically generated. 767754Smsmith * created from NetBSD: syscalls.master,v 1.36 2011/04/10 15:48:46 christos Exp 867754Smsmith */ 967754Smsmith 1067754Smsmith#ifndef _LINUX_SYS_SYSCALL_H_ 1167754Smsmith#define _LINUX_SYS_SYSCALL_H_ 1271867Smsmith 1370243Smsmith#define LINUX_SYS_MAXSYSARGS 8 1467754Smsmith 1567754Smsmith/* syscall: "read" ret: "int" args: "int" "char *" "u_int" */ 1667754Smsmith#define LINUX_SYS_read 0 1767754Smsmith 1867754Smsmith/* syscall: "write" ret: "int" args: "int" "char *" "u_int" */ 1967754Smsmith#define LINUX_SYS_write 1 2067754Smsmith 2167754Smsmith/* syscall: "open" ret: "int" args: "const char *" "int" "int" */ 2267754Smsmith#define LINUX_SYS_open 2 2367754Smsmith 2467754Smsmith/* syscall: "close" ret: "int" args: "int" */ 2567754Smsmith#define LINUX_SYS_close 3 2667754Smsmith 2767754Smsmith/* syscall: "stat64" ret: "int" args: "const char *" "struct linux_stat64 *" */ 2867754Smsmith#define LINUX_SYS_stat64 4 2967754Smsmith 3067754Smsmith/* syscall: "fstat64" ret: "int" args: "int" "struct linux_stat64 *" */ 3167754Smsmith#define LINUX_SYS_fstat64 5 3267754Smsmith 3367754Smsmith/* syscall: "lstat64" ret: "int" args: "const char *" "struct linux_stat64 *" */ 3467754Smsmith#define LINUX_SYS_lstat64 6 3567754Smsmith 3667754Smsmith/* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */ 3767754Smsmith#define LINUX_SYS_poll 7 3867754Smsmith 3967754Smsmith/* syscall: "lseek" ret: "long" args: "int" "long" "int" */ 4067754Smsmith#define LINUX_SYS_lseek 8 4167754Smsmith 4267754Smsmith/* syscall: "mmap" ret: "linux_off_t" args: "unsigned long" "size_t" "int" "int" "int" "linux_off_t" */ 4367754Smsmith#define LINUX_SYS_mmap 9 4467754Smsmith 4567754Smsmith/* syscall: "mprotect" ret: "int" args: "const void *" "unsigned long" "int" */ 4667754Smsmith#define LINUX_SYS_mprotect 10 4767754Smsmith 4867754Smsmith/* syscall: "munmap" ret: "int" args: "void *" "int" */ 4967754Smsmith#define LINUX_SYS_munmap 11 5067754Smsmith 5167754Smsmith/* syscall: "brk" ret: "int" args: "char *" */ 5267754Smsmith#define LINUX_SYS_brk 12 5367754Smsmith 5467754Smsmith/* syscall: "rt_sigaction" ret: "int" args: "int" "const struct linux_sigaction *" "struct linux_sigaction *" "size_t" */ 5567754Smsmith#define LINUX_SYS_rt_sigaction 13 5667754Smsmith 5767754Smsmith/* syscall: "rt_sigprocmask" ret: "int" args: "int" "const linux_sigset_t *" "linux_sigset_t *" "size_t" */ 5867754Smsmith#define LINUX_SYS_rt_sigprocmask 14 5967754Smsmith 6067754Smsmith/* syscall: "rt_sigreturn" ret: "int" args: */ 6167754Smsmith#define LINUX_SYS_rt_sigreturn 15 6267754Smsmith 6367754Smsmith/* syscall: "ioctl" ret: "int" args: "int" "u_long" "void *" */ 6467754Smsmith#define LINUX_SYS_ioctl 16 6567754Smsmith 6667754Smsmith/* syscall: "pread" ret: "int" args: "int" "char *" "size_t" "linux_off_t" */ 6767754Smsmith#define LINUX_SYS_pread 17 6867754Smsmith 6967754Smsmith/* syscall: "pwrite" ret: "int" args: "int" "char *" "size_t" "linux_off_t" */ 7067754Smsmith#define LINUX_SYS_pwrite 18 7167754Smsmith 7267754Smsmith/* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */ 7367754Smsmith#define LINUX_SYS_readv 19 7467754Smsmith 7567754Smsmith/* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */ 7667754Smsmith#define LINUX_SYS_writev 20 7767754Smsmith 7867754Smsmith/* syscall: "access" ret: "int" args: "const char *" "int" */ 7967754Smsmith#define LINUX_SYS_access 21 8067754Smsmith 8167754Smsmith/* syscall: "pipe" ret: "int" args: "int *" */ 8267754Smsmith#define LINUX_SYS_pipe 22 8367754Smsmith 8467754Smsmith/* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval50 *" */ 8567754Smsmith#define LINUX_SYS_select 23 8667754Smsmith 8767754Smsmith/* syscall: "sched_yield" ret: "int" args: */ 8867754Smsmith#define LINUX_SYS_sched_yield 24 8967754Smsmith 9067754Smsmith/* syscall: "mremap" ret: "void *" args: "void *" "size_t" "size_t" "u_long" */ 9167754Smsmith#define LINUX_SYS_mremap 25 9267754Smsmith 9367754Smsmith/* syscall: "__msync13" ret: "int" args: "void *" "size_t" "int" */ 9467754Smsmith#define LINUX_SYS___msync13 26 9567754Smsmith 9667754Smsmith/* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */ 9767754Smsmith#define LINUX_SYS_mincore 27 9867754Smsmith 9967754Smsmith/* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */ 10067754Smsmith#define LINUX_SYS_madvise 28 10167754Smsmith 10267754Smsmith#ifdef SYSVSHM 10367754Smsmith/* syscall: "shmget" ret: "int" args: "key_t" "size_t" "int" */ 10467754Smsmith#define LINUX_SYS_shmget 29 10567754Smsmith 10667754Smsmith/* syscall: "shmat" ret: "int" args: "int" "void *" "int" */ 10767754Smsmith#define LINUX_SYS_shmat 30 10867754Smsmith 10967754Smsmith/* syscall: "shmctl" ret: "int" args: "int" "int" "struct linux_shmid_ds *" */ 11067754Smsmith#define LINUX_SYS_shmctl 31 11167754Smsmith 11267754Smsmith#else 11367754Smsmith#endif 11467754Smsmith/* syscall: "dup" ret: "int" args: "u_int" */ 11567754Smsmith#define LINUX_SYS_dup 32 11667754Smsmith 11767754Smsmith/* syscall: "dup2" ret: "int" args: "u_int" "u_int" */ 11867754Smsmith#define LINUX_SYS_dup2 33 11967754Smsmith 12067754Smsmith/* syscall: "pause" ret: "int" args: */ 12167754Smsmith#define LINUX_SYS_pause 34 12273561Smsmith 12373561Smsmith/* syscall: "nanosleep" ret: "int" args: "const struct linux_timespec *" "struct linux_timespec *" */ 12467754Smsmith#define LINUX_SYS_nanosleep 35 12577424Smsmith 12667754Smsmith/* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval50 *" */ 12767754Smsmith#define LINUX_SYS_getitimer 36 12867754Smsmith 12967754Smsmith/* syscall: "alarm" ret: "int" args: "unsigned int" */ 13067754Smsmith#define LINUX_SYS_alarm 37 13167754Smsmith 13267754Smsmith/* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval50 *" "struct itimerval50 *" */ 13377424Smsmith#define LINUX_SYS_setitimer 38 13467754Smsmith 13567754Smsmith/* syscall: "getpid" ret: "pid_t" args: */ 13667754Smsmith#define LINUX_SYS_getpid 39 13767754Smsmith 13867754Smsmith/* syscall: "socket" ret: "int" args: "int" "int" "int" */ 13967754Smsmith#define LINUX_SYS_socket 41 14067754Smsmith 14167754Smsmith/* syscall: "connect" ret: "int" args: "int" "const struct osockaddr *" "unsigned int" */ 14267754Smsmith#define LINUX_SYS_connect 42 14367754Smsmith 14467754Smsmith/* syscall: "oaccept" ret: "int" args: "int" "struct osockaddr *" "int *" */ 14567754Smsmith#define LINUX_SYS_oaccept 43 14667754Smsmith 14767754Smsmith/* syscall: "sendto" ret: "ssize_t" args: "int" "void *" "int" "int" "struct osockaddr *" "int" */ 14867754Smsmith#define LINUX_SYS_sendto 44 14967754Smsmith 15067754Smsmith/* syscall: "recvfrom" ret: "ssize_t" args: "int" "void *" "size_t" "int" "struct osockaddr *" "unsigned int *" */ 15167754Smsmith#define LINUX_SYS_recvfrom 45 15267754Smsmith 15367754Smsmith/* syscall: "sendmsg" ret: "int" args: "int" "const struct linux_msghdr *" "int" */ 15467754Smsmith#define LINUX_SYS_sendmsg 46 15567754Smsmith 15677424Smsmith/* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct linux_msghdr *" "int" */ 15767754Smsmith#define LINUX_SYS_recvmsg 47 15877424Smsmith 15967754Smsmith/* syscall: "shutdown" ret: "int" args: "int" "int" */ 16067754Smsmith#define LINUX_SYS_shutdown 48 16167754Smsmith 16267754Smsmith/* syscall: "bind" ret: "int" args: "int" "const struct osockaddr *" "unsigned int" */ 16367754Smsmith#define LINUX_SYS_bind 49 16477424Smsmith 16567754Smsmith/* syscall: "listen" ret: "int" args: "int" "int" */ 16667754Smsmith#define LINUX_SYS_listen 50 16767754Smsmith 16867754Smsmith/* syscall: "getsockname" ret: "int" args: "int" "void *" "int *" */ 16967754Smsmith#define LINUX_SYS_getsockname 51 17067754Smsmith 17167754Smsmith/* syscall: "getpeername" ret: "int" args: "int" "struct sockaddr *" "unsigned int *" */ 17267754Smsmith#define LINUX_SYS_getpeername 52 17367754Smsmith 17467754Smsmith/* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */ 17567754Smsmith#define LINUX_SYS_socketpair 53 17667754Smsmith 17777424Smsmith/* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "void *" "int" */ 17877424Smsmith#define LINUX_SYS_setsockopt 54 17967754Smsmith 18077424Smsmith/* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */ 18167754Smsmith#define LINUX_SYS_getsockopt 55 18267754Smsmith 18367754Smsmith/* syscall: "clone" ret: "int" args: "int" "void *" "void *" "void *" "void *" */ 18467754Smsmith#define LINUX_SYS_clone 56 18567754Smsmith 18667754Smsmith/* syscall: "fork" ret: "int" args: */ 18767754Smsmith#define LINUX_SYS_fork 57 18867754Smsmith 18967754Smsmith/* syscall: "__vfork14" ret: "int" args: */ 19067754Smsmith#define LINUX_SYS___vfork14 58 19167754Smsmith 19267754Smsmith/* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */ 19367754Smsmith#define LINUX_SYS_execve 59 19467754Smsmith 19567754Smsmith/* syscall: "exit" ret: "int" args: "int" */ 19667754Smsmith#define LINUX_SYS_exit 60 19767754Smsmith 19867754Smsmith/* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage50 *" */ 19967754Smsmith#define LINUX_SYS_wait4 61 20067754Smsmith 20167754Smsmith/* syscall: "kill" ret: "int" args: "int" "int" */ 20267754Smsmith#define LINUX_SYS_kill 62 20377424Smsmith 20477424Smsmith/* syscall: "uname" ret: "int" args: "struct linux_utsname *" */ 20567754Smsmith#define LINUX_SYS_uname 63 20667754Smsmith 20767754Smsmith#ifdef SYSVSEM 20867754Smsmith/* syscall: "semget" ret: "int" args: "key_t" "int" "int" */ 20967754Smsmith#define LINUX_SYS_semget 64 21067754Smsmith 21167754Smsmith/* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "size_t" */ 21267754Smsmith#define LINUX_SYS_semop 65 21367754Smsmith 21477424Smsmith/* syscall: "semctl" ret: "int" args: "int" "int" "int" "union linux_semun" */ 21567754Smsmith#define LINUX_SYS_semctl 66 21667754Smsmith 21767754Smsmith#else 21867754Smsmith#endif 21967754Smsmith#ifdef SYSVSHM 22067754Smsmith/* syscall: "shmdt" ret: "int" args: "const void *" */ 22167754Smsmith#define LINUX_SYS_shmdt 67 22267754Smsmith 22367754Smsmith#else 22467754Smsmith#endif 22567754Smsmith#ifdef SYSVMSG 22667754Smsmith/* syscall: "msgget" ret: "int" args: "key_t" "int" */ 22767754Smsmith#define LINUX_SYS_msgget 68 22867754Smsmith 22967754Smsmith/* syscall: "msgsnd" ret: "int" args: "int" "void *" "size_t" "int" */ 23067754Smsmith#define LINUX_SYS_msgsnd 69 23167754Smsmith 23277424Smsmith/* syscall: "msgrcv" ret: "ssize_t" args: "int" "void *" "size_t" "long" "int" */ 23377424Smsmith#define LINUX_SYS_msgrcv 70 23467754Smsmith 23567754Smsmith/* syscall: "msgctl" ret: "int" args: "int" "int" "struct linux_msqid_ds *" */ 23667754Smsmith#define LINUX_SYS_msgctl 71 23767754Smsmith 23867754Smsmith#else 23967754Smsmith#endif 24067754Smsmith/* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */ 24167754Smsmith#define LINUX_SYS_fcntl 72 24267754Smsmith 24367754Smsmith/* syscall: "flock" ret: "int" args: "int" "int" */ 24467754Smsmith#define LINUX_SYS_flock 73 24567754Smsmith 24667754Smsmith/* syscall: "fsync" ret: "int" args: "int" */ 24767754Smsmith#define LINUX_SYS_fsync 74 24867754Smsmith 24967754Smsmith/* syscall: "fdatasync" ret: "int" args: "int" */ 25067754Smsmith#define LINUX_SYS_fdatasync 75 25167754Smsmith 25267754Smsmith/* syscall: "truncate64" ret: "int" args: "const char *" "off_t" */ 25367754Smsmith#define LINUX_SYS_truncate64 76 25467754Smsmith 25567754Smsmith/* syscall: "ftruncate64" ret: "int" args: "unsigned int" "off_t" */ 25667754Smsmith#define LINUX_SYS_ftruncate64 77 25767754Smsmith 25867754Smsmith/* syscall: "getdents" ret: "int" args: "int" "struct linux_dirent *" "unsigned int" */ 25967754Smsmith#define LINUX_SYS_getdents 78 26067754Smsmith 26173561Smsmith/* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */ 26267754Smsmith#define LINUX_SYS___getcwd 79 26367754Smsmith 26467754Smsmith/* syscall: "chdir" ret: "int" args: "const char *" */ 26567754Smsmith#define LINUX_SYS_chdir 80 26667754Smsmith 26767754Smsmith/* syscall: "fchdir" ret: "int" args: "int" */ 26867754Smsmith#define LINUX_SYS_fchdir 81 26967754Smsmith 27067754Smsmith/* syscall: "__posix_rename" ret: "int" args: "const char *" "const char *" */ 27167754Smsmith#define LINUX_SYS___posix_rename 82 27277424Smsmith 27377424Smsmith/* syscall: "mkdir" ret: "int" args: "const char *" "int" */ 27467754Smsmith#define LINUX_SYS_mkdir 83 27577424Smsmith 27677424Smsmith/* syscall: "rmdir" ret: "int" args: "const char *" */ 27777424Smsmith#define LINUX_SYS_rmdir 84 27877424Smsmith 27967754Smsmith/* syscall: "creat" ret: "int" args: "const char *" "int" */ 28077424Smsmith#define LINUX_SYS_creat 85 28177424Smsmith 28267754Smsmith/* syscall: "link" ret: "int" args: "const char *" "const char *" */ 28367754Smsmith#define LINUX_SYS_link 86 28467754Smsmith 28567754Smsmith/* syscall: "unlink" ret: "int" args: "const char *" */ 28667754Smsmith#define LINUX_SYS_unlink 87 28767754Smsmith 28867754Smsmith/* syscall: "symlink" ret: "int" args: "const char *" "const char *" */ 28967754Smsmith#define LINUX_SYS_symlink 88 29067754Smsmith 29167754Smsmith/* syscall: "readlink" ret: "int" args: "const char *" "char *" "int" */ 29267754Smsmith#define LINUX_SYS_readlink 89 29367754Smsmith 29467754Smsmith/* syscall: "chmod" ret: "int" args: "const char *" "int" */ 29567754Smsmith#define LINUX_SYS_chmod 90 29667754Smsmith 29767754Smsmith/* syscall: "fchmod" ret: "int" args: "int" "int" */ 29867754Smsmith#define LINUX_SYS_fchmod 91 29967754Smsmith 30067754Smsmith/* syscall: "__posix_chown" ret: "int" args: "const char *" "uid_t" "gid_t" */ 30167754Smsmith#define LINUX_SYS___posix_chown 92 30269450Smsmith 30369450Smsmith/* syscall: "__posix_fchown" ret: "int" args: "int" "uid_t" "gid_t" */ 30469450Smsmith#define LINUX_SYS___posix_fchown 93 30567754Smsmith 30667754Smsmith/* syscall: "__posix_lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */ 30767754Smsmith#define LINUX_SYS___posix_lchown 94 30867754Smsmith 30967754Smsmith/* syscall: "umask" ret: "int" args: "int" */ 31067754Smsmith#define LINUX_SYS_umask 95 31167754Smsmith 31267754Smsmith/* syscall: "gettimeofday" ret: "int" args: "struct timeval50 *" "struct timezone *" */ 31367754Smsmith#define LINUX_SYS_gettimeofday 96 31467754Smsmith 31567754Smsmith/* syscall: "getrlimit" ret: "int" args: "int" "struct rlimit *" */ 31669450Smsmith#define LINUX_SYS_getrlimit 97 31767754Smsmith 31867754Smsmith/* syscall: "getrusage" ret: "int" args: "int" "struct rusage50 *" */ 31967754Smsmith#define LINUX_SYS_getrusage 98 32073561Smsmith 32173561Smsmith/* syscall: "sysinfo" ret: "int" args: "struct linux_sysinfo *" */ 32267754Smsmith#define LINUX_SYS_sysinfo 99 32373561Smsmith 32467754Smsmith/* syscall: "times" ret: "int" args: "struct times *" */ 32567754Smsmith#define LINUX_SYS_times 100 32667754Smsmith 32767754Smsmith/* syscall: "ptrace" ret: "int" args: "long" "long" "long" "long" */ 32867754Smsmith#define LINUX_SYS_ptrace 101 32967754Smsmith 33067754Smsmith/* syscall: "getuid" ret: "uid_t" args: */ 33167754Smsmith#define LINUX_SYS_getuid 102 33267754Smsmith 33367754Smsmith/* syscall: "getgid" ret: "gid_t" args: */ 33467754Smsmith#define LINUX_SYS_getgid 104 33567754Smsmith 33667754Smsmith/* syscall: "setuid" ret: "void" args: "uid_t" */ 33767754Smsmith#define LINUX_SYS_setuid 105 33873561Smsmith 33967754Smsmith/* syscall: "setgid" ret: "void" args: "gid_t" */ 34071867Smsmith#define LINUX_SYS_setgid 106 34167754Smsmith 34273561Smsmith/* syscall: "geteuid" ret: "uid_t" args: */ 34367754Smsmith#define LINUX_SYS_geteuid 107 34467754Smsmith 34567754Smsmith/* syscall: "getegid" ret: "gid_t" args: */ 34667754Smsmith#define LINUX_SYS_getegid 108 34777424Smsmith 34877424Smsmith/* syscall: "setpgid" ret: "int" args: "int" "int" */ 34967754Smsmith#define LINUX_SYS_setpgid 109 35067754Smsmith 35167754Smsmith/* syscall: "getppid" ret: "pid_t" args: */ 35267754Smsmith#define LINUX_SYS_getppid 110 35373561Smsmith 35467754Smsmith/* syscall: "getpgrp" ret: "int" args: */ 35567754Smsmith#define LINUX_SYS_getpgrp 111 35667754Smsmith 35771867Smsmith/* syscall: "setsid" ret: "int" args: */ 35867754Smsmith#define LINUX_SYS_setsid 112 35977424Smsmith 36067754Smsmith/* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */ 36167754Smsmith#define LINUX_SYS_setreuid 113 36267754Smsmith 36367754Smsmith/* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */ 36477424Smsmith#define LINUX_SYS_setregid 114 36577424Smsmith 36667754Smsmith/* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */ 36767754Smsmith#define LINUX_SYS_getgroups 115 36867754Smsmith 36967754Smsmith/* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */ 37073561Smsmith#define LINUX_SYS_setgroups 116 37167754Smsmith 37267754Smsmith/* syscall: "setresuid" ret: "int" args: "uid_t" "uid_t" "uid_t" */ 37367754Smsmith#define LINUX_SYS_setresuid 117 37473561Smsmith 37567754Smsmith/* syscall: "getresuid" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */ 37673561Smsmith#define LINUX_SYS_getresuid 118 37777424Smsmith 37877424Smsmith/* syscall: "setresgid" ret: "int" args: "gid_t" "gid_t" "gid_t" */ 37973561Smsmith#define LINUX_SYS_setresgid 119 38077424Smsmith 38177424Smsmith/* syscall: "getresgid" ret: "int" args: "gid_t *" "gid_t *" "gid_t *" */ 38273561Smsmith#define LINUX_SYS_getresgid 120 38373561Smsmith 38473561Smsmith/* syscall: "getpgid" ret: "pid_t" args: "pid_t" */ 38573561Smsmith#define LINUX_SYS_getpgid 121 38673561Smsmith 38773561Smsmith/* syscall: "setfsuid" ret: "int" args: "uid_t" */ 38873561Smsmith#define LINUX_SYS_setfsuid 122 38973561Smsmith 39073561Smsmith/* syscall: "setfsgid" ret: "int" args: "gid_t" */ 39173561Smsmith#define LINUX_SYS_setfsgid 123 39273561Smsmith 39373561Smsmith/* syscall: "getsid" ret: "pid_t" args: "pid_t" */ 39473561Smsmith#define LINUX_SYS_getsid 124 39573561Smsmith 39673561Smsmith/* syscall: "rt_sigpending" ret: "int" args: "linux_sigset_t *" "size_t" */ 39773561Smsmith#define LINUX_SYS_rt_sigpending 127 39873561Smsmith 39967754Smsmith/* syscall: "rt_queueinfo" ret: "int" args: "int" "int" "linux_siginfo_t *" */ 40067754Smsmith#define LINUX_SYS_rt_queueinfo 129 40167754Smsmith 40267754Smsmith/* syscall: "rt_sigsuspend" ret: "int" args: "linux_sigset_t *" "size_t" */ 40367754Smsmith#define LINUX_SYS_rt_sigsuspend 130 40467754Smsmith 40573561Smsmith/* syscall: "sigaltstack" ret: "int" args: "const struct linux_sigaltstack *" "struct linux_sigaltstack *" */ 40667754Smsmith#define LINUX_SYS_sigaltstack 131 40773561Smsmith 40873561Smsmith/* syscall: "utime" ret: "int" args: "const char *" "struct linux_utimbuf *" */ 40967754Smsmith#define LINUX_SYS_utime 132 41067754Smsmith 41167754Smsmith/* syscall: "mknod" ret: "int" args: "const char *" "int" "int" */ 41267754Smsmith#define LINUX_SYS_mknod 133 41367754Smsmith 41473561Smsmith#ifdef EXEC_AOUT 41573561Smsmith/* syscall: "uselib" ret: "int" args: "const char *" */ 41673561Smsmith#define LINUX_SYS_uselib 134 41773561Smsmith 41873561Smsmith#else 41973561Smsmith#endif 42067754Smsmith/* syscall: "personality" ret: "int" args: "unsigned long" */ 42173561Smsmith#define LINUX_SYS_personality 135 42273561Smsmith 42377424Smsmith/* syscall: "statfs" ret: "int" args: "const char *" "struct linux_statfs *" */ 42477424Smsmith#define LINUX_SYS_statfs 137 42577424Smsmith 42673561Smsmith/* syscall: "fstatfs" ret: "int" args: "int" "struct linux_statfs *" */ 42773561Smsmith#define LINUX_SYS_fstatfs 138 42867754Smsmith 42967754Smsmith/* syscall: "getpriority" ret: "int" args: "int" "int" */ 43067754Smsmith#define LINUX_SYS_getpriority 140 43167754Smsmith 43269450Smsmith/* syscall: "setpriority" ret: "int" args: "int" "int" "int" */ 43367754Smsmith#define LINUX_SYS_setpriority 141 43467754Smsmith 43573561Smsmith/* syscall: "sched_setparam" ret: "int" args: "pid_t" "const struct linux_sched_param *" */ 43667754Smsmith#define LINUX_SYS_sched_setparam 142 43767754Smsmith 43867754Smsmith/* syscall: "sched_getparam" ret: "int" args: "pid_t" "struct linux_sched_param *" */ 43971867Smsmith#define LINUX_SYS_sched_getparam 143 44067754Smsmith 44177424Smsmith/* syscall: "sched_setscheduler" ret: "int" args: "pid_t" "int" "const struct linux_sched_param *" */ 44267754Smsmith#define LINUX_SYS_sched_setscheduler 144 44367754Smsmith 44467754Smsmith/* syscall: "sched_getscheduler" ret: "int" args: "pid_t" */ 44567754Smsmith#define LINUX_SYS_sched_getscheduler 145 44677424Smsmith 44777424Smsmith/* syscall: "sched_get_priority_max" ret: "int" args: "int" */ 44867754Smsmith#define LINUX_SYS_sched_get_priority_max 146 44967754Smsmith 45067754Smsmith/* syscall: "sched_get_priority_min" ret: "int" args: "int" */ 45167754Smsmith#define LINUX_SYS_sched_get_priority_min 147 45267754Smsmith 45367754Smsmith/* syscall: "mlock" ret: "int" args: "void *" "size_t" */ 45467754Smsmith#define LINUX_SYS_mlock 149 45567754Smsmith 45667754Smsmith/* syscall: "munlock" ret: "int" args: "void *" "size_t" */ 45777424Smsmith#define LINUX_SYS_munlock 150 45867754Smsmith 45967754Smsmith/* syscall: "mlockall" ret: "int" args: "int" */ 46067754Smsmith#define LINUX_SYS_mlockall 151 46167754Smsmith 46267754Smsmith/* syscall: "munlockall" ret: "int" args: */ 46367754Smsmith#define LINUX_SYS_munlockall 152 46467754Smsmith 46567754Smsmith/* syscall: "modify_ldt" ret: "int" args: "int" "void *" "size_t" */ 46667754Smsmith#define LINUX_SYS_modify_ldt 154 46767754Smsmith 46867754Smsmith/* syscall: "__sysctl" ret: "int" args: "struct linux___sysctl *" */ 46967754Smsmith#define LINUX_SYS___sysctl 156 47067754Smsmith 47167754Smsmith/* syscall: "arch_prctl" ret: "int" args: "int" "unsigned long" */ 47267754Smsmith#define LINUX_SYS_arch_prctl 158 47367754Smsmith 47467754Smsmith/* syscall: "setrlimit" ret: "int" args: "u_int" "struct rlimit *" */ 47567754Smsmith#define LINUX_SYS_setrlimit 160 47667754Smsmith 47767754Smsmith/* syscall: "chroot" ret: "int" args: "char *" */ 47867754Smsmith#define LINUX_SYS_chroot 161 47977424Smsmith 48067754Smsmith/* syscall: "sync" ret: "int" args: */ 48167754Smsmith#define LINUX_SYS_sync 162 48267754Smsmith 48367754Smsmith/* syscall: "acct" ret: "int" args: "char *" */ 48467754Smsmith#define LINUX_SYS_acct 163 48567754Smsmith 48667754Smsmith/* syscall: "settimeofday" ret: "int" args: "struct timeval50 *" "struct timezone *" */ 48767754Smsmith#define LINUX_SYS_settimeofday 164 48867754Smsmith 48967754Smsmith/* syscall: "swapon" ret: "int" args: "char *" */ 49067754Smsmith#define LINUX_SYS_swapon 167 49167754Smsmith 49267754Smsmith/* syscall: "swapoff" ret: "int" args: "const char *" */ 49367754Smsmith#define LINUX_SYS_swapoff 168 49467754Smsmith 49567754Smsmith/* syscall: "reboot" ret: "int" args: "int" "int" "int" "void *" */ 49677424Smsmith#define LINUX_SYS_reboot 169 49767754Smsmith 49867754Smsmith/* syscall: "sethostname" ret: "int" args: "char *" "u_int" */ 49967754Smsmith#define LINUX_SYS_sethostname 170 50067754Smsmith 50167754Smsmith/* syscall: "setdomainname" ret: "int" args: "char *" "int" */ 50267754Smsmith#define LINUX_SYS_setdomainname 171 50367754Smsmith 50467754Smsmith/* syscall: "iopl" ret: "int" args: "int" */ 50567754Smsmith#define LINUX_SYS_iopl 172 50667754Smsmith 50777424Smsmith/* syscall: "ioperm" ret: "int" args: "unsigned int" "unsigned int" "int" */ 50867754Smsmith#define LINUX_SYS_ioperm 173 50967754Smsmith 51067754Smsmith/* syscall: "gettid" ret: "pid_t" args: */ 51167754Smsmith#define LINUX_SYS_gettid 186 51267754Smsmith 51367754Smsmith/* syscall: "setxattr" ret: "int" args: "char *" "char *" "void *" "size_t" "int" */ 51467754Smsmith#define LINUX_SYS_setxattr 188 51567754Smsmith 51677424Smsmith/* syscall: "lsetxattr" ret: "int" args: "char *" "char *" "void *" "size_t" "int" */ 51767754Smsmith#define LINUX_SYS_lsetxattr 189 51877424Smsmith 51977424Smsmith/* syscall: "fsetxattr" ret: "int" args: "int" "char *" "void *" "size_t" "int" */ 52067754Smsmith#define LINUX_SYS_fsetxattr 190 52167754Smsmith 52267754Smsmith/* syscall: "getxattr" ret: "ssize_t" args: "char *" "char *" "void *" "size_t" */ 52367754Smsmith#define LINUX_SYS_getxattr 191 52467754Smsmith 52567754Smsmith/* syscall: "lgetxattr" ret: "ssize_t" args: "char *" "char *" "void *" "size_t" */ 52667754Smsmith#define LINUX_SYS_lgetxattr 192 52767754Smsmith 52867754Smsmith/* syscall: "fgetxattr" ret: "ssize_t" args: "int" "char *" "void *" "size_t" */ 52967754Smsmith#define LINUX_SYS_fgetxattr 193 53067754Smsmith 53167754Smsmith/* syscall: "listxattr" ret: "ssize_t" args: "char *" "char *" "size_t" */ 53267754Smsmith#define LINUX_SYS_listxattr 194 53367754Smsmith 53467754Smsmith/* syscall: "llistxattr" ret: "ssize_t" args: "char *" "char *" "size_t" */ 53567754Smsmith#define LINUX_SYS_llistxattr 195 53667754Smsmith 53767754Smsmith/* syscall: "flistxattr" ret: "ssize_t" args: "int" "char *" "size_t" */ 53867754Smsmith#define LINUX_SYS_flistxattr 196 53967754Smsmith 54067754Smsmith/* syscall: "removexattr" ret: "int" args: "char *" "char *" */ 54177424Smsmith#define LINUX_SYS_removexattr 197 54277424Smsmith 54367754Smsmith/* syscall: "lremovexattr" ret: "int" args: "char *" "char *" */ 54467754Smsmith#define LINUX_SYS_lremovexattr 198 54567754Smsmith 54667754Smsmith/* syscall: "fremovexattr" ret: "int" args: "int" "char *" */ 54767754Smsmith#define LINUX_SYS_fremovexattr 199 54867754Smsmith 54967754Smsmith/* syscall: "tkill" ret: "int" args: "int" "int" */ 55067754Smsmith#define LINUX_SYS_tkill 200 55167754Smsmith 55277424Smsmith/* syscall: "time" ret: "int" args: "linux_time_t *" */ 55367754Smsmith#define LINUX_SYS_time 201 55477424Smsmith 55567754Smsmith/* syscall: "futex" ret: "int" args: "int *" "int" "int" "const struct linux_timespec *" "int *" "int" */ 55667754Smsmith#define LINUX_SYS_futex 202 55767754Smsmith 55867754Smsmith/* syscall: "sched_setaffinity" ret: "int" args: "pid_t" "unsigned int" "unsigned long *" */ 55967754Smsmith#define LINUX_SYS_sched_setaffinity 203 56067754Smsmith 56167754Smsmith/* syscall: "sched_getaffinity" ret: "int" args: "pid_t" "unsigned int" "unsigned long *" */ 56267754Smsmith#define LINUX_SYS_sched_getaffinity 204 56367754Smsmith 564/* syscall: "getdents64" ret: "int" args: "int" "struct linux_dirent64 *" "unsigned int" */ 565#define LINUX_SYS_getdents64 217 566 567/* syscall: "set_tid_address" ret: "int" args: "int *" */ 568#define LINUX_SYS_set_tid_address 218 569 570/* syscall: "fadvise64" ret: "int" args: "int" "linux_off_t" "size_t" "int" */ 571#define LINUX_SYS_fadvise64 221 572 573/* syscall: "clock_settime" ret: "int" args: "clockid_t" "struct linux_timespec *" */ 574#define LINUX_SYS_clock_settime 227 575 576/* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct linux_timespec *" */ 577#define LINUX_SYS_clock_gettime 228 578 579/* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct linux_timespec *" */ 580#define LINUX_SYS_clock_getres 229 581 582/* syscall: "clock_nanosleep" ret: "int" args: "clockid_t" "int" "struct linux_timespec *" "struct linux_timespec *" */ 583#define LINUX_SYS_clock_nanosleep 230 584 585/* syscall: "exit_group" ret: "int" args: "int" */ 586#define LINUX_SYS_exit_group 231 587 588/* syscall: "tgkill" ret: "int" args: "int" "int" "int" */ 589#define LINUX_SYS_tgkill 234 590 591/* syscall: "set_robust_list" ret: "int" args: "struct linux_robust_list_head *" "size_t" */ 592#define LINUX_SYS_set_robust_list 273 593 594/* syscall: "get_robust_list" ret: "int" args: "int" "struct linux_robust_list_head **" "size_t *" */ 595#define LINUX_SYS_get_robust_list 274 596 597/* syscall: "dup3" ret: "int" args: "int" "int" "int" */ 598#define LINUX_SYS_dup3 292 599 600/* syscall: "pipe2" ret: "int" args: "int *" "int" */ 601#define LINUX_SYS_pipe2 293 602 603/* syscall: "nosys" ret: "int" args: */ 604#define LINUX_SYS_nosys 300 605 606#define LINUX_SYS_MAXSYSCALL 301 607#define LINUX_SYS_NSYSENT 512 608#endif /* _LINUX_SYS_SYSCALL_H_ */ 609