unistd.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  1. #ifndef _UAPI_ALPHA_UNISTD_H
  2. #define _UAPI_ALPHA_UNISTD_H
  3. #define __NR_osf_syscall 0 /* not implemented */
  4. #define __NR_exit 1
  5. #define __NR_fork 2
  6. #define __NR_read 3
  7. #define __NR_write 4
  8. #define __NR_osf_old_open 5 /* not implemented */
  9. #define __NR_close 6
  10. #define __NR_osf_wait4 7
  11. #define __NR_osf_old_creat 8 /* not implemented */
  12. #define __NR_link 9
  13. #define __NR_unlink 10
  14. #define __NR_osf_execve 11 /* not implemented */
  15. #define __NR_chdir 12
  16. #define __NR_fchdir 13
  17. #define __NR_mknod 14
  18. #define __NR_chmod 15
  19. #define __NR_chown 16
  20. #define __NR_brk 17
  21. #define __NR_osf_getfsstat 18 /* not implemented */
  22. #define __NR_lseek 19
  23. #define __NR_getxpid 20
  24. #define __NR_osf_mount 21
  25. #define __NR_umount 22
  26. #define __NR_setuid 23
  27. #define __NR_getxuid 24
  28. #define __NR_exec_with_loader 25 /* not implemented */
  29. #define __NR_ptrace 26
  30. #define __NR_osf_nrecvmsg 27 /* not implemented */
  31. #define __NR_osf_nsendmsg 28 /* not implemented */
  32. #define __NR_osf_nrecvfrom 29 /* not implemented */
  33. #define __NR_osf_naccept 30 /* not implemented */
  34. #define __NR_osf_ngetpeername 31 /* not implemented */
  35. #define __NR_osf_ngetsockname 32 /* not implemented */
  36. #define __NR_access 33
  37. #define __NR_osf_chflags 34 /* not implemented */
  38. #define __NR_osf_fchflags 35 /* not implemented */
  39. #define __NR_sync 36
  40. #define __NR_kill 37
  41. #define __NR_osf_old_stat 38 /* not implemented */
  42. #define __NR_setpgid 39
  43. #define __NR_osf_old_lstat 40 /* not implemented */
  44. #define __NR_dup 41
  45. #define __NR_pipe 42
  46. #define __NR_osf_set_program_attributes 43
  47. #define __NR_osf_profil 44 /* not implemented */
  48. #define __NR_open 45
  49. #define __NR_osf_old_sigaction 46 /* not implemented */
  50. #define __NR_getxgid 47
  51. #define __NR_osf_sigprocmask 48
  52. #define __NR_osf_getlogin 49 /* not implemented */
  53. #define __NR_osf_setlogin 50 /* not implemented */
  54. #define __NR_acct 51
  55. #define __NR_sigpending 52
  56. #define __NR_ioctl 54
  57. #define __NR_osf_reboot 55 /* not implemented */
  58. #define __NR_osf_revoke 56 /* not implemented */
  59. #define __NR_symlink 57
  60. #define __NR_readlink 58
  61. #define __NR_execve 59
  62. #define __NR_umask 60
  63. #define __NR_chroot 61
  64. #define __NR_osf_old_fstat 62 /* not implemented */
  65. #define __NR_getpgrp 63
  66. #define __NR_getpagesize 64
  67. #define __NR_osf_mremap 65 /* not implemented */
  68. #define __NR_vfork 66
  69. #define __NR_stat 67
  70. #define __NR_lstat 68
  71. #define __NR_osf_sbrk 69 /* not implemented */
  72. #define __NR_osf_sstk 70 /* not implemented */
  73. #define __NR_mmap 71 /* OSF/1 mmap is superset of Linux */
  74. #define __NR_osf_old_vadvise 72 /* not implemented */
  75. #define __NR_munmap 73
  76. #define __NR_mprotect 74
  77. #define __NR_madvise 75
  78. #define __NR_vhangup 76
  79. #define __NR_osf_kmodcall 77 /* not implemented */
  80. #define __NR_osf_mincore 78 /* not implemented */
  81. #define __NR_getgroups 79
  82. #define __NR_setgroups 80
  83. #define __NR_osf_old_getpgrp 81 /* not implemented */
  84. #define __NR_setpgrp 82 /* BSD alias for setpgid */
  85. #define __NR_osf_setitimer 83
  86. #define __NR_osf_old_wait 84 /* not implemented */
  87. #define __NR_osf_table 85 /* not implemented */
  88. #define __NR_osf_getitimer 86
  89. #define __NR_gethostname 87
  90. #define __NR_sethostname 88
  91. #define __NR_getdtablesize 89
  92. #define __NR_dup2 90
  93. #define __NR_fstat 91
  94. #define __NR_fcntl 92
  95. #define __NR_osf_select 93
  96. #define __NR_poll 94
  97. #define __NR_fsync 95
  98. #define __NR_setpriority 96
  99. #define __NR_socket 97
  100. #define __NR_connect 98
  101. #define __NR_accept 99
  102. #define __NR_getpriority 100
  103. #define __NR_send 101
  104. #define __NR_recv 102
  105. #define __NR_sigreturn 103
  106. #define __NR_bind 104
  107. #define __NR_setsockopt 105
  108. #define __NR_listen 106
  109. #define __NR_osf_plock 107 /* not implemented */
  110. #define __NR_osf_old_sigvec 108 /* not implemented */
  111. #define __NR_osf_old_sigblock 109 /* not implemented */
  112. #define __NR_osf_old_sigsetmask 110 /* not implemented */
  113. #define __NR_sigsuspend 111
  114. #define __NR_osf_sigstack 112
  115. #define __NR_recvmsg 113
  116. #define __NR_sendmsg 114
  117. #define __NR_osf_old_vtrace 115 /* not implemented */
  118. #define __NR_osf_gettimeofday 116
  119. #define __NR_osf_getrusage 117
  120. #define __NR_getsockopt 118
  121. #define __NR_readv 120
  122. #define __NR_writev 121
  123. #define __NR_osf_settimeofday 122
  124. #define __NR_fchown 123
  125. #define __NR_fchmod 124
  126. #define __NR_recvfrom 125
  127. #define __NR_setreuid 126
  128. #define __NR_setregid 127
  129. #define __NR_rename 128
  130. #define __NR_truncate 129
  131. #define __NR_ftruncate 130
  132. #define __NR_flock 131
  133. #define __NR_setgid 132
  134. #define __NR_sendto 133
  135. #define __NR_shutdown 134
  136. #define __NR_socketpair 135
  137. #define __NR_mkdir 136
  138. #define __NR_rmdir 137
  139. #define __NR_osf_utimes 138
  140. #define __NR_osf_old_sigreturn 139 /* not implemented */
  141. #define __NR_osf_adjtime 140 /* not implemented */
  142. #define __NR_getpeername 141
  143. #define __NR_osf_gethostid 142 /* not implemented */
  144. #define __NR_osf_sethostid 143 /* not implemented */
  145. #define __NR_getrlimit 144
  146. #define __NR_setrlimit 145
  147. #define __NR_osf_old_killpg 146 /* not implemented */
  148. #define __NR_setsid 147
  149. #define __NR_quotactl 148
  150. #define __NR_osf_oldquota 149 /* not implemented */
  151. #define __NR_getsockname 150
  152. #define __NR_osf_pid_block 153 /* not implemented */
  153. #define __NR_osf_pid_unblock 154 /* not implemented */
  154. #define __NR_sigaction 156
  155. #define __NR_osf_sigwaitprim 157 /* not implemented */
  156. #define __NR_osf_nfssvc 158 /* not implemented */
  157. #define __NR_osf_getdirentries 159
  158. #define __NR_osf_statfs 160
  159. #define __NR_osf_fstatfs 161
  160. #define __NR_osf_asynch_daemon 163 /* not implemented */
  161. #define __NR_osf_getfh 164 /* not implemented */
  162. #define __NR_osf_getdomainname 165
  163. #define __NR_setdomainname 166
  164. #define __NR_osf_exportfs 169 /* not implemented */
  165. #define __NR_osf_alt_plock 181 /* not implemented */
  166. #define __NR_osf_getmnt 184 /* not implemented */
  167. #define __NR_osf_alt_sigpending 187 /* not implemented */
  168. #define __NR_osf_alt_setsid 188 /* not implemented */
  169. #define __NR_osf_swapon 199
  170. #define __NR_msgctl 200
  171. #define __NR_msgget 201
  172. #define __NR_msgrcv 202
  173. #define __NR_msgsnd 203
  174. #define __NR_semctl 204
  175. #define __NR_semget 205
  176. #define __NR_semop 206
  177. #define __NR_osf_utsname 207
  178. #define __NR_lchown 208
  179. #define __NR_osf_shmat 209
  180. #define __NR_shmctl 210
  181. #define __NR_shmdt 211
  182. #define __NR_shmget 212
  183. #define __NR_osf_mvalid 213 /* not implemented */
  184. #define __NR_osf_getaddressconf 214 /* not implemented */
  185. #define __NR_osf_msleep 215 /* not implemented */
  186. #define __NR_osf_mwakeup 216 /* not implemented */
  187. #define __NR_msync 217
  188. #define __NR_osf_signal 218 /* not implemented */
  189. #define __NR_osf_utc_gettime 219 /* not implemented */
  190. #define __NR_osf_utc_adjtime 220 /* not implemented */
  191. #define __NR_osf_security 222 /* not implemented */
  192. #define __NR_osf_kloadcall 223 /* not implemented */
  193. #define __NR_osf_stat 224
  194. #define __NR_osf_lstat 225
  195. #define __NR_osf_fstat 226
  196. #define __NR_osf_statfs64 227
  197. #define __NR_osf_fstatfs64 228
  198. #define __NR_getpgid 233
  199. #define __NR_getsid 234
  200. #define __NR_sigaltstack 235
  201. #define __NR_osf_waitid 236 /* not implemented */
  202. #define __NR_osf_priocntlset 237 /* not implemented */
  203. #define __NR_osf_sigsendset 238 /* not implemented */
  204. #define __NR_osf_set_speculative 239 /* not implemented */
  205. #define __NR_osf_msfs_syscall 240 /* not implemented */
  206. #define __NR_osf_sysinfo 241
  207. #define __NR_osf_uadmin 242 /* not implemented */
  208. #define __NR_osf_fuser 243 /* not implemented */
  209. #define __NR_osf_proplist_syscall 244
  210. #define __NR_osf_ntp_adjtime 245 /* not implemented */
  211. #define __NR_osf_ntp_gettime 246 /* not implemented */
  212. #define __NR_osf_pathconf 247 /* not implemented */
  213. #define __NR_osf_fpathconf 248 /* not implemented */
  214. #define __NR_osf_uswitch 250 /* not implemented */
  215. #define __NR_osf_usleep_thread 251
  216. #define __NR_osf_audcntl 252 /* not implemented */
  217. #define __NR_osf_audgen 253 /* not implemented */
  218. #define __NR_sysfs 254
  219. #define __NR_osf_subsys_info 255 /* not implemented */
  220. #define __NR_osf_getsysinfo 256
  221. #define __NR_osf_setsysinfo 257
  222. #define __NR_osf_afs_syscall 258 /* not implemented */
  223. #define __NR_osf_swapctl 259 /* not implemented */
  224. #define __NR_osf_memcntl 260 /* not implemented */
  225. #define __NR_osf_fdatasync 261 /* not implemented */
  226. /*
  227. * Ignore legacy syscalls that we don't use.
  228. */
  229. #define __IGNORE_alarm
  230. #define __IGNORE_creat
  231. #define __IGNORE_getegid
  232. #define __IGNORE_geteuid
  233. #define __IGNORE_getgid
  234. #define __IGNORE_getpid
  235. #define __IGNORE_getppid
  236. #define __IGNORE_getuid
  237. #define __IGNORE_pause
  238. #define __IGNORE_time
  239. #define __IGNORE_utime
  240. #define __IGNORE_umount2
  241. /*
  242. * Linux-specific system calls begin at 300
  243. */
  244. #define __NR_bdflush 300
  245. #define __NR_sethae 301
  246. #define __NR_mount 302
  247. #define __NR_old_adjtimex 303
  248. #define __NR_swapoff 304
  249. #define __NR_getdents 305
  250. #define __NR_create_module 306
  251. #define __NR_init_module 307
  252. #define __NR_delete_module 308
  253. #define __NR_get_kernel_syms 309
  254. #define __NR_syslog 310
  255. #define __NR_reboot 311
  256. #define __NR_clone 312
  257. #define __NR_uselib 313
  258. #define __NR_mlock 314
  259. #define __NR_munlock 315
  260. #define __NR_mlockall 316
  261. #define __NR_munlockall 317
  262. #define __NR_sysinfo 318
  263. #define __NR__sysctl 319
  264. /* 320 was sys_idle. */
  265. #define __NR_oldumount 321
  266. #define __NR_swapon 322
  267. #define __NR_times 323
  268. #define __NR_personality 324
  269. #define __NR_setfsuid 325
  270. #define __NR_setfsgid 326
  271. #define __NR_ustat 327
  272. #define __NR_statfs 328
  273. #define __NR_fstatfs 329
  274. #define __NR_sched_setparam 330
  275. #define __NR_sched_getparam 331
  276. #define __NR_sched_setscheduler 332
  277. #define __NR_sched_getscheduler 333
  278. #define __NR_sched_yield 334
  279. #define __NR_sched_get_priority_max 335
  280. #define __NR_sched_get_priority_min 336
  281. #define __NR_sched_rr_get_interval 337
  282. #define __NR_afs_syscall 338
  283. #define __NR_uname 339
  284. #define __NR_nanosleep 340
  285. #define __NR_mremap 341
  286. #define __NR_nfsservctl 342
  287. #define __NR_setresuid 343
  288. #define __NR_getresuid 344
  289. #define __NR_pciconfig_read 345
  290. #define __NR_pciconfig_write 346
  291. #define __NR_query_module 347
  292. #define __NR_prctl 348
  293. #define __NR_pread64 349
  294. #define __NR_pwrite64 350
  295. #define __NR_rt_sigreturn 351
  296. #define __NR_rt_sigaction 352
  297. #define __NR_rt_sigprocmask 353
  298. #define __NR_rt_sigpending 354
  299. #define __NR_rt_sigtimedwait 355
  300. #define __NR_rt_sigqueueinfo 356
  301. #define __NR_rt_sigsuspend 357
  302. #define __NR_select 358
  303. #define __NR_gettimeofday 359
  304. #define __NR_settimeofday 360
  305. #define __NR_getitimer 361
  306. #define __NR_setitimer 362
  307. #define __NR_utimes 363
  308. #define __NR_getrusage 364
  309. #define __NR_wait4 365
  310. #define __NR_adjtimex 366
  311. #define __NR_getcwd 367
  312. #define __NR_capget 368
  313. #define __NR_capset 369
  314. #define __NR_sendfile 370
  315. #define __NR_setresgid 371
  316. #define __NR_getresgid 372
  317. #define __NR_dipc 373
  318. #define __NR_pivot_root 374
  319. #define __NR_mincore 375
  320. #define __NR_pciconfig_iobase 376
  321. #define __NR_getdents64 377
  322. #define __NR_gettid 378
  323. #define __NR_readahead 379
  324. /* 380 is unused */
  325. #define __NR_tkill 381
  326. #define __NR_setxattr 382
  327. #define __NR_lsetxattr 383
  328. #define __NR_fsetxattr 384
  329. #define __NR_getxattr 385
  330. #define __NR_lgetxattr 386
  331. #define __NR_fgetxattr 387
  332. #define __NR_listxattr 388
  333. #define __NR_llistxattr 389
  334. #define __NR_flistxattr 390
  335. #define __NR_removexattr 391
  336. #define __NR_lremovexattr 392
  337. #define __NR_fremovexattr 393
  338. #define __NR_futex 394
  339. #define __NR_sched_setaffinity 395
  340. #define __NR_sched_getaffinity 396
  341. #define __NR_tuxcall 397
  342. #define __NR_io_setup 398
  343. #define __NR_io_destroy 399
  344. #define __NR_io_getevents 400
  345. #define __NR_io_submit 401
  346. #define __NR_io_cancel 402
  347. #define __NR_exit_group 405
  348. #define __NR_lookup_dcookie 406
  349. #define __NR_epoll_create 407
  350. #define __NR_epoll_ctl 408
  351. #define __NR_epoll_wait 409
  352. /* Feb 2007: These three sys_epoll defines shouldn't be here but culling
  353. * them would break userspace apps ... we'll kill them off in 2010 :) */
  354. #define __NR_sys_epoll_create __NR_epoll_create
  355. #define __NR_sys_epoll_ctl __NR_epoll_ctl
  356. #define __NR_sys_epoll_wait __NR_epoll_wait
  357. #define __NR_remap_file_pages 410
  358. #define __NR_set_tid_address 411
  359. #define __NR_restart_syscall 412
  360. #define __NR_fadvise64 413
  361. #define __NR_timer_create 414
  362. #define __NR_timer_settime 415
  363. #define __NR_timer_gettime 416
  364. #define __NR_timer_getoverrun 417
  365. #define __NR_timer_delete 418
  366. #define __NR_clock_settime 419
  367. #define __NR_clock_gettime 420
  368. #define __NR_clock_getres 421
  369. #define __NR_clock_nanosleep 422
  370. #define __NR_semtimedop 423
  371. #define __NR_tgkill 424
  372. #define __NR_stat64 425
  373. #define __NR_lstat64 426
  374. #define __NR_fstat64 427
  375. #define __NR_vserver 428
  376. #define __NR_mbind 429
  377. #define __NR_get_mempolicy 430
  378. #define __NR_set_mempolicy 431
  379. #define __NR_mq_open 432
  380. #define __NR_mq_unlink 433
  381. #define __NR_mq_timedsend 434
  382. #define __NR_mq_timedreceive 435
  383. #define __NR_mq_notify 436
  384. #define __NR_mq_getsetattr 437
  385. #define __NR_waitid 438
  386. #define __NR_add_key 439
  387. #define __NR_request_key 440
  388. #define __NR_keyctl 441
  389. #define __NR_ioprio_set 442
  390. #define __NR_ioprio_get 443
  391. #define __NR_inotify_init 444
  392. #define __NR_inotify_add_watch 445
  393. #define __NR_inotify_rm_watch 446
  394. #define __NR_fdatasync 447
  395. #define __NR_kexec_load 448
  396. #define __NR_migrate_pages 449
  397. #define __NR_openat 450
  398. #define __NR_mkdirat 451
  399. #define __NR_mknodat 452
  400. #define __NR_fchownat 453
  401. #define __NR_futimesat 454
  402. #define __NR_fstatat64 455
  403. #define __NR_unlinkat 456
  404. #define __NR_renameat 457
  405. #define __NR_linkat 458
  406. #define __NR_symlinkat 459
  407. #define __NR_readlinkat 460
  408. #define __NR_fchmodat 461
  409. #define __NR_faccessat 462
  410. #define __NR_pselect6 463
  411. #define __NR_ppoll 464
  412. #define __NR_unshare 465
  413. #define __NR_set_robust_list 466
  414. #define __NR_get_robust_list 467
  415. #define __NR_splice 468
  416. #define __NR_sync_file_range 469
  417. #define __NR_tee 470
  418. #define __NR_vmsplice 471
  419. #define __NR_move_pages 472
  420. #define __NR_getcpu 473
  421. #define __NR_epoll_pwait 474
  422. #define __NR_utimensat 475
  423. #define __NR_signalfd 476
  424. #define __NR_timerfd 477
  425. #define __NR_eventfd 478
  426. #define __NR_recvmmsg 479
  427. #define __NR_fallocate 480
  428. #define __NR_timerfd_create 481
  429. #define __NR_timerfd_settime 482
  430. #define __NR_timerfd_gettime 483
  431. #define __NR_signalfd4 484
  432. #define __NR_eventfd2 485
  433. #define __NR_epoll_create1 486
  434. #define __NR_dup3 487
  435. #define __NR_pipe2 488
  436. #define __NR_inotify_init1 489
  437. #define __NR_preadv 490
  438. #define __NR_pwritev 491
  439. #define __NR_rt_tgsigqueueinfo 492
  440. #define __NR_perf_event_open 493
  441. #define __NR_fanotify_init 494
  442. #define __NR_fanotify_mark 495
  443. #define __NR_prlimit64 496
  444. #define __NR_name_to_handle_at 497
  445. #define __NR_open_by_handle_at 498
  446. #define __NR_clock_adjtime 499
  447. #define __NR_syncfs 500
  448. #define __NR_setns 501
  449. #define __NR_accept4 502
  450. #define __NR_sendmmsg 503
  451. #define __NR_process_vm_readv 504
  452. #define __NR_process_vm_writev 505
  453. #define __NR_kcmp 506
  454. #define __NR_finit_module 507
  455. #define __NR_sched_setattr 508
  456. #define __NR_sched_getattr 509
  457. #define __NR_renameat2 510
  458. #define __NR_getrandom 511
  459. #define __NR_memfd_create 512
  460. #define __NR_execveat 513
  461. #endif /* _UAPI_ALPHA_UNISTD_H */