├── 32.txt ├── 64.txt ├── README.md └── syscall.py /32.txt: -------------------------------------------------------------------------------- 1 | 0 restart_syscall man/ cs/ 0x00 - - - - - - 2 | 1 exit man/ cs/ 0x01 int error_code - - - - - 3 | 2 fork man/ cs/ 0x02 - - - - - - 4 | 3 read man/ cs/ 0x03 unsigned int fd char *buf size_t count - - - 5 | 4 write man/ cs/ 0x04 unsigned int fd const char *buf size_t count - - - 6 | 5 open man/ cs/ 0x05 const char *filename int flags umode_t mode - - - 7 | 6 close man/ cs/ 0x06 unsigned int fd - - - - - 8 | 7 waitpid man/ cs/ 0x07 pid_t pid int *stat_addr int options - - - 9 | 8 creat man/ cs/ 0x08 const char *pathname umode_t mode - - - - 10 | 9 link man/ cs/ 0x09 const char *oldname const char *newname - - - - 11 | 10 unlink man/ cs/ 0x0a const char *pathname - - - - - 12 | 11 execve man/ cs/ 0x0b const char *filename const char *const *argv const char *const *envp - - - 13 | 12 chdir man/ cs/ 0x0c const char *filename - - - - - 14 | 13 time man/ cs/ 0x0d time_t *tloc - - - - - 15 | 14 mknod man/ cs/ 0x0e const char *filename umode_t mode unsigned dev - - - 16 | 15 chmod man/ cs/ 0x0f const char *filename umode_t mode - - - - 17 | 16 lchown man/ cs/ 0x10 const char *filename uid_t user gid_t group - - - 18 | 17 break man/ cs/ 0x11 ? ? ? ? ? ? 19 | 18 oldstat man/ cs/ 0x12 ? ? ? ? ? ? 20 | 19 lseek man/ cs/ 0x13 unsigned int fd off_t offset unsigned int whence - - - 21 | 20 getpid man/ cs/ 0x14 - - - - - - 22 | 21 mount man/ cs/ 0x15 char *dev_name char *dir_name char *type unsigned long flags void *data - 23 | 22 umount man/ cs/ 0x16 char *name int flags - - - - 24 | 23 setuid man/ cs/ 0x17 uid_t uid - - - - - 25 | 24 getuid man/ cs/ 0x18 - - - - - - 26 | 25 stime man/ cs/ 0x19 time_t *tptr - - - - - 27 | 26 ptrace man/ cs/ 0x1a long request long pid unsigned long addr unsigned long data - - 28 | 27 alarm man/ cs/ 0x1b unsigned int seconds - - - - - 29 | 28 oldfstat man/ cs/ 0x1c ? ? ? ? ? ? 30 | 29 pause man/ cs/ 0x1d - - - - - - 31 | 30 utime man/ cs/ 0x1e char *filename struct utimbuf *times - - - - 32 | 31 stty man/ cs/ 0x1f ? ? ? ? ? ? 33 | 32 gtty man/ cs/ 0x20 ? ? ? ? ? ? 34 | 33 access man/ cs/ 0x21 const char *filename int mode - - - - 35 | 34 nice man/ cs/ 0x22 int increment - - - - - 36 | 35 ftime man/ cs/ 0x23 ? ? ? ? ? ? 37 | 36 sync man/ cs/ 0x24 - - - - - - 38 | 37 kill man/ cs/ 0x25 pid_t pid int sig - - - - 39 | 38 rename man/ cs/ 0x26 const char *oldname const char *newname - - - - 40 | 39 mkdir man/ cs/ 0x27 const char *pathname umode_t mode - - - - 41 | 40 rmdir man/ cs/ 0x28 const char *pathname - - - - - 42 | 41 dup man/ cs/ 0x29 unsigned int fildes - - - - - 43 | 42 pipe man/ cs/ 0x2a int *fildes - - - - - 44 | 43 times man/ cs/ 0x2b struct tms *tbuf - - - - - 45 | 44 prof man/ cs/ 0x2c ? ? ? ? ? ? 46 | 45 brk man/ cs/ 0x2d unsigned long brk - - - - - 47 | 46 setgid man/ cs/ 0x2e gid_t gid - - - - - 48 | 47 getgid man/ cs/ 0x2f - - - - - - 49 | 48 signal man/ cs/ 0x30 int sig __sighandler_t handler - - - - 50 | 49 geteuid man/ cs/ 0x31 - - - - - - 51 | 50 getegid man/ cs/ 0x32 - - - - - - 52 | 51 acct man/ cs/ 0x33 const char *name - - - - - 53 | 52 umount2 man/ cs/ 0x34 ? ? ? ? ? ? 54 | 53 lock man/ cs/ 0x35 ? ? ? ? ? ? 55 | 54 ioctl man/ cs/ 0x36 unsigned int fd unsigned int cmd unsigned long arg - - - 56 | 55 fcntl man/ cs/ 0x37 unsigned int fd unsigned int cmd unsigned long arg - - - 57 | 56 mpx man/ cs/ 0x38 ? ? ? ? ? ? 58 | 57 setpgid man/ cs/ 0x39 pid_t pid pid_t pgid - - - - 59 | 58 ulimit man/ cs/ 0x3a ? ? ? ? ? ? 60 | 59 oldolduname man/ cs/ 0x3b ? ? ? ? ? ? 61 | 60 umask man/ cs/ 0x3c int mask - - - - - 62 | 61 chroot man/ cs/ 0x3d const char *filename - - - - - 63 | 62 ustat man/ cs/ 0x3e unsigned dev struct ustat *ubuf - - - - 64 | 63 dup2 man/ cs/ 0x3f unsigned int oldfd unsigned int newfd - - - - 65 | 64 getppid man/ cs/ 0x40 - - - - - - 66 | 65 getpgrp man/ cs/ 0x41 - - - - - - 67 | 66 setsid man/ cs/ 0x42 - - - - - - 68 | 67 sigaction man/ cs/ 0x43 int const struct old_sigaction * struct old_sigaction * - - - 69 | 68 sgetmask man/ cs/ 0x44 - - - - - - 70 | 69 ssetmask man/ cs/ 0x45 int newmask - - - - - 71 | 70 setreuid man/ cs/ 0x46 uid_t ruid uid_t euid - - - - 72 | 71 setregid man/ cs/ 0x47 gid_t rgid gid_t egid - - - - 73 | 72 sigsuspend man/ cs/ 0x48 int unused1 int unused2 old_sigset_t mask - - - 74 | 73 sigpending man/ cs/ 0x49 old_sigset_t *uset - - - - - 75 | 74 sethostname man/ cs/ 0x4a char *name int len - - - - 76 | 75 setrlimit man/ cs/ 0x4b unsigned int resource struct rlimit *rlim - - - - 77 | 76 getrlimit man/ cs/ 0x4c unsigned int resource struct rlimit *rlim - - - - 78 | 77 getrusage man/ cs/ 0x4d int who struct rusage *ru - - - - 79 | 78 gettimeofday man/ cs/ 0x4e struct timeval *tv struct timezone *tz - - - - 80 | 79 settimeofday man/ cs/ 0x4f struct timeval *tv struct timezone *tz - - - - 81 | 80 getgroups man/ cs/ 0x50 int gidsetsize gid_t *grouplist - - - - 82 | 81 setgroups man/ cs/ 0x51 int gidsetsize gid_t *grouplist - - - - 83 | 82 select man/ cs/ 0x52 int n fd_set *inp fd_set *outp fd_set *exp struct timeval *tvp - 84 | 83 symlink man/ cs/ 0x53 const char *old const char *new - - - - 85 | 84 oldlstat man/ cs/ 0x54 ? ? ? ? ? ? 86 | 85 readlink man/ cs/ 0x55 const char *path char *buf int bufsiz - - - 87 | 86 uselib man/ cs/ 0x56 const char *library - - - - - 88 | 87 swapon man/ cs/ 0x57 const char *specialfile int swap_flags - - - - 89 | 88 reboot man/ cs/ 0x58 int magic1 int magic2 unsigned int cmd void *arg - - 90 | 89 readdir man/ cs/ 0x59 ? ? ? ? ? ? 91 | 90 mmap man/ cs/ 0x5a ? ? ? ? ? ? 92 | 91 munmap man/ cs/ 0x5b unsigned long addr size_t len - - - - 93 | 92 truncate man/ cs/ 0x5c const char *path long length - - - - 94 | 93 ftruncate man/ cs/ 0x5d unsigned int fd unsigned long length - - - - 95 | 94 fchmod man/ cs/ 0x5e unsigned int fd umode_t mode - - - - 96 | 95 fchown man/ cs/ 0x5f unsigned int fd uid_t user gid_t group - - - 97 | 96 getpriority man/ cs/ 0x60 int which int who - - - - 98 | 97 setpriority man/ cs/ 0x61 int which int who int niceval - - - 99 | 98 profil man/ cs/ 0x62 ? ? ? ? ? ? 100 | 99 statfs man/ cs/ 0x63 const char * path struct statfs *buf - - - - 101 | 100 fstatfs man/ cs/ 0x64 unsigned int fd struct statfs *buf - - - - 102 | 101 ioperm man/ cs/ 0x65 unsigned long from unsigned long num int on - - - 103 | 102 socketcall man/ cs/ 0x66 int call unsigned long *args - - - - 104 | 103 syslog man/ cs/ 0x67 int type char *buf int len - - - 105 | 104 setitimer man/ cs/ 0x68 int which struct itimerval *value struct itimerval *ovalue - - - 106 | 105 getitimer man/ cs/ 0x69 int which struct itimerval *value - - - - 107 | 106 stat man/ cs/ 0x6a const char *filename struct __old_kernel_stat *statbuf - - - - 108 | 107 lstat man/ cs/ 0x6b const char *filename struct __old_kernel_stat *statbuf - - - - 109 | 108 fstat man/ cs/ 0x6c unsigned int fd struct __old_kernel_stat *statbuf - - - - 110 | 109 olduname man/ cs/ 0x6d struct oldold_utsname * - - - - - 111 | 110 iopl man/ cs/ 0x6e ? ? ? ? ? ? 112 | 111 vhangup man/ cs/ 0x6f - - - - - - 113 | 112 idle man/ cs/ 0x70 ? ? ? ? ? ? 114 | 113 vm86old man/ cs/ 0x71 ? ? ? ? ? ? 115 | 114 wait4 man/ cs/ 0x72 pid_t pid int *stat_addr int options struct rusage *ru - - 116 | 115 swapoff man/ cs/ 0x73 const char *specialfile - - - - - 117 | 116 sysinfo man/ cs/ 0x74 struct sysinfo *info - - - - - 118 | 117 ipc man/ cs/ 0x75 unsigned int call int first unsigned long second unsigned long third void *ptr long fifth 119 | 118 fsync man/ cs/ 0x76 unsigned int fd - - - - - 120 | 119 sigreturn man/ cs/ 0x77 ? ? ? ? ? ? 121 | 120 clone man/ cs/ 0x78 unsigned long unsigned long int * int * unsigned long - 122 | 121 setdomainname man/ cs/ 0x79 char *name int len - - - - 123 | 122 uname man/ cs/ 0x7a struct old_utsname * - - - - - 124 | 123 modify_ldt man/ cs/ 0x7b ? ? ? ? ? ? 125 | 124 adjtimex man/ cs/ 0x7c struct timex *txc_p - - - - - 126 | 125 mprotect man/ cs/ 0x7d unsigned long start size_t len unsigned long prot - - - 127 | 126 sigprocmask man/ cs/ 0x7e int how old_sigset_t *set old_sigset_t *oset - - - 128 | 127 create_module man/ cs/ 0x7f ? ? ? ? ? ? 129 | 128 init_module man/ cs/ 0x80 void *umod unsigned long len const char *uargs - - - 130 | 129 delete_module man/ cs/ 0x81 const char *name_user unsigned int flags - - - - 131 | 130 get_kernel_syms man/ cs/ 0x82 ? ? ? ? ? ? 132 | 131 quotactl man/ cs/ 0x83 unsigned int cmd const char *special qid_t id void *addr - - 133 | 132 getpgid man/ cs/ 0x84 pid_t pid - - - - - 134 | 133 fchdir man/ cs/ 0x85 unsigned int fd - - - - - 135 | 134 bdflush man/ cs/ 0x86 int func long data - - - - 136 | 135 sysfs man/ cs/ 0x87 int option unsigned long arg1 unsigned long arg2 - - - 137 | 136 personality man/ cs/ 0x88 unsigned int personality - - - - - 138 | 137 afs_syscall man/ cs/ 0x89 ? ? ? ? ? ? 139 | 138 setfsuid man/ cs/ 0x8a uid_t uid - - - - - 140 | 139 setfsgid man/ cs/ 0x8b gid_t gid - - - - - 141 | 140 _llseek man/ cs/ 0x8c ? ? ? ? ? ? 142 | 141 getdents man/ cs/ 0x8d unsigned int fd struct linux_dirent *dirent unsigned int count - - - 143 | 142 _newselect man/ cs/ 0x8e ? ? ? ? ? ? 144 | 143 flock man/ cs/ 0x8f unsigned int fd unsigned int cmd - - - - 145 | 144 msync man/ cs/ 0x90 unsigned long start size_t len int flags - - - 146 | 145 readv man/ cs/ 0x91 unsigned long fd const struct iovec *vec unsigned long vlen - - - 147 | 146 writev man/ cs/ 0x92 unsigned long fd const struct iovec *vec unsigned long vlen - - - 148 | 147 getsid man/ cs/ 0x93 pid_t pid - - - - - 149 | 148 fdatasync man/ cs/ 0x94 unsigned int fd - - - - - 150 | 149 _sysctl man/ cs/ 0x95 ? ? ? ? ? ? 151 | 150 mlock man/ cs/ 0x96 unsigned long start size_t len - - - - 152 | 151 munlock man/ cs/ 0x97 unsigned long start size_t len - - - - 153 | 152 mlockall man/ cs/ 0x98 int flags - - - - - 154 | 153 munlockall man/ cs/ 0x99 - - - - - - 155 | 154 sched_setparam man/ cs/ 0x9a pid_t pid struct sched_param *param - - - - 156 | 155 sched_getparam man/ cs/ 0x9b pid_t pid struct sched_param *param - - - - 157 | 156 sched_setscheduler man/ cs/ 0x9c pid_t pid int policy struct sched_param *param - - - 158 | 157 sched_getscheduler man/ cs/ 0x9d pid_t pid - - - - - 159 | 158 sched_yield man/ cs/ 0x9e - - - - - - 160 | 159 sched_get_priority_max man/ cs/ 0x9f int policy - - - - - 161 | 160 sched_get_priority_min man/ cs/ 0xa0 int policy - - - - - 162 | 161 sched_rr_get_interval man/ cs/ 0xa1 pid_t pid struct timespec *interval - - - - 163 | 162 nanosleep man/ cs/ 0xa2 struct __kernel_timespec *rqtp struct __kernel_timespec *rmtp - - - - 164 | 163 mremap man/ cs/ 0xa3 unsigned long addr unsigned long old_len unsigned long new_len unsigned long flags unsigned long new_addr - 165 | 164 setresuid man/ cs/ 0xa4 uid_t ruid uid_t euid uid_t suid - - - 166 | 165 getresuid man/ cs/ 0xa5 uid_t *ruid uid_t *euid uid_t *suid - - - 167 | 166 vm86 man/ cs/ 0xa6 ? ? ? ? ? ? 168 | 167 query_module man/ cs/ 0xa7 ? ? ? ? ? ? 169 | 168 poll man/ cs/ 0xa8 struct pollfd *ufds unsigned int nfds int timeout - - - 170 | 169 nfsservctl man/ cs/ 0xa9 ? ? ? ? ? ? 171 | 170 setresgid man/ cs/ 0xaa gid_t rgid gid_t egid gid_t sgid - - - 172 | 171 getresgid man/ cs/ 0xab gid_t *rgid gid_t *egid gid_t *sgid - - - 173 | 172 prctl man/ cs/ 0xac int option unsigned long arg2 unsigned long arg3 unsigned long arg4 unsigned long arg5 - 174 | 173 rt_sigreturn man/ cs/ 0xad ? ? ? ? ? ? 175 | 174 rt_sigaction man/ cs/ 0xae int const struct sigaction * struct sigaction * size_t - - 176 | 175 rt_sigprocmask man/ cs/ 0xaf int how sigset_t *set sigset_t *oset size_t sigsetsize - - 177 | 176 rt_sigpending man/ cs/ 0xb0 sigset_t *set size_t sigsetsize - - - - 178 | 177 rt_sigtimedwait man/ cs/ 0xb1 const sigset_t *uthese siginfo_t *uinfo const struct timespec *uts size_t sigsetsize - - 179 | 178 rt_sigqueueinfo man/ cs/ 0xb2 pid_t pid int sig siginfo_t *uinfo - - - 180 | 179 rt_sigsuspend man/ cs/ 0xb3 sigset_t *unewset size_t sigsetsize - - - - 181 | 180 pread64 man/ cs/ 0xb4 unsigned int fd char *buf size_t count loff_t pos - - 182 | 181 pwrite64 man/ cs/ 0xb5 unsigned int fd const char *buf size_t count loff_t pos - - 183 | 182 chown man/ cs/ 0xb6 const char *filename uid_t user gid_t group - - - 184 | 183 getcwd man/ cs/ 0xb7 char *buf unsigned long size - - - - 185 | 184 capget man/ cs/ 0xb8 cap_user_header_t header cap_user_data_t dataptr - - - - 186 | 185 capset man/ cs/ 0xb9 cap_user_header_t header const cap_user_data_t data - - - - 187 | 186 sigaltstack man/ cs/ 0xba const struct sigaltstack *uss struct sigaltstack *uoss - - - - 188 | 187 sendfile man/ cs/ 0xbb int out_fd int in_fd off_t *offset size_t count - - 189 | 188 getpmsg man/ cs/ 0xbc ? ? ? ? ? ? 190 | 189 putpmsg man/ cs/ 0xbd ? ? ? ? ? ? 191 | 190 vfork man/ cs/ 0xbe - - - - - - 192 | 191 ugetrlimit man/ cs/ 0xbf ? ? ? ? ? ? 193 | 192 mmap2 man/ cs/ 0xc0 ? ? ? ? ? ? 194 | 193 truncate64 man/ cs/ 0xc1 const char *path loff_t length - - - - 195 | 194 ftruncate64 man/ cs/ 0xc2 unsigned int fd loff_t length - - - - 196 | 195 stat64 man/ cs/ 0xc3 const char *filename struct stat64 *statbuf - - - - 197 | 196 lstat64 man/ cs/ 0xc4 const char *filename struct stat64 *statbuf - - - - 198 | 197 fstat64 man/ cs/ 0xc5 unsigned long fd struct stat64 *statbuf - - - - 199 | 198 lchown32 man/ cs/ 0xc6 ? ? ? ? ? ? 200 | 199 getuid32 man/ cs/ 0xc7 ? ? ? ? ? ? 201 | 200 getgid32 man/ cs/ 0xc8 ? ? ? ? ? ? 202 | 201 geteuid32 man/ cs/ 0xc9 ? ? ? ? ? ? 203 | 202 getegid32 man/ cs/ 0xca ? ? ? ? ? ? 204 | 203 setreuid32 man/ cs/ 0xcb ? ? ? ? ? ? 205 | 204 setregid32 man/ cs/ 0xcc ? ? ? ? ? ? 206 | 205 getgroups32 man/ cs/ 0xcd ? ? ? ? ? ? 207 | 206 setgroups32 man/ cs/ 0xce ? ? ? ? ? ? 208 | 207 fchown32 man/ cs/ 0xcf ? ? ? ? ? ? 209 | 208 setresuid32 man/ cs/ 0xd0 ? ? ? ? ? ? 210 | 209 getresuid32 man/ cs/ 0xd1 ? ? ? ? ? ? 211 | 210 setresgid32 man/ cs/ 0xd2 ? ? ? ? ? ? 212 | 211 getresgid32 man/ cs/ 0xd3 ? ? ? ? ? ? 213 | 212 chown32 man/ cs/ 0xd4 ? ? ? ? ? ? 214 | 213 setuid32 man/ cs/ 0xd5 ? ? ? ? ? ? 215 | 214 setgid32 man/ cs/ 0xd6 ? ? ? ? ? ? 216 | 215 setfsuid32 man/ cs/ 0xd7 ? ? ? ? ? ? 217 | 216 setfsgid32 man/ cs/ 0xd8 ? ? ? ? ? ? 218 | 217 pivot_root man/ cs/ 0xd9 const char *new_root const char *put_old - - - - 219 | 218 mincore man/ cs/ 0xda unsigned long start size_t len unsigned char * vec - - - 220 | 219 madvise man/ cs/ 0xdb unsigned long start size_t len int behavior - - - 221 | 220 getdents64 man/ cs/ 0xdc unsigned int fd struct linux_dirent64 *dirent unsigned int count - - - 222 | 221 fcntl64 man/ cs/ 0xdd unsigned int fd unsigned int cmd unsigned long arg - - - 223 | 222 not implemented 0xde 224 | 223 not implemented 0xdf 225 | 224 gettid man/ cs/ 0xe0 - - - - - - 226 | 225 readahead man/ cs/ 0xe1 int fd loff_t offset size_t count - - - 227 | 226 setxattr man/ cs/ 0xe2 const char *path const char *name const void *value size_t size int flags - 228 | 227 lsetxattr man/ cs/ 0xe3 const char *path const char *name const void *value size_t size int flags - 229 | 228 fsetxattr man/ cs/ 0xe4 int fd const char *name const void *value size_t size int flags - 230 | 229 getxattr man/ cs/ 0xe5 const char *path const char *name void *value size_t size - - 231 | 230 lgetxattr man/ cs/ 0xe6 const char *path const char *name void *value size_t size - - 232 | 231 fgetxattr man/ cs/ 0xe7 int fd const char *name void *value size_t size - - 233 | 232 listxattr man/ cs/ 0xe8 const char *path char *list size_t size - - - 234 | 233 llistxattr man/ cs/ 0xe9 const char *path char *list size_t size - - - 235 | 234 flistxattr man/ cs/ 0xea int fd char *list size_t size - - - 236 | 235 removexattr man/ cs/ 0xeb const char *path const char *name - - - - 237 | 236 lremovexattr man/ cs/ 0xec const char *path const char *name - - - - 238 | 237 fremovexattr man/ cs/ 0xed int fd const char *name - - - - 239 | 238 tkill man/ cs/ 0xee pid_t pid int sig - - - - 240 | 239 sendfile64 man/ cs/ 0xef int out_fd int in_fd loff_t *offset size_t count - - 241 | 240 futex man/ cs/ 0xf0 u32 *uaddr int op u32 val struct timespec *utime u32 *uaddr2 u32 val3 242 | 241 sched_setaffinity man/ cs/ 0xf1 pid_t pid unsigned int len unsigned long *user_mask_ptr - - - 243 | 242 sched_getaffinity man/ cs/ 0xf2 pid_t pid unsigned int len unsigned long *user_mask_ptr - - - 244 | 243 set_thread_area man/ cs/ 0xf3 ? ? ? ? ? ? 245 | 244 get_thread_area man/ cs/ 0xf4 ? ? ? ? ? ? 246 | 245 io_setup man/ cs/ 0xf5 unsigned nr_reqs aio_context_t *ctx - - - - 247 | 246 io_destroy man/ cs/ 0xf6 aio_context_t ctx - - - - - 248 | 247 io_getevents man/ cs/ 0xf7 aio_context_t ctx_id long min_nr long nr struct io_event *events struct timespec *timeout - 249 | 248 io_submit man/ cs/ 0xf8 aio_context_t long struct iocb * * - - - 250 | 249 io_cancel man/ cs/ 0xf9 aio_context_t ctx_id struct iocb *iocb struct io_event *result - - - 251 | 250 fadvise64 man/ cs/ 0xfa int fd loff_t offset size_t len int advice - - 252 | 251 not implemented 0xfb 253 | 252 exit_group man/ cs/ 0xfc int error_code - - - - - 254 | 253 lookup_dcookie man/ cs/ 0xfd u64 cookie64 char *buf size_t len - - - 255 | 254 epoll_create man/ cs/ 0xfe int size - - - - - 256 | 255 epoll_ctl man/ cs/ 0xff int epfd int op int fd struct epoll_event *event - - 257 | 256 epoll_wait man/ cs/ 0x100 int epfd struct epoll_event *events int maxevents int timeout - - 258 | 257 remap_file_pages man/ cs/ 0x101 unsigned long start unsigned long size unsigned long prot unsigned long pgoff unsigned long flags - 259 | 258 set_tid_address man/ cs/ 0x102 int *tidptr - - - - - 260 | 259 timer_create man/ cs/ 0x103 clockid_t which_clock struct sigevent *timer_event_spec timer_t * created_timer_id - - - 261 | 260 timer_settime man/ cs/ 0x104 timer_t timer_id int flags const struct __kernel_itimerspec *new_setting struct itimerspec *old_setting - - 262 | 261 timer_gettime man/ cs/ 0x105 timer_t timer_id struct __kernel_itimerspec *setting - - - - 263 | 262 timer_getoverrun man/ cs/ 0x106 timer_t timer_id - - - - - 264 | 263 timer_delete man/ cs/ 0x107 timer_t timer_id - - - - - 265 | 264 clock_settime man/ cs/ 0x108 clockid_t which_clock const struct __kernel_timespec *tp - - - - 266 | 265 clock_gettime man/ cs/ 0x109 clockid_t which_clock struct __kernel_timespec *tp - - - - 267 | 266 clock_getres man/ cs/ 0x10a clockid_t which_clock struct __kernel_timespec *tp - - - - 268 | 267 clock_nanosleep man/ cs/ 0x10b clockid_t which_clock int flags const struct __kernel_timespec *rqtp struct __kernel_timespec *rmtp - - 269 | 268 statfs64 man/ cs/ 0x10c const char *path size_t sz struct statfs64 *buf - - - 270 | 269 fstatfs64 man/ cs/ 0x10d unsigned int fd size_t sz struct statfs64 *buf - - - 271 | 270 tgkill man/ cs/ 0x10e pid_t tgid pid_t pid int sig - - - 272 | 271 utimes man/ cs/ 0x10f char *filename struct timeval *utimes - - - - 273 | 272 fadvise64_64 man/ cs/ 0x110 int fd loff_t offset loff_t len int advice - - 274 | 273 vserver man/ cs/ 0x111 ? ? ? ? ? ? 275 | 274 mbind man/ cs/ 0x112 unsigned long start unsigned long len unsigned long mode const unsigned long *nmask unsigned long maxnode unsigned flags 276 | 275 get_mempolicy man/ cs/ 0x113 int *policy unsigned long *nmask unsigned long maxnode unsigned long addr unsigned long flags - 277 | 276 set_mempolicy man/ cs/ 0x114 int mode const unsigned long *nmask unsigned long maxnode - - - 278 | 277 mq_open man/ cs/ 0x115 const char *name int oflag umode_t mode struct mq_attr *attr - - 279 | 278 mq_unlink man/ cs/ 0x116 const char *name - - - - - 280 | 279 mq_timedsend man/ cs/ 0x117 mqd_t mqdes const char *msg_ptr size_t msg_len unsigned int msg_prio const struct __kernel_timespec *abs_timeout - 281 | 280 mq_timedreceive man/ cs/ 0x118 mqd_t mqdes char *msg_ptr size_t msg_len unsigned int *msg_prio const struct __kernel_timespec *abs_timeout - 282 | 281 mq_notify man/ cs/ 0x119 mqd_t mqdes const struct sigevent *notification - - - - 283 | 282 mq_getsetattr man/ cs/ 0x11a mqd_t mqdes const struct mq_attr *mqstat struct mq_attr *omqstat - - - 284 | 283 kexec_load man/ cs/ 0x11b unsigned long entry unsigned long nr_segments struct kexec_segment *segments unsigned long flags - - 285 | 284 waitid man/ cs/ 0x11c int which pid_t pid struct siginfo *infop int options struct rusage *ru - 286 | 285 not implemented 0x11d 287 | 286 add_key man/ cs/ 0x11e const char *_type const char *_description const void *_payload size_t plen key_serial_t destringid - 288 | 287 request_key man/ cs/ 0x11f const char *_type const char *_description const char *_callout_info key_serial_t destringid - - 289 | 288 keyctl man/ cs/ 0x120 int cmd unsigned long arg2 unsigned long arg3 unsigned long arg4 unsigned long arg5 - 290 | 289 ioprio_set man/ cs/ 0x121 int which int who int ioprio - - - 291 | 290 ioprio_get man/ cs/ 0x122 int which int who - - - - 292 | 291 inotify_init man/ cs/ 0x123 - - - - - - 293 | 292 inotify_add_watch man/ cs/ 0x124 int fd const char *path u32 mask - - - 294 | 293 inotify_rm_watch man/ cs/ 0x125 int fd __s32 wd - - - - 295 | 294 migrate_pages man/ cs/ 0x126 pid_t pid unsigned long maxnode const unsigned long *from const unsigned long *to - - 296 | 295 openat man/ cs/ 0x127 int dfd const char *filename int flags umode_t mode - - 297 | 296 mkdirat man/ cs/ 0x128 int dfd const char * pathname umode_t mode - - - 298 | 297 mknodat man/ cs/ 0x129 int dfd const char * filename umode_t mode unsigned dev - - 299 | 298 fchownat man/ cs/ 0x12a int dfd const char *filename uid_t user gid_t group int flag - 300 | 299 futimesat man/ cs/ 0x12b int dfd const char *filename struct timeval *utimes - - - 301 | 300 fstatat64 man/ cs/ 0x12c int dfd const char *filename struct stat64 *statbuf int flag - - 302 | 301 unlinkat man/ cs/ 0x12d int dfd const char * pathname int flag - - - 303 | 302 renameat man/ cs/ 0x12e int olddfd const char * oldname int newdfd const char * newname - - 304 | 303 linkat man/ cs/ 0x12f int olddfd const char *oldname int newdfd const char *newname int flags - 305 | 304 symlinkat man/ cs/ 0x130 const char * oldname int newdfd const char * newname - - - 306 | 305 readlinkat man/ cs/ 0x131 int dfd const char *path char *buf int bufsiz - - 307 | 306 fchmodat man/ cs/ 0x132 int dfd const char * filename umode_t mode - - - 308 | 307 faccessat man/ cs/ 0x133 int dfd const char *filename int mode - - - 309 | 308 pselect6 man/ cs/ 0x134 int fd_set * fd_set * fd_set * struct timespec * void * 310 | 309 ppoll man/ cs/ 0x135 struct pollfd * unsigned int struct timespec * const sigset_t * size_t - 311 | 310 unshare man/ cs/ 0x136 unsigned long unshare_flags - - - - - 312 | 311 set_robust_list man/ cs/ 0x137 struct robust_list_head *head size_t len - - - - 313 | 312 get_robust_list man/ cs/ 0x138 int pid struct robust_list_head * *head_ptr size_t *len_ptr - - - 314 | 313 splice man/ cs/ 0x139 int fd_in loff_t *off_in int fd_out loff_t *off_out size_t len unsigned int flags 315 | 314 sync_file_range man/ cs/ 0x13a int fd loff_t offset loff_t nbytes unsigned int flags - - 316 | 315 tee man/ cs/ 0x13b int fdin int fdout size_t len unsigned int flags - - 317 | 316 vmsplice man/ cs/ 0x13c int fd const struct iovec *iov unsigned long nr_segs unsigned int flags - - 318 | 317 move_pages man/ cs/ 0x13d pid_t pid unsigned long nr_pages const void * *pages const int *nodes int *status int flags 319 | 318 getcpu man/ cs/ 0x13e unsigned *cpu unsigned *node struct getcpu_cache *cache - - - 320 | 319 epoll_pwait man/ cs/ 0x13f int epfd struct epoll_event *events int maxevents int timeout const sigset_t *sigmask size_t sigsetsize 321 | 320 utimensat man/ cs/ 0x140 int dfd const char *filename struct timespec *utimes int flags - - 322 | 321 signalfd man/ cs/ 0x141 int ufd sigset_t *user_mask size_t sizemask - - - 323 | 322 timerfd_create man/ cs/ 0x142 int clockid int flags - - - - 324 | 323 eventfd man/ cs/ 0x143 unsigned int count - - - - - 325 | 324 fallocate man/ cs/ 0x144 int fd int mode loff_t offset loff_t len - - 326 | 325 timerfd_settime man/ cs/ 0x145 int ufd int flags const struct __kernel_itimerspec *utmr struct __kernel_itimerspec *otmr - - 327 | 326 timerfd_gettime man/ cs/ 0x146 int ufd struct __kernel_itimerspec *otmr - - - - 328 | 327 signalfd4 man/ cs/ 0x147 int ufd sigset_t *user_mask size_t sizemask int flags - - 329 | 328 eventfd2 man/ cs/ 0x148 unsigned int count int flags - - - - 330 | 329 epoll_create1 man/ cs/ 0x149 int flags - - - - - 331 | 330 dup3 man/ cs/ 0x14a unsigned int oldfd unsigned int newfd int flags - - - 332 | 331 pipe2 man/ cs/ 0x14b int *fildes int flags - - - - 333 | 332 inotify_init1 man/ cs/ 0x14c int flags - - - - - 334 | 333 preadv man/ cs/ 0x14d unsigned long fd const struct iovec *vec unsigned long vlen unsigned long pos_l unsigned long pos_h - 335 | 334 pwritev man/ cs/ 0x14e unsigned long fd const struct iovec *vec unsigned long vlen unsigned long pos_l unsigned long pos_h - 336 | 335 rt_tgsigqueueinfo man/ cs/ 0x14f pid_t tgid pid_t pid int sig siginfo_t *uinfo - - 337 | 336 perf_event_open man/ cs/ 0x150 struct perf_event_attr *attr_uptr pid_t pid int cpu int group_fd unsigned long flags - 338 | 337 recvmmsg man/ cs/ 0x151 int fd struct mmsghdr *msg unsigned int vlen unsigned flags struct timespec *timeout - 339 | 338 fanotify_init man/ cs/ 0x152 unsigned int flags unsigned int event_f_flags - - - - 340 | 339 fanotify_mark man/ cs/ 0x153 int fanotify_fd unsigned int flags u64 mask int fd const char *pathname - 341 | 340 prlimit64 man/ cs/ 0x154 pid_t pid unsigned int resource const struct rlimit64 *new_rlim struct rlimit64 *old_rlim - - 342 | 341 name_to_handle_at man/ cs/ 0x155 int dfd const char *name struct file_handle *handle int *mnt_id int flag - 343 | 342 open_by_handle_at man/ cs/ 0x156 int mountdirfd struct file_handle *handle int flags - - - 344 | 343 clock_adjtime man/ cs/ 0x157 clockid_t which_clock struct timex *tx - - - - 345 | 344 syncfs man/ cs/ 0x158 int fd - - - - - 346 | 345 sendmmsg man/ cs/ 0x159 int fd struct mmsghdr *msg unsigned int vlen unsigned flags - - 347 | 346 setns man/ cs/ 0x15a int fd int nstype - - - - 348 | 347 process_vm_readv man/ cs/ 0x15b pid_t pid const struct iovec *lvec unsigned long liovcnt const struct iovec *rvec unsigned long riovcnt unsigned long flags 349 | 348 process_vm_writev man/ cs/ 0x15c pid_t pid const struct iovec *lvec unsigned long liovcnt const struct iovec *rvec unsigned long riovcnt unsigned long flags 350 | 349 kcmp man/ cs/ 0x15d pid_t pid1 pid_t pid2 int type unsigned long idx1 unsigned long idx2 - 351 | 350 finit_module man/ cs/ 0x15e int fd const char *uargs int flags - - - 352 | 351 sched_setattr man/ cs/ 0x15f pid_t pid struct sched_attr *attr unsigned int flags - - - 353 | 352 sched_getattr man/ cs/ 0x160 pid_t pid struct sched_attr *attr unsigned int size unsigned int flags - - 354 | 353 renameat2 man/ cs/ 0x161 int olddfd const char *oldname int newdfd const char *newname unsigned int flags - 355 | 354 seccomp man/ cs/ 0x162 unsigned int op unsigned int flags const char *uargs - - - 356 | 355 getrandom man/ cs/ 0x163 char *buf size_t count unsigned int flags - - - 357 | 356 memfd_create man/ cs/ 0x164 const char *uname_ptr unsigned int flags - - - - 358 | 357 bpf man/ cs/ 0x165 int cmd union bpf_attr *attr unsigned int size - - - 359 | 358 execveat man/ cs/ 0x166 int dfd const char *filename const char *const *argv const char *const *envp int flags - 360 | 359 socket man/ cs/ 0x167 int int int - - - 361 | 360 socketpair man/ cs/ 0x168 int int int int * - - 362 | 361 bind man/ cs/ 0x169 int struct sockaddr * int - - - 363 | 362 connect man/ cs/ 0x16a int struct sockaddr * int - - - 364 | 363 listen man/ cs/ 0x16b int int - - - - 365 | 364 accept4 man/ cs/ 0x16c int struct sockaddr * int * int - - 366 | 365 getsockopt man/ cs/ 0x16d int fd int level int optname char *optval int *optlen - 367 | 366 setsockopt man/ cs/ 0x16e int fd int level int optname char *optval int optlen - 368 | 367 getsockname man/ cs/ 0x16f int struct sockaddr * int * - - - 369 | 368 getpeername man/ cs/ 0x170 int struct sockaddr * int * - - - 370 | 369 sendto man/ cs/ 0x171 int void * size_t unsigned struct sockaddr * int 371 | 370 sendmsg man/ cs/ 0x172 int fd struct user_msghdr *msg unsigned flags - - - 372 | 371 recvfrom man/ cs/ 0x173 int void * size_t unsigned struct sockaddr * int * 373 | 372 recvmsg man/ cs/ 0x174 int fd struct user_msghdr *msg unsigned flags - - - 374 | 373 shutdown man/ cs/ 0x175 int int - - - - 375 | 374 userfaultfd man/ cs/ 0x176 int flags - - - - - 376 | 375 membarrier man/ cs/ 0x177 int cmd int flags - - - - 377 | 376 mlock2 man/ cs/ 0x178 unsigned long start size_t len int flags - - - 378 | 377 copy_file_range man/ cs/ 0x179 int fd_in loff_t *off_in int fd_out loff_t *off_out size_t len unsigned int flags 379 | 378 preadv2 man/ cs/ 0x17a unsigned long fd const struct iovec *vec unsigned long vlen unsigned long pos_l unsigned long pos_h rwf_t flags 380 | 379 pwritev2 man/ cs/ 0x17b unsigned long fd const struct iovec *vec unsigned long vlen unsigned long pos_l unsigned long pos_h rwf_t flags 381 | 380 pkey_mprotect man/ cs/ 0x17c unsigned long start size_t len unsigned long prot int pkey - - 382 | 381 pkey_alloc man/ cs/ 0x17d unsigned long flags unsigned long init_val - - - - 383 | 382 pkey_free man/ cs/ 0x17e int pkey - - - - - 384 | 383 statx man/ cs/ 0x17f int dfd const char *path unsigned flags unsigned mask struct statx *buffer - 385 | 384 arch_prctl man/ cs/ 0x180 ? ? ? ? ? ? 386 | -------------------------------------------------------------------------------- /64.txt: -------------------------------------------------------------------------------- 1 | 0 read man/ cs/ 0x00 unsigned int fd char *buf size_t count - - - 2 | 1 write man/ cs/ 0x01 unsigned int fd const char *buf size_t count - - - 3 | 2 open man/ cs/ 0x02 const char *filename int flags umode_t mode - - - 4 | 3 close man/ cs/ 0x03 unsigned int fd - - - - - 5 | 4 stat man/ cs/ 0x04 const char *filename struct __old_kernel_stat *statbuf - - - - 6 | 5 fstat man/ cs/ 0x05 unsigned int fd struct __old_kernel_stat *statbuf - - - - 7 | 6 lstat man/ cs/ 0x06 const char *filename struct __old_kernel_stat *statbuf - - - - 8 | 7 poll man/ cs/ 0x07 struct pollfd *ufds unsigned int nfds int timeout - - - 9 | 8 lseek man/ cs/ 0x08 unsigned int fd off_t offset unsigned int whence - - - 10 | 9 mmap man/ cs/ 0x09 ? ? ? ? ? ? 11 | 10 mprotect man/ cs/ 0x0a unsigned long start size_t len unsigned long prot - - - 12 | 11 munmap man/ cs/ 0x0b unsigned long addr size_t len - - - - 13 | 12 brk man/ cs/ 0x0c unsigned long brk - - - - - 14 | 13 rt_sigaction man/ cs/ 0x0d int const struct sigaction * struct sigaction * size_t - - 15 | 14 rt_sigprocmask man/ cs/ 0x0e int how sigset_t *set sigset_t *oset size_t sigsetsize - - 16 | 15 rt_sigreturn man/ cs/ 0x0f ? ? ? ? ? ? 17 | 16 ioctl man/ cs/ 0x10 unsigned int fd unsigned int cmd unsigned long arg - - - 18 | 17 pread64 man/ cs/ 0x11 unsigned int fd char *buf size_t count loff_t pos - - 19 | 18 pwrite64 man/ cs/ 0x12 unsigned int fd const char *buf size_t count loff_t pos - - 20 | 19 readv man/ cs/ 0x13 unsigned long fd const struct iovec *vec unsigned long vlen - - - 21 | 20 writev man/ cs/ 0x14 unsigned long fd const struct iovec *vec unsigned long vlen - - - 22 | 21 access man/ cs/ 0x15 const char *filename int mode - - - - 23 | 22 pipe man/ cs/ 0x16 int *fildes - - - - - 24 | 23 select man/ cs/ 0x17 int n fd_set *inp fd_set *outp fd_set *exp struct timeval *tvp - 25 | 24 sched_yield man/ cs/ 0x18 - - - - - - 26 | 25 mremap man/ cs/ 0x19 unsigned long addr unsigned long old_len unsigned long new_len unsigned long flags unsigned long new_addr - 27 | 26 msync man/ cs/ 0x1a unsigned long start size_t len int flags - - - 28 | 27 mincore man/ cs/ 0x1b unsigned long start size_t len unsigned char * vec - - - 29 | 28 madvise man/ cs/ 0x1c unsigned long start size_t len int behavior - - - 30 | 29 shmget man/ cs/ 0x1d key_t key size_t size int flag - - - 31 | 30 shmat man/ cs/ 0x1e int shmid char *shmaddr int shmflg - - - 32 | 31 shmctl man/ cs/ 0x1f int shmid int cmd struct shmid_ds *buf - - - 33 | 32 dup man/ cs/ 0x20 unsigned int fildes - - - - - 34 | 33 dup2 man/ cs/ 0x21 unsigned int oldfd unsigned int newfd - - - - 35 | 34 pause man/ cs/ 0x22 - - - - - - 36 | 35 nanosleep man/ cs/ 0x23 struct __kernel_timespec *rqtp struct __kernel_timespec *rmtp - - - - 37 | 36 getitimer man/ cs/ 0x24 int which struct itimerval *value - - - - 38 | 37 alarm man/ cs/ 0x25 unsigned int seconds - - - - - 39 | 38 setitimer man/ cs/ 0x26 int which struct itimerval *value struct itimerval *ovalue - - - 40 | 39 getpid man/ cs/ 0x27 - - - - - - 41 | 40 sendfile man/ cs/ 0x28 int out_fd int in_fd off_t *offset size_t count - - 42 | 41 socket man/ cs/ 0x29 int int int - - - 43 | 42 connect man/ cs/ 0x2a int struct sockaddr * int - - - 44 | 43 accept man/ cs/ 0x2b int struct sockaddr * int * - - - 45 | 44 sendto man/ cs/ 0x2c int void * size_t unsigned struct sockaddr * int 46 | 45 recvfrom man/ cs/ 0x2d int void * size_t unsigned struct sockaddr * int * 47 | 46 sendmsg man/ cs/ 0x2e int fd struct user_msghdr *msg unsigned flags - - - 48 | 47 recvmsg man/ cs/ 0x2f int fd struct user_msghdr *msg unsigned flags - - - 49 | 48 shutdown man/ cs/ 0x30 int int - - - - 50 | 49 bind man/ cs/ 0x31 int struct sockaddr * int - - - 51 | 50 listen man/ cs/ 0x32 int int - - - - 52 | 51 getsockname man/ cs/ 0x33 int struct sockaddr * int * - - - 53 | 52 getpeername man/ cs/ 0x34 int struct sockaddr * int * - - - 54 | 53 socketpair man/ cs/ 0x35 int int int int * - - 55 | 54 setsockopt man/ cs/ 0x36 int fd int level int optname char *optval int optlen - 56 | 55 getsockopt man/ cs/ 0x37 int fd int level int optname char *optval int *optlen - 57 | 56 clone man/ cs/ 0x38 unsigned long unsigned long int * int * unsigned long - 58 | 57 fork man/ cs/ 0x39 - - - - - - 59 | 58 vfork man/ cs/ 0x3a - - - - - - 60 | 59 execve man/ cs/ 0x3b const char *filename const char *const *argv const char *const *envp - - - 61 | 60 exit man/ cs/ 0x3c int error_code - - - - - 62 | 61 wait4 man/ cs/ 0x3d pid_t pid int *stat_addr int options struct rusage *ru - - 63 | 62 kill man/ cs/ 0x3e pid_t pid int sig - - - - 64 | 63 uname man/ cs/ 0x3f struct old_utsname * - - - - - 65 | 64 semget man/ cs/ 0x40 key_t key int nsems int semflg - - - 66 | 65 semop man/ cs/ 0x41 int semid struct sembuf *sops unsigned nsops - - - 67 | 66 semctl man/ cs/ 0x42 int semid int semnum int cmd unsigned long arg - - 68 | 67 shmdt man/ cs/ 0x43 char *shmaddr - - - - - 69 | 68 msgget man/ cs/ 0x44 key_t key int msgflg - - - - 70 | 69 msgsnd man/ cs/ 0x45 int msqid struct msgbuf *msgp size_t msgsz int msgflg - - 71 | 70 msgrcv man/ cs/ 0x46 int msqid struct msgbuf *msgp size_t msgsz long msgtyp int msgflg - 72 | 71 msgctl man/ cs/ 0x47 int msqid int cmd struct msqid_ds *buf - - - 73 | 72 fcntl man/ cs/ 0x48 unsigned int fd unsigned int cmd unsigned long arg - - - 74 | 73 flock man/ cs/ 0x49 unsigned int fd unsigned int cmd - - - - 75 | 74 fsync man/ cs/ 0x4a unsigned int fd - - - - - 76 | 75 fdatasync man/ cs/ 0x4b unsigned int fd - - - - - 77 | 76 truncate man/ cs/ 0x4c const char *path long length - - - - 78 | 77 ftruncate man/ cs/ 0x4d unsigned int fd unsigned long length - - - - 79 | 78 getdents man/ cs/ 0x4e unsigned int fd struct linux_dirent *dirent unsigned int count - - - 80 | 79 getcwd man/ cs/ 0x4f char *buf unsigned long size - - - - 81 | 80 chdir man/ cs/ 0x50 const char *filename - - - - - 82 | 81 fchdir man/ cs/ 0x51 unsigned int fd - - - - - 83 | 82 rename man/ cs/ 0x52 const char *oldname const char *newname - - - - 84 | 83 mkdir man/ cs/ 0x53 const char *pathname umode_t mode - - - - 85 | 84 rmdir man/ cs/ 0x54 const char *pathname - - - - - 86 | 85 creat man/ cs/ 0x55 const char *pathname umode_t mode - - - - 87 | 86 link man/ cs/ 0x56 const char *oldname const char *newname - - - - 88 | 87 unlink man/ cs/ 0x57 const char *pathname - - - - - 89 | 88 symlink man/ cs/ 0x58 const char *old const char *new - - - - 90 | 89 readlink man/ cs/ 0x59 const char *path char *buf int bufsiz - - - 91 | 90 chmod man/ cs/ 0x5a const char *filename umode_t mode - - - - 92 | 91 fchmod man/ cs/ 0x5b unsigned int fd umode_t mode - - - - 93 | 92 chown man/ cs/ 0x5c const char *filename uid_t user gid_t group - - - 94 | 93 fchown man/ cs/ 0x5d unsigned int fd uid_t user gid_t group - - - 95 | 94 lchown man/ cs/ 0x5e const char *filename uid_t user gid_t group - - - 96 | 95 umask man/ cs/ 0x5f int mask - - - - - 97 | 96 gettimeofday man/ cs/ 0x60 struct timeval *tv struct timezone *tz - - - - 98 | 97 getrlimit man/ cs/ 0x61 unsigned int resource struct rlimit *rlim - - - - 99 | 98 getrusage man/ cs/ 0x62 int who struct rusage *ru - - - - 100 | 99 sysinfo man/ cs/ 0x63 struct sysinfo *info - - - - - 101 | 100 times man/ cs/ 0x64 struct tms *tbuf - - - - - 102 | 101 ptrace man/ cs/ 0x65 long request long pid unsigned long addr unsigned long data - - 103 | 102 getuid man/ cs/ 0x66 - - - - - - 104 | 103 syslog man/ cs/ 0x67 int type char *buf int len - - - 105 | 104 getgid man/ cs/ 0x68 - - - - - - 106 | 105 setuid man/ cs/ 0x69 uid_t uid - - - - - 107 | 106 setgid man/ cs/ 0x6a gid_t gid - - - - - 108 | 107 geteuid man/ cs/ 0x6b - - - - - - 109 | 108 getegid man/ cs/ 0x6c - - - - - - 110 | 109 setpgid man/ cs/ 0x6d pid_t pid pid_t pgid - - - - 111 | 110 getppid man/ cs/ 0x6e - - - - - - 112 | 111 getpgrp man/ cs/ 0x6f - - - - - - 113 | 112 setsid man/ cs/ 0x70 - - - - - - 114 | 113 setreuid man/ cs/ 0x71 uid_t ruid uid_t euid - - - - 115 | 114 setregid man/ cs/ 0x72 gid_t rgid gid_t egid - - - - 116 | 115 getgroups man/ cs/ 0x73 int gidsetsize gid_t *grouplist - - - - 117 | 116 setgroups man/ cs/ 0x74 int gidsetsize gid_t *grouplist - - - - 118 | 117 setresuid man/ cs/ 0x75 uid_t ruid uid_t euid uid_t suid - - - 119 | 118 getresuid man/ cs/ 0x76 uid_t *ruid uid_t *euid uid_t *suid - - - 120 | 119 setresgid man/ cs/ 0x77 gid_t rgid gid_t egid gid_t sgid - - - 121 | 120 getresgid man/ cs/ 0x78 gid_t *rgid gid_t *egid gid_t *sgid - - - 122 | 121 getpgid man/ cs/ 0x79 pid_t pid - - - - - 123 | 122 setfsuid man/ cs/ 0x7a uid_t uid - - - - - 124 | 123 setfsgid man/ cs/ 0x7b gid_t gid - - - - - 125 | 124 getsid man/ cs/ 0x7c pid_t pid - - - - - 126 | 125 capget man/ cs/ 0x7d cap_user_header_t header cap_user_data_t dataptr - - - - 127 | 126 capset man/ cs/ 0x7e cap_user_header_t header const cap_user_data_t data - - - - 128 | 127 rt_sigpending man/ cs/ 0x7f sigset_t *set size_t sigsetsize - - - - 129 | 128 rt_sigtimedwait man/ cs/ 0x80 const sigset_t *uthese siginfo_t *uinfo const struct timespec *uts size_t sigsetsize - - 130 | 129 rt_sigqueueinfo man/ cs/ 0x81 pid_t pid int sig siginfo_t *uinfo - - - 131 | 130 rt_sigsuspend man/ cs/ 0x82 sigset_t *unewset size_t sigsetsize - - - - 132 | 131 sigaltstack man/ cs/ 0x83 const struct sigaltstack *uss struct sigaltstack *uoss - - - - 133 | 132 utime man/ cs/ 0x84 char *filename struct utimbuf *times - - - - 134 | 133 mknod man/ cs/ 0x85 const char *filename umode_t mode unsigned dev - - - 135 | 134 uselib man/ cs/ 0x86 const char *library - - - - - 136 | 135 personality man/ cs/ 0x87 unsigned int personality - - - - - 137 | 136 ustat man/ cs/ 0x88 unsigned dev struct ustat *ubuf - - - - 138 | 137 statfs man/ cs/ 0x89 const char * path struct statfs *buf - - - - 139 | 138 fstatfs man/ cs/ 0x8a unsigned int fd struct statfs *buf - - - - 140 | 139 sysfs man/ cs/ 0x8b int option unsigned long arg1 unsigned long arg2 - - - 141 | 140 getpriority man/ cs/ 0x8c int which int who - - - - 142 | 141 setpriority man/ cs/ 0x8d int which int who int niceval - - - 143 | 142 sched_setparam man/ cs/ 0x8e pid_t pid struct sched_param *param - - - - 144 | 143 sched_getparam man/ cs/ 0x8f pid_t pid struct sched_param *param - - - - 145 | 144 sched_setscheduler man/ cs/ 0x90 pid_t pid int policy struct sched_param *param - - - 146 | 145 sched_getscheduler man/ cs/ 0x91 pid_t pid - - - - - 147 | 146 sched_get_priority_max man/ cs/ 0x92 int policy - - - - - 148 | 147 sched_get_priority_min man/ cs/ 0x93 int policy - - - - - 149 | 148 sched_rr_get_interval man/ cs/ 0x94 pid_t pid struct timespec *interval - - - - 150 | 149 mlock man/ cs/ 0x95 unsigned long start size_t len - - - - 151 | 150 munlock man/ cs/ 0x96 unsigned long start size_t len - - - - 152 | 151 mlockall man/ cs/ 0x97 int flags - - - - - 153 | 152 munlockall man/ cs/ 0x98 - - - - - - 154 | 153 vhangup man/ cs/ 0x99 - - - - - - 155 | 154 modify_ldt man/ cs/ 0x9a ? ? ? ? ? ? 156 | 155 pivot_root man/ cs/ 0x9b const char *new_root const char *put_old - - - - 157 | 156 _sysctl man/ cs/ 0x9c ? ? ? ? ? ? 158 | 157 prctl man/ cs/ 0x9d int option unsigned long arg2 unsigned long arg3 unsigned long arg4 unsigned long arg5 - 159 | 158 arch_prctl man/ cs/ 0x9e ? ? ? ? ? ? 160 | 159 adjtimex man/ cs/ 0x9f struct timex *txc_p - - - - - 161 | 160 setrlimit man/ cs/ 0xa0 unsigned int resource struct rlimit *rlim - - - - 162 | 161 chroot man/ cs/ 0xa1 const char *filename - - - - - 163 | 162 sync man/ cs/ 0xa2 - - - - - - 164 | 163 acct man/ cs/ 0xa3 const char *name - - - - - 165 | 164 settimeofday man/ cs/ 0xa4 struct timeval *tv struct timezone *tz - - - - 166 | 165 mount man/ cs/ 0xa5 char *dev_name char *dir_name char *type unsigned long flags void *data - 167 | 166 umount2 man/ cs/ 0xa6 ? ? ? ? ? ? 168 | 167 swapon man/ cs/ 0xa7 const char *specialfile int swap_flags - - - - 169 | 168 swapoff man/ cs/ 0xa8 const char *specialfile - - - - - 170 | 169 reboot man/ cs/ 0xa9 int magic1 int magic2 unsigned int cmd void *arg - - 171 | 170 sethostname man/ cs/ 0xaa char *name int len - - - - 172 | 171 setdomainname man/ cs/ 0xab char *name int len - - - - 173 | 172 iopl man/ cs/ 0xac ? ? ? ? ? ? 174 | 173 ioperm man/ cs/ 0xad unsigned long from unsigned long num int on - - - 175 | 174 create_module man/ cs/ 0xae ? ? ? ? ? ? 176 | 175 init_module man/ cs/ 0xaf void *umod unsigned long len const char *uargs - - - 177 | 176 delete_module man/ cs/ 0xb0 const char *name_user unsigned int flags - - - - 178 | 177 get_kernel_syms man/ cs/ 0xb1 ? ? ? ? ? ? 179 | 178 query_module man/ cs/ 0xb2 ? ? ? ? ? ? 180 | 179 quotactl man/ cs/ 0xb3 unsigned int cmd const char *special qid_t id void *addr - - 181 | 180 nfsservctl man/ cs/ 0xb4 ? ? ? ? ? ? 182 | 181 getpmsg man/ cs/ 0xb5 ? ? ? ? ? ? 183 | 182 putpmsg man/ cs/ 0xb6 ? ? ? ? ? ? 184 | 183 afs_syscall man/ cs/ 0xb7 ? ? ? ? ? ? 185 | 184 tuxcall man/ cs/ 0xb8 ? ? ? ? ? ? 186 | 185 security man/ cs/ 0xb9 ? ? ? ? ? ? 187 | 186 gettid man/ cs/ 0xba - - - - - - 188 | 187 readahead man/ cs/ 0xbb int fd loff_t offset size_t count - - - 189 | 188 setxattr man/ cs/ 0xbc const char *path const char *name const void *value size_t size int flags - 190 | 189 lsetxattr man/ cs/ 0xbd const char *path const char *name const void *value size_t size int flags - 191 | 190 fsetxattr man/ cs/ 0xbe int fd const char *name const void *value size_t size int flags - 192 | 191 getxattr man/ cs/ 0xbf const char *path const char *name void *value size_t size - - 193 | 192 lgetxattr man/ cs/ 0xc0 const char *path const char *name void *value size_t size - - 194 | 193 fgetxattr man/ cs/ 0xc1 int fd const char *name void *value size_t size - - 195 | 194 listxattr man/ cs/ 0xc2 const char *path char *list size_t size - - - 196 | 195 llistxattr man/ cs/ 0xc3 const char *path char *list size_t size - - - 197 | 196 flistxattr man/ cs/ 0xc4 int fd char *list size_t size - - - 198 | 197 removexattr man/ cs/ 0xc5 const char *path const char *name - - - - 199 | 198 lremovexattr man/ cs/ 0xc6 const char *path const char *name - - - - 200 | 199 fremovexattr man/ cs/ 0xc7 int fd const char *name - - - - 201 | 200 tkill man/ cs/ 0xc8 pid_t pid int sig - - - - 202 | 201 time man/ cs/ 0xc9 time_t *tloc - - - - - 203 | 202 futex man/ cs/ 0xca u32 *uaddr int op u32 val struct timespec *utime u32 *uaddr2 u32 val3 204 | 203 sched_setaffinity man/ cs/ 0xcb pid_t pid unsigned int len unsigned long *user_mask_ptr - - - 205 | 204 sched_getaffinity man/ cs/ 0xcc pid_t pid unsigned int len unsigned long *user_mask_ptr - - - 206 | 205 set_thread_area man/ cs/ 0xcd ? ? ? ? ? ? 207 | 206 io_setup man/ cs/ 0xce unsigned nr_reqs aio_context_t *ctx - - - - 208 | 207 io_destroy man/ cs/ 0xcf aio_context_t ctx - - - - - 209 | 208 io_getevents man/ cs/ 0xd0 aio_context_t ctx_id long min_nr long nr struct io_event *events struct timespec *timeout - 210 | 209 io_submit man/ cs/ 0xd1 aio_context_t long struct iocb * * - - - 211 | 210 io_cancel man/ cs/ 0xd2 aio_context_t ctx_id struct iocb *iocb struct io_event *result - - - 212 | 211 get_thread_area man/ cs/ 0xd3 ? ? ? ? ? ? 213 | 212 lookup_dcookie man/ cs/ 0xd4 u64 cookie64 char *buf size_t len - - - 214 | 213 epoll_create man/ cs/ 0xd5 int size - - - - - 215 | 214 epoll_ctl_old man/ cs/ 0xd6 ? ? ? ? ? ? 216 | 215 epoll_wait_old man/ cs/ 0xd7 ? ? ? ? ? ? 217 | 216 remap_file_pages man/ cs/ 0xd8 unsigned long start unsigned long size unsigned long prot unsigned long pgoff unsigned long flags - 218 | 217 getdents64 man/ cs/ 0xd9 unsigned int fd struct linux_dirent64 *dirent unsigned int count - - - 219 | 218 set_tid_address man/ cs/ 0xda int *tidptr - - - - - 220 | 219 restart_syscall man/ cs/ 0xdb - - - - - - 221 | 220 semtimedop man/ cs/ 0xdc int semid struct sembuf *sops unsigned nsops const struct __kernel_timespec *timeout - - 222 | 221 fadvise64 man/ cs/ 0xdd int fd loff_t offset size_t len int advice - - 223 | 222 timer_create man/ cs/ 0xde clockid_t which_clock struct sigevent *timer_event_spec timer_t * created_timer_id - - - 224 | 223 timer_settime man/ cs/ 0xdf timer_t timer_id int flags const struct __kernel_itimerspec *new_setting struct itimerspec *old_setting - - 225 | 224 timer_gettime man/ cs/ 0xe0 timer_t timer_id struct __kernel_itimerspec *setting - - - - 226 | 225 timer_getoverrun man/ cs/ 0xe1 timer_t timer_id - - - - - 227 | 226 timer_delete man/ cs/ 0xe2 timer_t timer_id - - - - - 228 | 227 clock_settime man/ cs/ 0xe3 clockid_t which_clock const struct __kernel_timespec *tp - - - - 229 | 228 clock_gettime man/ cs/ 0xe4 clockid_t which_clock struct __kernel_timespec *tp - - - - 230 | 229 clock_getres man/ cs/ 0xe5 clockid_t which_clock struct __kernel_timespec *tp - - - - 231 | 230 clock_nanosleep man/ cs/ 0xe6 clockid_t which_clock int flags const struct __kernel_timespec *rqtp struct __kernel_timespec *rmtp - - 232 | 231 exit_group man/ cs/ 0xe7 int error_code - - - - - 233 | 232 epoll_wait man/ cs/ 0xe8 int epfd struct epoll_event *events int maxevents int timeout - - 234 | 233 epoll_ctl man/ cs/ 0xe9 int epfd int op int fd struct epoll_event *event - - 235 | 234 tgkill man/ cs/ 0xea pid_t tgid pid_t pid int sig - - - 236 | 235 utimes man/ cs/ 0xeb char *filename struct timeval *utimes - - - - 237 | 236 vserver man/ cs/ 0xec ? ? ? ? ? ? 238 | 237 mbind man/ cs/ 0xed unsigned long start unsigned long len unsigned long mode const unsigned long *nmask unsigned long maxnode unsigned flags 239 | 238 set_mempolicy man/ cs/ 0xee int mode const unsigned long *nmask unsigned long maxnode - - - 240 | 239 get_mempolicy man/ cs/ 0xef int *policy unsigned long *nmask unsigned long maxnode unsigned long addr unsigned long flags - 241 | 240 mq_open man/ cs/ 0xf0 const char *name int oflag umode_t mode struct mq_attr *attr - - 242 | 241 mq_unlink man/ cs/ 0xf1 const char *name - - - - - 243 | 242 mq_timedsend man/ cs/ 0xf2 mqd_t mqdes const char *msg_ptr size_t msg_len unsigned int msg_prio const struct __kernel_timespec *abs_timeout - 244 | 243 mq_timedreceive man/ cs/ 0xf3 mqd_t mqdes char *msg_ptr size_t msg_len unsigned int *msg_prio const struct __kernel_timespec *abs_timeout - 245 | 244 mq_notify man/ cs/ 0xf4 mqd_t mqdes const struct sigevent *notification - - - - 246 | 245 mq_getsetattr man/ cs/ 0xf5 mqd_t mqdes const struct mq_attr *mqstat struct mq_attr *omqstat - - - 247 | 246 kexec_load man/ cs/ 0xf6 unsigned long entry unsigned long nr_segments struct kexec_segment *segments unsigned long flags - - 248 | 247 waitid man/ cs/ 0xf7 int which pid_t pid struct siginfo *infop int options struct rusage *ru - 249 | 248 add_key man/ cs/ 0xf8 const char *_type const char *_description const void *_payload size_t plen key_serial_t destringid - 250 | 249 request_key man/ cs/ 0xf9 const char *_type const char *_description const char *_callout_info key_serial_t destringid - - 251 | 250 keyctl man/ cs/ 0xfa int cmd unsigned long arg2 unsigned long arg3 unsigned long arg4 unsigned long arg5 - 252 | 251 ioprio_set man/ cs/ 0xfb int which int who int ioprio - - - 253 | 252 ioprio_get man/ cs/ 0xfc int which int who - - - - 254 | 253 inotify_init man/ cs/ 0xfd - - - - - - 255 | 254 inotify_add_watch man/ cs/ 0xfe int fd const char *path u32 mask - - - 256 | 255 inotify_rm_watch man/ cs/ 0xff int fd __s32 wd - - - - 257 | 256 migrate_pages man/ cs/ 0x100 pid_t pid unsigned long maxnode const unsigned long *from const unsigned long *to - - 258 | 257 openat man/ cs/ 0x101 int dfd const char *filename int flags umode_t mode - - 259 | 258 mkdirat man/ cs/ 0x102 int dfd const char * pathname umode_t mode - - - 260 | 259 mknodat man/ cs/ 0x103 int dfd const char * filename umode_t mode unsigned dev - - 261 | 260 fchownat man/ cs/ 0x104 int dfd const char *filename uid_t user gid_t group int flag - 262 | 261 futimesat man/ cs/ 0x105 int dfd const char *filename struct timeval *utimes - - - 263 | 262 newfstatat man/ cs/ 0x106 int dfd const char *filename struct stat *statbuf int flag - - 264 | 263 unlinkat man/ cs/ 0x107 int dfd const char * pathname int flag - - - 265 | 264 renameat man/ cs/ 0x108 int olddfd const char * oldname int newdfd const char * newname - - 266 | 265 linkat man/ cs/ 0x109 int olddfd const char *oldname int newdfd const char *newname int flags - 267 | 266 symlinkat man/ cs/ 0x10a const char * oldname int newdfd const char * newname - - - 268 | 267 readlinkat man/ cs/ 0x10b int dfd const char *path char *buf int bufsiz - - 269 | 268 fchmodat man/ cs/ 0x10c int dfd const char * filename umode_t mode - - - 270 | 269 faccessat man/ cs/ 0x10d int dfd const char *filename int mode - - - 271 | 270 pselect6 man/ cs/ 0x10e int fd_set * fd_set * fd_set * struct timespec * void * 272 | 271 ppoll man/ cs/ 0x10f struct pollfd * unsigned int struct timespec * const sigset_t * size_t - 273 | 272 unshare man/ cs/ 0x110 unsigned long unshare_flags - - - - - 274 | 273 set_robust_list man/ cs/ 0x111 struct robust_list_head *head size_t len - - - - 275 | 274 get_robust_list man/ cs/ 0x112 int pid struct robust_list_head * *head_ptr size_t *len_ptr - - - 276 | 275 splice man/ cs/ 0x113 int fd_in loff_t *off_in int fd_out loff_t *off_out size_t len unsigned int flags 277 | 276 tee man/ cs/ 0x114 int fdin int fdout size_t len unsigned int flags - - 278 | 277 sync_file_range man/ cs/ 0x115 int fd loff_t offset loff_t nbytes unsigned int flags - - 279 | 278 vmsplice man/ cs/ 0x116 int fd const struct iovec *iov unsigned long nr_segs unsigned int flags - - 280 | 279 move_pages man/ cs/ 0x117 pid_t pid unsigned long nr_pages const void * *pages const int *nodes int *status int flags 281 | 280 utimensat man/ cs/ 0x118 int dfd const char *filename struct timespec *utimes int flags - - 282 | 281 epoll_pwait man/ cs/ 0x119 int epfd struct epoll_event *events int maxevents int timeout const sigset_t *sigmask size_t sigsetsize 283 | 282 signalfd man/ cs/ 0x11a int ufd sigset_t *user_mask size_t sizemask - - - 284 | 283 timerfd_create man/ cs/ 0x11b int clockid int flags - - - - 285 | 284 eventfd man/ cs/ 0x11c unsigned int count - - - - - 286 | 285 fallocate man/ cs/ 0x11d int fd int mode loff_t offset loff_t len - - 287 | 286 timerfd_settime man/ cs/ 0x11e int ufd int flags const struct __kernel_itimerspec *utmr struct __kernel_itimerspec *otmr - - 288 | 287 timerfd_gettime man/ cs/ 0x11f int ufd struct __kernel_itimerspec *otmr - - - - 289 | 288 accept4 man/ cs/ 0x120 int struct sockaddr * int * int - - 290 | 289 signalfd4 man/ cs/ 0x121 int ufd sigset_t *user_mask size_t sizemask int flags - - 291 | 290 eventfd2 man/ cs/ 0x122 unsigned int count int flags - - - - 292 | 291 epoll_create1 man/ cs/ 0x123 int flags - - - - - 293 | 292 dup3 man/ cs/ 0x124 unsigned int oldfd unsigned int newfd int flags - - - 294 | 293 pipe2 man/ cs/ 0x125 int *fildes int flags - - - - 295 | 294 inotify_init1 man/ cs/ 0x126 int flags - - - - - 296 | 295 preadv man/ cs/ 0x127 unsigned long fd const struct iovec *vec unsigned long vlen unsigned long pos_l unsigned long pos_h - 297 | 296 pwritev man/ cs/ 0x128 unsigned long fd const struct iovec *vec unsigned long vlen unsigned long pos_l unsigned long pos_h - 298 | 297 rt_tgsigqueueinfo man/ cs/ 0x129 pid_t tgid pid_t pid int sig siginfo_t *uinfo - - 299 | 298 perf_event_open man/ cs/ 0x12a struct perf_event_attr *attr_uptr pid_t pid int cpu int group_fd unsigned long flags - 300 | 299 recvmmsg man/ cs/ 0x12b int fd struct mmsghdr *msg unsigned int vlen unsigned flags struct timespec *timeout - 301 | 300 fanotify_init man/ cs/ 0x12c unsigned int flags unsigned int event_f_flags - - - - 302 | 301 fanotify_mark man/ cs/ 0x12d int fanotify_fd unsigned int flags u64 mask int fd const char *pathname - 303 | 302 prlimit64 man/ cs/ 0x12e pid_t pid unsigned int resource const struct rlimit64 *new_rlim struct rlimit64 *old_rlim - - 304 | 303 name_to_handle_at man/ cs/ 0x12f int dfd const char *name struct file_handle *handle int *mnt_id int flag - 305 | 304 open_by_handle_at man/ cs/ 0x130 int mountdirfd struct file_handle *handle int flags - - - 306 | 305 clock_adjtime man/ cs/ 0x131 clockid_t which_clock struct timex *tx - - - - 307 | 306 syncfs man/ cs/ 0x132 int fd - - - - - 308 | 307 sendmmsg man/ cs/ 0x133 int fd struct mmsghdr *msg unsigned int vlen unsigned flags - - 309 | 308 setns man/ cs/ 0x134 int fd int nstype - - - - 310 | 309 getcpu man/ cs/ 0x135 unsigned *cpu unsigned *node struct getcpu_cache *cache - - - 311 | 310 process_vm_readv man/ cs/ 0x136 pid_t pid const struct iovec *lvec unsigned long liovcnt const struct iovec *rvec unsigned long riovcnt unsigned long flags 312 | 311 process_vm_writev man/ cs/ 0x137 pid_t pid const struct iovec *lvec unsigned long liovcnt const struct iovec *rvec unsigned long riovcnt unsigned long flags 313 | 312 kcmp man/ cs/ 0x138 pid_t pid1 pid_t pid2 int type unsigned long idx1 unsigned long idx2 - 314 | 313 finit_module man/ cs/ 0x139 int fd const char *uargs int flags - - - 315 | 314 sched_setattr man/ cs/ 0x13a pid_t pid struct sched_attr *attr unsigned int flags - - - 316 | 315 sched_getattr man/ cs/ 0x13b pid_t pid struct sched_attr *attr unsigned int size unsigned int flags - - 317 | 316 renameat2 man/ cs/ 0x13c int olddfd const char *oldname int newdfd const char *newname unsigned int flags - 318 | 317 seccomp man/ cs/ 0x13d unsigned int op unsigned int flags const char *uargs - - - 319 | 318 getrandom man/ cs/ 0x13e char *buf size_t count unsigned int flags - - - 320 | 319 memfd_create man/ cs/ 0x13f const char *uname_ptr unsigned int flags - - - - 321 | 320 kexec_file_load man/ cs/ 0x140 int kernel_fd int initrd_fd unsigned long cmdline_len const char *cmdline_ptr unsigned long flags - 322 | 321 bpf man/ cs/ 0x141 int cmd union bpf_attr *attr unsigned int size - - - 323 | 322 execveat man/ cs/ 0x142 int dfd const char *filename const char *const *argv const char *const *envp int flags - 324 | 323 userfaultfd man/ cs/ 0x143 int flags - - - - - 325 | 324 membarrier man/ cs/ 0x144 int cmd int flags - - - - 326 | 325 mlock2 man/ cs/ 0x145 unsigned long start size_t len int flags - - - 327 | 326 copy_file_range man/ cs/ 0x146 int fd_in loff_t *off_in int fd_out loff_t *off_out size_t len unsigned int flags 328 | 327 preadv2 man/ cs/ 0x147 unsigned long fd const struct iovec *vec unsigned long vlen unsigned long pos_l unsigned long pos_h rwf_t flags 329 | 328 pwritev2 man/ cs/ 0x148 unsigned long fd const struct iovec *vec unsigned long vlen unsigned long pos_l unsigned long pos_h rwf_t flags 330 | 329 pkey_mprotect man/ cs/ 0x149 unsigned long start size_t len unsigned long prot int pkey - - 331 | 330 pkey_alloc man/ cs/ 0x14a unsigned long flags unsigned long init_val - - - - 332 | 331 pkey_free man/ cs/ 0x14b int pkey - - - - - 333 | 332 statx man/ cs/ 0x14c int dfd const char *path unsigned flags unsigned mask struct statx *buffer 334 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Syscall 2 | 3 | Just a hacky script to display calling conventions for syscalls for `x86` and `x86_64`, information pulled from: https://chromium.googlesource.com/chromiumos/docs/+/master/constants/syscalls.md#x86-32_bit 4 | 5 | ## Usage 6 | 7 | To display both at once, just use both flags. To display one or the other, just use the one flag. 8 | 9 | ``` 10 | h0mbre:~$ python3 syscall.py read -x32 -x64 11 | 12 | 'read' calling convention for x86 (32-bit): 13 | 14 | +-----+-----------------+ 15 | | eax | 3/0x03 | 16 | +-----+-----------------+ 17 | | ebx | unsigned int fd | 18 | +-----+-----------------+ 19 | | ecx | char *buf | 20 | +-----+-----------------+ 21 | | edx | size_t count | 22 | +-----+-----------------+ 23 | 24 | 25 | 26 | 'read' calling convention for x86_64 (64-bit): 27 | 28 | +-----+-----------------+ 29 | | rax | 0/0x00 | 30 | +-----+-----------------+ 31 | | rdi | unsigned int fd | 32 | +-----+-----------------+ 33 | | rsi | char *buf | 34 | +-----+-----------------+ 35 | | rdx | size_t count | 36 | +-----+-----------------+ 37 | ``` 38 | 39 | To display a generic calling convention for either architecture, same rules apply just use `'cheat'` as the syscall name. 40 | 41 | ``` 42 | h0mbre:~$ python3 syscall.py cheat -x32 -x64 43 | 44 | x86 Calling Convention: 45 | 46 | 47 | +-----+----------------+ 48 | | eax | syscall/return | 49 | +-----+----------------+ 50 | | ebx | arg0 | 51 | +-----+----------------+ 52 | | ecx | arg1 | 53 | +-----+----------------+ 54 | | edx | arg2 | 55 | +-----+----------------+ 56 | | esi | arg3 | 57 | +-----+----------------+ 58 | | edi | arg4 | 59 | +-----+----------------+ 60 | | ebp | arg5 | 61 | +-----+----------------+ 62 | 63 | 64 | 65 | x86_64 Calling Convention: 66 | 67 | +-----+----------------+ 68 | | rax | syscall/return | 69 | +-----+----------------+ 70 | | rdi | arg0 | 71 | +-----+----------------+ 72 | | rsi | arg1 | 73 | +-----+----------------+ 74 | | rdx | arg2 | 75 | +-----+----------------+ 76 | | r10 | arg3 | 77 | +-----+----------------+ 78 | | r8 | arg4 | 79 | +-----+----------------+ 80 | | r9 | arg5 | 81 | +-----+----------------+ 82 | ``` 83 | 84 | ## Installation 85 | You will have to `pip3 install beautifultable`. 86 | 87 | The script needs access to the two text files in the repo as well, obviously you can set that up however you like. 88 | -------------------------------------------------------------------------------- /syscall.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import argparse 4 | import sys 5 | from beautifultable import BeautifulTable 6 | 7 | parser = argparse.ArgumentParser() 8 | 9 | #### Normal Syscall Operations #### 10 | parser.add_argument("syscall", type=str, 11 | help="syscall you want calling convention for, use 'cheat' for generic calling convention") 12 | parser.add_argument("-x32", 13 | help="32 bit syscall calling convention", action="store_true") 14 | parser.add_argument("-x64", 15 | help="64 bit syscall calling convention", action="store_true") 16 | 17 | args = parser.parse_args() 18 | syscall = args.syscall 19 | 20 | registers32 = ["eax", "ebx", "ecx", "edx", "esi", "edi", "ebp"] 21 | registers64 = ["rax", "rdi", "rsi", "rdx", "r10", "r8", "r9"] 22 | 23 | def cheatsheet32(): 24 | print("\nx86 Calling Convention:\n") 25 | t = BeautifulTable() 26 | t.append_row(['eax', 'syscall/return']) 27 | t.append_row(['ebx', 'arg0']) 28 | t.append_row(['ecx', 'arg1']) 29 | t.append_row(['edx', 'arg2']) 30 | t.append_row(['esi', 'arg3']) 31 | t.append_row(['edi', 'arg4']) 32 | t.append_row(['ebp', 'arg5']) 33 | print(t) 34 | print("\n") 35 | return 36 | 37 | def cheatsheet64(): 38 | print("\nx86_64 Calling Convention:\n") 39 | t = BeautifulTable() 40 | t.append_row(['rax', 'syscall/return']) 41 | t.append_row(['rdi', 'arg0']) 42 | t.append_row(['rsi', 'arg1']) 43 | t.append_row(['rdx', 'arg2']) 44 | t.append_row(['r10', 'arg3']) 45 | t.append_row(['r8', 'arg4']) 46 | t.append_row(['r9', 'arg5']) 47 | print(t) 48 | print("\n") 49 | return 50 | 51 | def parse64(): 52 | try: 53 | with open("64.txt", "r") as f: 54 | lines = f.readlines() 55 | except: 56 | print("Unable to open 64.txt, wtf?") 57 | sys.exit(1) 58 | 59 | for x in lines: 60 | x = x.split("\t") 61 | if x[1] == syscall: 62 | t = BeautifulTable() 63 | t.append_row(['rax', x[0] + "/" + x[3]]) 64 | counter = 4 65 | while counter < len(x): 66 | if "-" not in x[counter] and x[counter] != syscall: 67 | t.append_row([registers64[counter - 3], x[counter]]) 68 | counter += 1 69 | else: 70 | counter += 1 71 | print("\n'" + syscall + "' calling convention for x86_64 (64-bit):\n") 72 | print(t) 73 | print("\n") 74 | return 75 | 76 | print("'" + syscall + "' not found.\n") 77 | sys.exit(1) 78 | 79 | def parse32(): 80 | try: 81 | with open("32.txt", "r") as f: 82 | lines = f.readlines() 83 | except: 84 | print("Unable to open 32.txt, wtf?") 85 | sys.exit(1) 86 | 87 | for x in lines: 88 | x = x.split("\t") 89 | if x[1] == syscall: 90 | t = BeautifulTable() 91 | t.append_row(['eax', x[0] + "/" + x[3]]) 92 | counter = 4 93 | while counter < len(x): 94 | if "-" not in x[counter] and x[counter] != syscall: 95 | t.append_row([registers32[counter - 3], x[counter]]) 96 | counter += 1 97 | else: 98 | counter += 1 99 | print("\n'" + syscall + "' calling convention for x86 (32-bit):\n") 100 | print(t) 101 | print("\n") 102 | return 103 | 104 | print("'" + syscall + "' not found.\n") 105 | sys.exit(1) 106 | 107 | def main(): 108 | if syscall.lower() == "cheat": 109 | if args.x64 and args.x32: 110 | cheatsheet32() 111 | cheatsheet64() 112 | elif args.x64: 113 | cheatsheet64() 114 | elif args.x32: 115 | cheatsheet32() 116 | else: 117 | print("usage: -x32/-x64\n") 118 | sys.exit(1) 119 | else: 120 | if args.x64 and args.x32: 121 | parse32() 122 | parse64() 123 | elif args.x64: 124 | parse64() 125 | elif args.x32: 126 | parse32() 127 | else: 128 | print("usage: -x32/-x64\n") 129 | sys.exit(1) 130 | 131 | main() 132 | --------------------------------------------------------------------------------