123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379 |
- ; vim:ft=fasm:
- ; generated with:
- ;
- ;
- ; FANCY_SYSCALL ?= | sort -nk 3 | column -t
- ; ${SYSCALL_INC}:
- ; mkdir -p '$(dir $@)'
- ; { echo '; vim: ft=fasm:' \
- ; ; echo 'if ~ definite syscall' \
- ; ; echo 'namespace syscall' \
- ; ; echo '#include <sys/syscall.h>' \
- ; | cpp -dM \
- ; | sed -n 's/^#define\s\(SYS_[^ ]\+\) \([0-9]\+\)$$/\1 equ \2/p' \
- ; ${FANCY_SYSCALL} \
- ; ; echo 'end namespace' \
- ; ; echo 'end if' \
- ; ; } > $@
- if ~ definite syscall
- namespace syscall
- SYS_read equ 0
- SYS_write equ 1
- SYS_open equ 2
- SYS_close equ 3
- SYS_stat equ 4
- SYS_fstat equ 5
- SYS_lstat equ 6
- SYS_poll equ 7
- SYS_lseek equ 8
- SYS_mmap equ 9
- SYS_mprotect equ 10
- SYS_munmap equ 11
- SYS_brk equ 12
- SYS_rt_sigaction equ 13
- SYS_rt_sigprocmask equ 14
- SYS_rt_sigreturn equ 15
- SYS_ioctl equ 16
- SYS_pread64 equ 17
- SYS_pwrite64 equ 18
- SYS_readv equ 19
- SYS_writev equ 20
- SYS_access equ 21
- SYS_pipe equ 22
- SYS_select equ 23
- SYS_sched_yield equ 24
- SYS_mremap equ 25
- SYS_msync equ 26
- SYS_mincore equ 27
- SYS_madvise equ 28
- SYS_shmget equ 29
- SYS_shmat equ 30
- SYS_shmctl equ 31
- SYS_dup equ 32
- SYS_dup2 equ 33
- SYS_pause equ 34
- SYS_nanosleep equ 35
- SYS_getitimer equ 36
- SYS_alarm equ 37
- SYS_setitimer equ 38
- SYS_getpid equ 39
- SYS_sendfile equ 40
- SYS_socket equ 41
- SYS_connect equ 42
- SYS_accept equ 43
- SYS_sendto equ 44
- SYS_recvfrom equ 45
- SYS_sendmsg equ 46
- SYS_recvmsg equ 47
- SYS_shutdown equ 48
- SYS_bind equ 49
- SYS_listen equ 50
- SYS_getsockname equ 51
- SYS_getpeername equ 52
- SYS_socketpair equ 53
- SYS_setsockopt equ 54
- SYS_getsockopt equ 55
- SYS_clone equ 56
- SYS_fork equ 57
- SYS_vfork equ 58
- SYS_execve equ 59
- SYS_exit equ 60
- SYS_wait4 equ 61
- SYS_kill equ 62
- SYS_uname equ 63
- SYS_semget equ 64
- SYS_semop equ 65
- SYS_semctl equ 66
- SYS_shmdt equ 67
- SYS_msgget equ 68
- SYS_msgsnd equ 69
- SYS_msgrcv equ 70
- SYS_msgctl equ 71
- SYS_fcntl equ 72
- SYS_flock equ 73
- SYS_fsync equ 74
- SYS_fdatasync equ 75
- SYS_truncate equ 76
- SYS_ftruncate equ 77
- SYS_getdents equ 78
- SYS_getcwd equ 79
- SYS_chdir equ 80
- SYS_fchdir equ 81
- SYS_rename equ 82
- SYS_mkdir equ 83
- SYS_rmdir equ 84
- SYS_creat equ 85
- SYS_link equ 86
- SYS_unlink equ 87
- SYS_symlink equ 88
- SYS_readlink equ 89
- SYS_chmod equ 90
- SYS_fchmod equ 91
- SYS_chown equ 92
- SYS_fchown equ 93
- SYS_lchown equ 94
- SYS_umask equ 95
- SYS_gettimeofday equ 96
- SYS_getrlimit equ 97
- SYS_getrusage equ 98
- SYS_sysinfo equ 99
- SYS_times equ 100
- SYS_ptrace equ 101
- SYS_getuid equ 102
- SYS_syslog equ 103
- SYS_getgid equ 104
- SYS_setuid equ 105
- SYS_setgid equ 106
- SYS_geteuid equ 107
- SYS_getegid equ 108
- SYS_setpgid equ 109
- SYS_getppid equ 110
- SYS_getpgrp equ 111
- SYS_setsid equ 112
- SYS_setreuid equ 113
- SYS_setregid equ 114
- SYS_getgroups equ 115
- SYS_setgroups equ 116
- SYS_setresuid equ 117
- SYS_getresuid equ 118
- SYS_setresgid equ 119
- SYS_getresgid equ 120
- SYS_getpgid equ 121
- SYS_setfsuid equ 122
- SYS_setfsgid equ 123
- SYS_getsid equ 124
- SYS_capget equ 125
- SYS_capset equ 126
- SYS_rt_sigpending equ 127
- SYS_rt_sigtimedwait equ 128
- SYS_rt_sigqueueinfo equ 129
- SYS_rt_sigsuspend equ 130
- SYS_sigaltstack equ 131
- SYS_utime equ 132
- SYS_mknod equ 133
- SYS_uselib equ 134
- SYS_personality equ 135
- SYS_ustat equ 136
- SYS_statfs equ 137
- SYS_fstatfs equ 138
- SYS_sysfs equ 139
- SYS_getpriority equ 140
- SYS_setpriority equ 141
- SYS_sched_setparam equ 142
- SYS_sched_getparam equ 143
- SYS_sched_setscheduler equ 144
- SYS_sched_getscheduler equ 145
- SYS_sched_get_priority_max equ 146
- SYS_sched_get_priority_min equ 147
- SYS_sched_rr_get_interval equ 148
- SYS_mlock equ 149
- SYS_munlock equ 150
- SYS_mlockall equ 151
- SYS_munlockall equ 152
- SYS_vhangup equ 153
- SYS_modify_ldt equ 154
- SYS_pivot_root equ 155
- SYS__sysctl equ 156
- SYS_prctl equ 157
- SYS_arch_prctl equ 158
- SYS_adjtimex equ 159
- SYS_setrlimit equ 160
- SYS_chroot equ 161
- SYS_sync equ 162
- SYS_acct equ 163
- SYS_settimeofday equ 164
- SYS_mount equ 165
- SYS_umount2 equ 166
- SYS_swapon equ 167
- SYS_swapoff equ 168
- SYS_reboot equ 169
- SYS_sethostname equ 170
- SYS_setdomainname equ 171
- SYS_iopl equ 172
- SYS_ioperm equ 173
- SYS_create_module equ 174
- SYS_init_module equ 175
- SYS_delete_module equ 176
- SYS_get_kernel_syms equ 177
- SYS_query_module equ 178
- SYS_quotactl equ 179
- SYS_nfsservctl equ 180
- SYS_getpmsg equ 181
- SYS_putpmsg equ 182
- SYS_afs_syscall equ 183
- SYS_tuxcall equ 184
- SYS_security equ 185
- SYS_gettid equ 186
- SYS_readahead equ 187
- SYS_setxattr equ 188
- SYS_lsetxattr equ 189
- SYS_fsetxattr equ 190
- SYS_getxattr equ 191
- SYS_lgetxattr equ 192
- SYS_fgetxattr equ 193
- SYS_listxattr equ 194
- SYS_llistxattr equ 195
- SYS_flistxattr equ 196
- SYS_removexattr equ 197
- SYS_lremovexattr equ 198
- SYS_fremovexattr equ 199
- SYS_tkill equ 200
- SYS_time equ 201
- SYS_futex equ 202
- SYS_sched_setaffinity equ 203
- SYS_sched_getaffinity equ 204
- SYS_set_thread_area equ 205
- SYS_io_setup equ 206
- SYS_io_destroy equ 207
- SYS_io_getevents equ 208
- SYS_io_submit equ 209
- SYS_io_cancel equ 210
- SYS_get_thread_area equ 211
- SYS_lookup_dcookie equ 212
- SYS_epoll_create equ 213
- SYS_epoll_ctl_old equ 214
- SYS_epoll_wait_old equ 215
- SYS_remap_file_pages equ 216
- SYS_getdents64 equ 217
- SYS_set_tid_address equ 218
- SYS_restart_syscall equ 219
- SYS_semtimedop equ 220
- SYS_fadvise64 equ 221
- SYS_timer_create equ 222
- SYS_timer_settime equ 223
- SYS_timer_gettime equ 224
- SYS_timer_getoverrun equ 225
- SYS_timer_delete equ 226
- SYS_clock_settime equ 227
- SYS_clock_gettime equ 228
- SYS_clock_getres equ 229
- SYS_clock_nanosleep equ 230
- SYS_exit_group equ 231
- SYS_epoll_wait equ 232
- SYS_epoll_ctl equ 233
- SYS_tgkill equ 234
- SYS_utimes equ 235
- SYS_vserver equ 236
- SYS_mbind equ 237
- SYS_set_mempolicy equ 238
- SYS_get_mempolicy equ 239
- SYS_mq_open equ 240
- SYS_mq_unlink equ 241
- SYS_mq_timedsend equ 242
- SYS_mq_timedreceive equ 243
- SYS_mq_notify equ 244
- SYS_mq_getsetattr equ 245
- SYS_kexec_load equ 246
- SYS_waitid equ 247
- SYS_add_key equ 248
- SYS_request_key equ 249
- SYS_keyctl equ 250
- SYS_ioprio_set equ 251
- SYS_ioprio_get equ 252
- SYS_inotify_init equ 253
- SYS_inotify_add_watch equ 254
- SYS_inotify_rm_watch equ 255
- SYS_migrate_pages equ 256
- SYS_openat equ 257
- SYS_mkdirat equ 258
- SYS_mknodat equ 259
- SYS_fchownat equ 260
- SYS_futimesat equ 261
- SYS_newfstatat equ 262
- SYS_unlinkat equ 263
- SYS_renameat equ 264
- SYS_linkat equ 265
- SYS_symlinkat equ 266
- SYS_readlinkat equ 267
- SYS_fchmodat equ 268
- SYS_faccessat equ 269
- SYS_pselect6 equ 270
- SYS_ppoll equ 271
- SYS_unshare equ 272
- SYS_set_robust_list equ 273
- SYS_get_robust_list equ 274
- SYS_splice equ 275
- SYS_tee equ 276
- SYS_sync_file_range equ 277
- SYS_vmsplice equ 278
- SYS_move_pages equ 279
- SYS_utimensat equ 280
- SYS_epoll_pwait equ 281
- SYS_signalfd equ 282
- SYS_timerfd_create equ 283
- SYS_eventfd equ 284
- SYS_fallocate equ 285
- SYS_timerfd_settime equ 286
- SYS_timerfd_gettime equ 287
- SYS_accept4 equ 288
- SYS_signalfd4 equ 289
- SYS_eventfd2 equ 290
- SYS_epoll_create1 equ 291
- SYS_dup3 equ 292
- SYS_pipe2 equ 293
- SYS_inotify_init1 equ 294
- SYS_preadv equ 295
- SYS_pwritev equ 296
- SYS_rt_tgsigqueueinfo equ 297
- SYS_perf_event_open equ 298
- SYS_recvmmsg equ 299
- SYS_fanotify_init equ 300
- SYS_fanotify_mark equ 301
- SYS_prlimit64 equ 302
- SYS_name_to_handle_at equ 303
- SYS_open_by_handle_at equ 304
- SYS_clock_adjtime equ 305
- SYS_syncfs equ 306
- SYS_sendmmsg equ 307
- SYS_setns equ 308
- SYS_getcpu equ 309
- SYS_process_vm_readv equ 310
- SYS_process_vm_writev equ 311
- SYS_kcmp equ 312
- SYS_finit_module equ 313
- SYS_sched_setattr equ 314
- SYS_sched_getattr equ 315
- SYS_renameat2 equ 316
- SYS_seccomp equ 317
- SYS_getrandom equ 318
- SYS_memfd_create equ 319
- SYS_kexec_file_load equ 320
- SYS_bpf equ 321
- SYS_execveat equ 322
- SYS_userfaultfd equ 323
- SYS_membarrier equ 324
- SYS_mlock2 equ 325
- SYS_copy_file_range equ 326
- SYS_preadv2 equ 327
- SYS_pwritev2 equ 328
- SYS_pkey_mprotect equ 329
- SYS_pkey_alloc equ 330
- SYS_pkey_free equ 331
- SYS_statx equ 332
- SYS_io_pgetevents equ 333
- SYS_rseq equ 334
- SYS_pidfd_send_signal equ 424
- SYS_io_uring_setup equ 425
- SYS_io_uring_enter equ 426
- SYS_io_uring_register equ 427
- SYS_open_tree equ 428
- SYS_move_mount equ 429
- SYS_fsopen equ 430
- SYS_fsconfig equ 431
- SYS_fsmount equ 432
- SYS_fspick equ 433
- SYS_pidfd_open equ 434
- SYS_clone3 equ 435
- SYS_close_range equ 436
- SYS_openat2 equ 437
- SYS_pidfd_getfd equ 438
- SYS_faccessat2 equ 439
- SYS_process_madvise equ 440
- SYS_epoll_pwait2 equ 441
- SYS_mount_setattr equ 442
- SYS_landlock_create_ruleset equ 444
- SYS_landlock_add_rule equ 445
- SYS_landlock_restrict_self equ 446
- end namespace
- end if
|