unistd.h 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926
  1. #if !defined(_ASM_GENERIC_UNISTD_H) || defined(__SYSCALL)
  2. #define _ASM_GENERIC_UNISTD_H
  3. #include <asm/bitsperlong.h>
  4. /*
  5. * This file contains the system call numbers, based on the
  6. * layout of the x86-64 architecture, which embeds the
  7. * pointer to the syscall in the table.
  8. *
  9. * As a basic principle, no duplication of functionality
  10. * should be added, e.g. we don't use lseek when llseek
  11. * is present. New architectures should use this file
  12. * and implement the less feature-full calls in user space.
  13. */
  14. #ifndef __SYSCALL
  15. #define __SYSCALL(x, y)
  16. #endif
  17. #if __BITS_PER_LONG == 32 || defined(__SYSCALL_COMPAT)
  18. #define __SC_3264(_nr, _32, _64) __SYSCALL(_nr, _32)
  19. #else
  20. #define __SC_3264(_nr, _32, _64) __SYSCALL(_nr, _64)
  21. #endif
  22. #ifdef __SYSCALL_COMPAT
  23. #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _comp)
  24. #define __SC_COMP_3264(_nr, _32, _64, _comp) __SYSCALL(_nr, _comp)
  25. #else
  26. #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
  27. #define __SC_COMP_3264(_nr, _32, _64, _comp) __SC_3264(_nr, _32, _64)
  28. #endif
  29. #define __NR_io_setup 0
  30. __SC_COMP(__NR_io_setup, sys_io_setup, compat_sys_io_setup)
  31. #define __NR_io_destroy 1
  32. __SYSCALL(__NR_io_destroy, sys_io_destroy)
  33. #define __NR_io_submit 2
  34. __SC_COMP(__NR_io_submit, sys_io_submit, compat_sys_io_submit)
  35. #define __NR_io_cancel 3
  36. __SYSCALL(__NR_io_cancel, sys_io_cancel)
  37. #define __NR_io_getevents 4
  38. __SC_COMP(__NR_io_getevents, sys_io_getevents, compat_sys_io_getevents)
  39. /* fs/xattr.c */
  40. #define __NR_setxattr 5
  41. __SYSCALL(__NR_setxattr, sys_setxattr)
  42. #define __NR_lsetxattr 6
  43. __SYSCALL(__NR_lsetxattr, sys_lsetxattr)
  44. #define __NR_fsetxattr 7
  45. __SYSCALL(__NR_fsetxattr, sys_fsetxattr)
  46. #define __NR_getxattr 8
  47. __SYSCALL(__NR_getxattr, sys_getxattr)
  48. #define __NR_lgetxattr 9
  49. __SYSCALL(__NR_lgetxattr, sys_lgetxattr)
  50. #define __NR_fgetxattr 10
  51. __SYSCALL(__NR_fgetxattr, sys_fgetxattr)
  52. #define __NR_listxattr 11
  53. __SYSCALL(__NR_listxattr, sys_listxattr)
  54. #define __NR_llistxattr 12
  55. __SYSCALL(__NR_llistxattr, sys_llistxattr)
  56. #define __NR_flistxattr 13
  57. __SYSCALL(__NR_flistxattr, sys_flistxattr)
  58. #define __NR_removexattr 14
  59. __SYSCALL(__NR_removexattr, sys_removexattr)
  60. #define __NR_lremovexattr 15
  61. __SYSCALL(__NR_lremovexattr, sys_lremovexattr)
  62. #define __NR_fremovexattr 16
  63. __SYSCALL(__NR_fremovexattr, sys_fremovexattr)
  64. /* fs/dcache.c */
  65. #define __NR_getcwd 17
  66. __SYSCALL(__NR_getcwd, sys_getcwd)
  67. /* fs/cookies.c */
  68. #define __NR_lookup_dcookie 18
  69. __SC_COMP(__NR_lookup_dcookie, sys_lookup_dcookie, compat_sys_lookup_dcookie)
  70. /* fs/eventfd.c */
  71. #define __NR_eventfd2 19
  72. __SYSCALL(__NR_eventfd2, sys_eventfd2)
  73. /* fs/eventpoll.c */
  74. #define __NR_epoll_create1 20
  75. __SYSCALL(__NR_epoll_create1, sys_epoll_create1)
  76. #define __NR_epoll_ctl 21
  77. __SYSCALL(__NR_epoll_ctl, sys_epoll_ctl)
  78. #define __NR_epoll_pwait 22
  79. __SC_COMP(__NR_epoll_pwait, sys_epoll_pwait, compat_sys_epoll_pwait)
  80. /* fs/fcntl.c */
  81. #define __NR_dup 23
  82. __SYSCALL(__NR_dup, sys_dup)
  83. #define __NR_dup3 24
  84. __SYSCALL(__NR_dup3, sys_dup3)
  85. #define __NR3264_fcntl 25
  86. __SC_COMP_3264(__NR3264_fcntl, sys_fcntl64, sys_fcntl, compat_sys_fcntl64)
  87. /* fs/inotify_user.c */
  88. #define __NR_inotify_init1 26
  89. __SYSCALL(__NR_inotify_init1, sys_inotify_init1)
  90. #define __NR_inotify_add_watch 27
  91. __SYSCALL(__NR_inotify_add_watch, sys_inotify_add_watch)
  92. #define __NR_inotify_rm_watch 28
  93. __SYSCALL(__NR_inotify_rm_watch, sys_inotify_rm_watch)
  94. /* fs/ioctl.c */
  95. #define __NR_ioctl 29
  96. __SC_COMP(__NR_ioctl, sys_ioctl, compat_sys_ioctl)
  97. /* fs/ioprio.c */
  98. #define __NR_ioprio_set 30
  99. __SYSCALL(__NR_ioprio_set, sys_ioprio_set)
  100. #define __NR_ioprio_get 31
  101. __SYSCALL(__NR_ioprio_get, sys_ioprio_get)
  102. /* fs/locks.c */
  103. #define __NR_flock 32
  104. __SYSCALL(__NR_flock, sys_flock)
  105. /* fs/namei.c */
  106. #define __NR_mknodat 33
  107. __SYSCALL(__NR_mknodat, sys_mknodat)
  108. #define __NR_mkdirat 34
  109. __SYSCALL(__NR_mkdirat, sys_mkdirat)
  110. #define __NR_unlinkat 35
  111. __SYSCALL(__NR_unlinkat, sys_unlinkat)
  112. #define __NR_symlinkat 36
  113. __SYSCALL(__NR_symlinkat, sys_symlinkat)
  114. #define __NR_linkat 37
  115. __SYSCALL(__NR_linkat, sys_linkat)
  116. #define __NR_renameat 38
  117. __SYSCALL(__NR_renameat, sys_renameat)
  118. /* fs/namespace.c */
  119. #define __NR_umount2 39
  120. __SYSCALL(__NR_umount2, sys_umount)
  121. #define __NR_mount 40
  122. __SC_COMP(__NR_mount, sys_mount, compat_sys_mount)
  123. #define __NR_pivot_root 41
  124. __SYSCALL(__NR_pivot_root, sys_pivot_root)
  125. /* fs/nfsctl.c */
  126. #define __NR_nfsservctl 42
  127. __SC_COMP(__NR_nfsservctl, sys_nfsservctl, compat_sys_nfsservctl)
  128. /* fs/open.c */
  129. #define __NR3264_statfs 43
  130. __SC_COMP_3264(__NR3264_statfs, sys_statfs64, sys_statfs, \
  131. compat_sys_statfs64)
  132. #define __NR3264_fstatfs 44
  133. __SC_COMP_3264(__NR3264_fstatfs, sys_fstatfs64, sys_fstatfs, \
  134. compat_sys_fstatfs64)
  135. #define __NR3264_truncate 45
  136. __SC_COMP_3264(__NR3264_truncate, sys_truncate64, sys_truncate, \
  137. compat_sys_truncate64)
  138. #define __NR3264_ftruncate 46
  139. __SC_COMP_3264(__NR3264_ftruncate, sys_ftruncate64, sys_ftruncate, \
  140. compat_sys_ftruncate64)
  141. #define __NR_fallocate 47
  142. __SC_COMP(__NR_fallocate, sys_fallocate, compat_sys_fallocate)
  143. #define __NR_faccessat 48
  144. __SYSCALL(__NR_faccessat, sys_faccessat)
  145. #define __NR_chdir 49
  146. __SYSCALL(__NR_chdir, sys_chdir)
  147. #define __NR_fchdir 50
  148. __SYSCALL(__NR_fchdir, sys_fchdir)
  149. #define __NR_chroot 51
  150. __SYSCALL(__NR_chroot, sys_chroot)
  151. #define __NR_fchmod 52
  152. __SYSCALL(__NR_fchmod, sys_fchmod)
  153. #define __NR_fchmodat 53
  154. __SYSCALL(__NR_fchmodat, sys_fchmodat)
  155. #define __NR_fchownat 54
  156. __SYSCALL(__NR_fchownat, sys_fchownat)
  157. #define __NR_fchown 55
  158. __SYSCALL(__NR_fchown, sys_fchown)
  159. #define __NR_openat 56
  160. __SC_COMP(__NR_openat, sys_openat, compat_sys_openat)
  161. #define __NR_close 57
  162. __SYSCALL(__NR_close, sys_close)
  163. #define __NR_vhangup 58
  164. __SYSCALL(__NR_vhangup, sys_vhangup)
  165. /* fs/pipe.c */
  166. #define __NR_pipe2 59
  167. __SYSCALL(__NR_pipe2, sys_pipe2)
  168. /* fs/quota.c */
  169. #define __NR_quotactl 60
  170. __SYSCALL(__NR_quotactl, sys_quotactl)
  171. /* fs/readdir.c */
  172. #define __NR_getdents64 61
  173. __SC_COMP(__NR_getdents64, sys_getdents64, compat_sys_getdents64)
  174. /* fs/read_write.c */
  175. #define __NR3264_lseek 62
  176. __SC_3264(__NR3264_lseek, sys_llseek, sys_lseek)
  177. #define __NR_read 63
  178. __SYSCALL(__NR_read, sys_read)
  179. #define __NR_write 64
  180. __SYSCALL(__NR_write, sys_write)
  181. #define __NR_readv 65
  182. __SC_COMP(__NR_readv, sys_readv, compat_sys_readv)
  183. #define __NR_writev 66
  184. __SC_COMP(__NR_writev, sys_writev, compat_sys_writev)
  185. #define __NR_pread64 67
  186. __SC_COMP(__NR_pread64, sys_pread64, compat_sys_pread64)
  187. #define __NR_pwrite64 68
  188. __SC_COMP(__NR_pwrite64, sys_pwrite64, compat_sys_pwrite64)
  189. #define __NR_preadv 69
  190. __SC_COMP(__NR_preadv, sys_preadv, compat_sys_preadv)
  191. #define __NR_pwritev 70
  192. __SC_COMP(__NR_pwritev, sys_pwritev, compat_sys_pwritev)
  193. /* fs/sendfile.c */
  194. #define __NR3264_sendfile 71
  195. __SC_3264(__NR3264_sendfile, sys_sendfile64, sys_sendfile)
  196. /* fs/select.c */
  197. #define __NR_pselect6 72
  198. __SC_COMP(__NR_pselect6, sys_pselect6, compat_sys_pselect6)
  199. #define __NR_ppoll 73
  200. __SC_COMP(__NR_ppoll, sys_ppoll, compat_sys_ppoll)
  201. /* fs/signalfd.c */
  202. #define __NR_signalfd4 74
  203. __SC_COMP(__NR_signalfd4, sys_signalfd4, compat_sys_signalfd4)
  204. /* fs/splice.c */
  205. #define __NR_vmsplice 75
  206. __SC_COMP(__NR_vmsplice, sys_vmsplice, compat_sys_vmsplice)
  207. #define __NR_splice 76
  208. __SYSCALL(__NR_splice, sys_splice)
  209. #define __NR_tee 77
  210. __SYSCALL(__NR_tee, sys_tee)
  211. /* fs/stat.c */
  212. #define __NR_readlinkat 78
  213. __SYSCALL(__NR_readlinkat, sys_readlinkat)
  214. #define __NR3264_fstatat 79
  215. __SC_3264(__NR3264_fstatat, sys_fstatat64, sys_newfstatat)
  216. #define __NR3264_fstat 80
  217. __SC_3264(__NR3264_fstat, sys_fstat64, sys_newfstat)
  218. /* fs/sync.c */
  219. #define __NR_sync 81
  220. __SYSCALL(__NR_sync, sys_sync)
  221. #define __NR_fsync 82
  222. __SYSCALL(__NR_fsync, sys_fsync)
  223. #define __NR_fdatasync 83
  224. __SYSCALL(__NR_fdatasync, sys_fdatasync)
  225. #ifdef __ARCH_WANT_SYNC_FILE_RANGE2
  226. #define __NR_sync_file_range2 84
  227. __SC_COMP(__NR_sync_file_range2, sys_sync_file_range2, \
  228. compat_sys_sync_file_range2)
  229. #else
  230. #define __NR_sync_file_range 84
  231. __SC_COMP(__NR_sync_file_range, sys_sync_file_range, \
  232. compat_sys_sync_file_range)
  233. #endif
  234. /* fs/timerfd.c */
  235. #define __NR_timerfd_create 85
  236. __SYSCALL(__NR_timerfd_create, sys_timerfd_create)
  237. #define __NR_timerfd_settime 86
  238. __SC_COMP(__NR_timerfd_settime, sys_timerfd_settime, \
  239. compat_sys_timerfd_settime)
  240. #define __NR_timerfd_gettime 87
  241. __SC_COMP(__NR_timerfd_gettime, sys_timerfd_gettime, \
  242. compat_sys_timerfd_gettime)
  243. /* fs/utimes.c */
  244. #define __NR_utimensat 88
  245. __SC_COMP(__NR_utimensat, sys_utimensat, compat_sys_utimensat)
  246. /* kernel/acct.c */
  247. #define __NR_acct 89
  248. __SYSCALL(__NR_acct, sys_acct)
  249. /* kernel/capability.c */
  250. #define __NR_capget 90
  251. __SYSCALL(__NR_capget, sys_capget)
  252. #define __NR_capset 91
  253. __SYSCALL(__NR_capset, sys_capset)
  254. /* kernel/exec_domain.c */
  255. #define __NR_personality 92
  256. __SYSCALL(__NR_personality, sys_personality)
  257. /* kernel/exit.c */
  258. #define __NR_exit 93
  259. __SYSCALL(__NR_exit, sys_exit)
  260. #define __NR_exit_group 94
  261. __SYSCALL(__NR_exit_group, sys_exit_group)
  262. #define __NR_waitid 95
  263. __SC_COMP(__NR_waitid, sys_waitid, compat_sys_waitid)
  264. /* kernel/fork.c */
  265. #define __NR_set_tid_address 96
  266. __SYSCALL(__NR_set_tid_address, sys_set_tid_address)
  267. #define __NR_unshare 97
  268. __SYSCALL(__NR_unshare, sys_unshare)
  269. /* kernel/futex.c */
  270. #define __NR_futex 98
  271. __SC_COMP(__NR_futex, sys_futex, compat_sys_futex)
  272. #define __NR_set_robust_list 99
  273. __SC_COMP(__NR_set_robust_list, sys_set_robust_list, \
  274. compat_sys_set_robust_list)
  275. #define __NR_get_robust_list 100
  276. __SC_COMP(__NR_get_robust_list, sys_get_robust_list, \
  277. compat_sys_get_robust_list)
  278. /* kernel/hrtimer.c */
  279. #define __NR_nanosleep 101
  280. __SC_COMP(__NR_nanosleep, sys_nanosleep, compat_sys_nanosleep)
  281. /* kernel/itimer.c */
  282. #define __NR_getitimer 102
  283. __SC_COMP(__NR_getitimer, sys_getitimer, compat_sys_getitimer)
  284. #define __NR_setitimer 103
  285. __SC_COMP(__NR_setitimer, sys_setitimer, compat_sys_setitimer)
  286. /* kernel/kexec.c */
  287. #define __NR_kexec_load 104
  288. __SC_COMP(__NR_kexec_load, sys_kexec_load, compat_sys_kexec_load)
  289. /* kernel/module.c */
  290. #define __NR_init_module 105
  291. __SYSCALL(__NR_init_module, sys_init_module)
  292. #define __NR_delete_module 106
  293. __SYSCALL(__NR_delete_module, sys_delete_module)
  294. /* kernel/posix-timers.c */
  295. #define __NR_timer_create 107
  296. __SC_COMP(__NR_timer_create, sys_timer_create, compat_sys_timer_create)
  297. #define __NR_timer_gettime 108
  298. __SC_COMP(__NR_timer_gettime, sys_timer_gettime, compat_sys_timer_gettime)
  299. #define __NR_timer_getoverrun 109
  300. __SYSCALL(__NR_timer_getoverrun, sys_timer_getoverrun)
  301. #define __NR_timer_settime 110
  302. __SC_COMP(__NR_timer_settime, sys_timer_settime, compat_sys_timer_settime)
  303. #define __NR_timer_delete 111
  304. __SYSCALL(__NR_timer_delete, sys_timer_delete)
  305. #define __NR_clock_settime 112
  306. __SC_COMP(__NR_clock_settime, sys_clock_settime, compat_sys_clock_settime)
  307. #define __NR_clock_gettime 113
  308. __SC_COMP(__NR_clock_gettime, sys_clock_gettime, compat_sys_clock_gettime)
  309. #define __NR_clock_getres 114
  310. __SC_COMP(__NR_clock_getres, sys_clock_getres, compat_sys_clock_getres)
  311. #define __NR_clock_nanosleep 115
  312. __SC_COMP(__NR_clock_nanosleep, sys_clock_nanosleep, \
  313. compat_sys_clock_nanosleep)
  314. /* kernel/printk.c */
  315. #define __NR_syslog 116
  316. __SYSCALL(__NR_syslog, sys_syslog)
  317. /* kernel/ptrace.c */
  318. #define __NR_ptrace 117
  319. __SYSCALL(__NR_ptrace, sys_ptrace)
  320. /* kernel/sched.c */
  321. #define __NR_sched_setparam 118
  322. __SYSCALL(__NR_sched_setparam, sys_sched_setparam)
  323. #define __NR_sched_setscheduler 119
  324. __SYSCALL(__NR_sched_setscheduler, sys_sched_setscheduler)
  325. #define __NR_sched_getscheduler 120
  326. __SYSCALL(__NR_sched_getscheduler, sys_sched_getscheduler)
  327. #define __NR_sched_getparam 121
  328. __SYSCALL(__NR_sched_getparam, sys_sched_getparam)
  329. #define __NR_sched_setaffinity 122
  330. __SC_COMP(__NR_sched_setaffinity, sys_sched_setaffinity, \
  331. compat_sys_sched_setaffinity)
  332. #define __NR_sched_getaffinity 123
  333. __SC_COMP(__NR_sched_getaffinity, sys_sched_getaffinity, \
  334. compat_sys_sched_getaffinity)
  335. #define __NR_sched_yield 124
  336. __SYSCALL(__NR_sched_yield, sys_sched_yield)
  337. #define __NR_sched_get_priority_max 125
  338. __SYSCALL(__NR_sched_get_priority_max, sys_sched_get_priority_max)
  339. #define __NR_sched_get_priority_min 126
  340. __SYSCALL(__NR_sched_get_priority_min, sys_sched_get_priority_min)
  341. #define __NR_sched_rr_get_interval 127
  342. __SC_COMP(__NR_sched_rr_get_interval, sys_sched_rr_get_interval, \
  343. compat_sys_sched_rr_get_interval)
  344. /* kernel/signal.c */
  345. #define __NR_restart_syscall 128
  346. __SYSCALL(__NR_restart_syscall, sys_restart_syscall)
  347. #define __NR_kill 129
  348. __SYSCALL(__NR_kill, sys_kill)
  349. #define __NR_tkill 130
  350. __SYSCALL(__NR_tkill, sys_tkill)
  351. #define __NR_tgkill 131
  352. __SYSCALL(__NR_tgkill, sys_tgkill)
  353. #define __NR_sigaltstack 132
  354. __SC_COMP(__NR_sigaltstack, sys_sigaltstack, compat_sys_sigaltstack)
  355. #define __NR_rt_sigsuspend 133
  356. __SC_COMP(__NR_rt_sigsuspend, sys_rt_sigsuspend, compat_sys_rt_sigsuspend)
  357. #define __NR_rt_sigaction 134
  358. __SC_COMP(__NR_rt_sigaction, sys_rt_sigaction, compat_sys_rt_sigaction)
  359. #define __NR_rt_sigprocmask 135
  360. __SYSCALL(__NR_rt_sigprocmask, sys_rt_sigprocmask)
  361. #define __NR_rt_sigpending 136
  362. __SYSCALL(__NR_rt_sigpending, sys_rt_sigpending)
  363. #define __NR_rt_sigtimedwait 137
  364. __SC_COMP(__NR_rt_sigtimedwait, sys_rt_sigtimedwait, \
  365. compat_sys_rt_sigtimedwait)
  366. #define __NR_rt_sigqueueinfo 138
  367. __SC_COMP(__NR_rt_sigqueueinfo, sys_rt_sigqueueinfo, \
  368. compat_sys_rt_sigqueueinfo)
  369. #define __NR_rt_sigreturn 139
  370. __SC_COMP(__NR_rt_sigreturn, sys_rt_sigreturn, compat_sys_rt_sigreturn)
  371. /* kernel/sys.c */
  372. #define __NR_setpriority 140
  373. __SYSCALL(__NR_setpriority, sys_setpriority)
  374. #define __NR_getpriority 141
  375. __SYSCALL(__NR_getpriority, sys_getpriority)
  376. #define __NR_reboot 142
  377. __SYSCALL(__NR_reboot, sys_reboot)
  378. #define __NR_setregid 143
  379. __SYSCALL(__NR_setregid, sys_setregid)
  380. #define __NR_setgid 144
  381. __SYSCALL(__NR_setgid, sys_setgid)
  382. #define __NR_setreuid 145
  383. __SYSCALL(__NR_setreuid, sys_setreuid)
  384. #define __NR_setuid 146
  385. __SYSCALL(__NR_setuid, sys_setuid)
  386. #define __NR_setresuid 147
  387. __SYSCALL(__NR_setresuid, sys_setresuid)
  388. #define __NR_getresuid 148
  389. __SYSCALL(__NR_getresuid, sys_getresuid)
  390. #define __NR_setresgid 149
  391. __SYSCALL(__NR_setresgid, sys_setresgid)
  392. #define __NR_getresgid 150
  393. __SYSCALL(__NR_getresgid, sys_getresgid)
  394. #define __NR_setfsuid 151
  395. __SYSCALL(__NR_setfsuid, sys_setfsuid)
  396. #define __NR_setfsgid 152
  397. __SYSCALL(__NR_setfsgid, sys_setfsgid)
  398. #define __NR_times 153
  399. __SC_COMP(__NR_times, sys_times, compat_sys_times)
  400. #define __NR_setpgid 154
  401. __SYSCALL(__NR_setpgid, sys_setpgid)
  402. #define __NR_getpgid 155
  403. __SYSCALL(__NR_getpgid, sys_getpgid)
  404. #define __NR_getsid 156
  405. __SYSCALL(__NR_getsid, sys_getsid)
  406. #define __NR_setsid 157
  407. __SYSCALL(__NR_setsid, sys_setsid)
  408. #define __NR_getgroups 158
  409. __SYSCALL(__NR_getgroups, sys_getgroups)
  410. #define __NR_setgroups 159
  411. __SYSCALL(__NR_setgroups, sys_setgroups)
  412. #define __NR_uname 160
  413. __SYSCALL(__NR_uname, sys_newuname)
  414. #define __NR_sethostname 161
  415. __SYSCALL(__NR_sethostname, sys_sethostname)
  416. #define __NR_setdomainname 162
  417. __SYSCALL(__NR_setdomainname, sys_setdomainname)
  418. #define __NR_getrlimit 163
  419. __SC_COMP(__NR_getrlimit, sys_getrlimit, compat_sys_getrlimit)
  420. #define __NR_setrlimit 164
  421. __SC_COMP(__NR_setrlimit, sys_setrlimit, compat_sys_setrlimit)
  422. #define __NR_getrusage 165
  423. __SC_COMP(__NR_getrusage, sys_getrusage, compat_sys_getrusage)
  424. #define __NR_umask 166
  425. __SYSCALL(__NR_umask, sys_umask)
  426. #define __NR_prctl 167
  427. __SYSCALL(__NR_prctl, sys_prctl)
  428. #define __NR_getcpu 168
  429. __SYSCALL(__NR_getcpu, sys_getcpu)
  430. /* kernel/time.c */
  431. #define __NR_gettimeofday 169
  432. __SC_COMP(__NR_gettimeofday, sys_gettimeofday, compat_sys_gettimeofday)
  433. #define __NR_settimeofday 170
  434. __SC_COMP(__NR_settimeofday, sys_settimeofday, compat_sys_settimeofday)
  435. #define __NR_adjtimex 171
  436. __SC_COMP(__NR_adjtimex, sys_adjtimex, compat_sys_adjtimex)
  437. /* kernel/timer.c */
  438. #define __NR_getpid 172
  439. __SYSCALL(__NR_getpid, sys_getpid)
  440. #define __NR_getppid 173
  441. __SYSCALL(__NR_getppid, sys_getppid)
  442. #define __NR_getuid 174
  443. __SYSCALL(__NR_getuid, sys_getuid)
  444. #define __NR_geteuid 175
  445. __SYSCALL(__NR_geteuid, sys_geteuid)
  446. #define __NR_getgid 176
  447. __SYSCALL(__NR_getgid, sys_getgid)
  448. #define __NR_getegid 177
  449. __SYSCALL(__NR_getegid, sys_getegid)
  450. #define __NR_gettid 178
  451. __SYSCALL(__NR_gettid, sys_gettid)
  452. #define __NR_sysinfo 179
  453. __SC_COMP(__NR_sysinfo, sys_sysinfo, compat_sys_sysinfo)
  454. /* ipc/mqueue.c */
  455. #define __NR_mq_open 180
  456. __SC_COMP(__NR_mq_open, sys_mq_open, compat_sys_mq_open)
  457. #define __NR_mq_unlink 181
  458. __SYSCALL(__NR_mq_unlink, sys_mq_unlink)
  459. #define __NR_mq_timedsend 182
  460. __SC_COMP(__NR_mq_timedsend, sys_mq_timedsend, compat_sys_mq_timedsend)
  461. #define __NR_mq_timedreceive 183
  462. __SC_COMP(__NR_mq_timedreceive, sys_mq_timedreceive, \
  463. compat_sys_mq_timedreceive)
  464. #define __NR_mq_notify 184
  465. __SC_COMP(__NR_mq_notify, sys_mq_notify, compat_sys_mq_notify)
  466. #define __NR_mq_getsetattr 185
  467. __SC_COMP(__NR_mq_getsetattr, sys_mq_getsetattr, compat_sys_mq_getsetattr)
  468. /* ipc/msg.c */
  469. #define __NR_msgget 186
  470. __SYSCALL(__NR_msgget, sys_msgget)
  471. #define __NR_msgctl 187
  472. __SC_COMP(__NR_msgctl, sys_msgctl, compat_sys_msgctl)
  473. #define __NR_msgrcv 188
  474. __SC_COMP(__NR_msgrcv, sys_msgrcv, compat_sys_msgrcv)
  475. #define __NR_msgsnd 189
  476. __SC_COMP(__NR_msgsnd, sys_msgsnd, compat_sys_msgsnd)
  477. /* ipc/sem.c */
  478. #define __NR_semget 190
  479. __SYSCALL(__NR_semget, sys_semget)
  480. #define __NR_semctl 191
  481. __SC_COMP(__NR_semctl, sys_semctl, compat_sys_semctl)
  482. #define __NR_semtimedop 192
  483. __SC_COMP(__NR_semtimedop, sys_semtimedop, compat_sys_semtimedop)
  484. #define __NR_semop 193
  485. __SYSCALL(__NR_semop, sys_semop)
  486. /* ipc/shm.c */
  487. #define __NR_shmget 194
  488. __SYSCALL(__NR_shmget, sys_shmget)
  489. #define __NR_shmctl 195
  490. __SC_COMP(__NR_shmctl, sys_shmctl, compat_sys_shmctl)
  491. #define __NR_shmat 196
  492. __SC_COMP(__NR_shmat, sys_shmat, compat_sys_shmat)
  493. #define __NR_shmdt 197
  494. __SYSCALL(__NR_shmdt, sys_shmdt)
  495. /* net/socket.c */
  496. #define __NR_socket 198
  497. __SYSCALL(__NR_socket, sys_socket)
  498. #define __NR_socketpair 199
  499. __SYSCALL(__NR_socketpair, sys_socketpair)
  500. #define __NR_bind 200
  501. __SYSCALL(__NR_bind, sys_bind)
  502. #define __NR_listen 201
  503. __SYSCALL(__NR_listen, sys_listen)
  504. #define __NR_accept 202
  505. __SYSCALL(__NR_accept, sys_accept)
  506. #define __NR_connect 203
  507. __SYSCALL(__NR_connect, sys_connect)
  508. #define __NR_getsockname 204
  509. __SYSCALL(__NR_getsockname, sys_getsockname)
  510. #define __NR_getpeername 205
  511. __SYSCALL(__NR_getpeername, sys_getpeername)
  512. #define __NR_sendto 206
  513. __SYSCALL(__NR_sendto, sys_sendto)
  514. #define __NR_recvfrom 207
  515. __SC_COMP(__NR_recvfrom, sys_recvfrom, compat_sys_recvfrom)
  516. #define __NR_setsockopt 208
  517. __SC_COMP(__NR_setsockopt, sys_setsockopt, compat_sys_setsockopt)
  518. #define __NR_getsockopt 209
  519. __SC_COMP(__NR_getsockopt, sys_getsockopt, compat_sys_getsockopt)
  520. #define __NR_shutdown 210
  521. __SYSCALL(__NR_shutdown, sys_shutdown)
  522. #define __NR_sendmsg 211
  523. __SC_COMP(__NR_sendmsg, sys_sendmsg, compat_sys_sendmsg)
  524. #define __NR_recvmsg 212
  525. __SC_COMP(__NR_recvmsg, sys_recvmsg, compat_sys_recvmsg)
  526. /* mm/filemap.c */
  527. #define __NR_readahead 213
  528. __SC_COMP(__NR_readahead, sys_readahead, compat_sys_readahead)
  529. /* mm/nommu.c, also with MMU */
  530. #define __NR_brk 214
  531. __SYSCALL(__NR_brk, sys_brk)
  532. #define __NR_munmap 215
  533. __SYSCALL(__NR_munmap, sys_munmap)
  534. #define __NR_mremap 216
  535. __SYSCALL(__NR_mremap, sys_mremap)
  536. /* security/keys/keyctl.c */
  537. #define __NR_add_key 217
  538. __SYSCALL(__NR_add_key, sys_add_key)
  539. #define __NR_request_key 218
  540. __SYSCALL(__NR_request_key, sys_request_key)
  541. #define __NR_keyctl 219
  542. __SC_COMP(__NR_keyctl, sys_keyctl, compat_sys_keyctl)
  543. /* arch/example/kernel/sys_example.c */
  544. #define __NR_clone 220
  545. __SYSCALL(__NR_clone, sys_clone)
  546. #define __NR_execve 221
  547. __SC_COMP(__NR_execve, sys_execve, compat_sys_execve)
  548. #define __NR3264_mmap 222
  549. __SC_3264(__NR3264_mmap, sys_mmap2, sys_mmap)
  550. /* mm/fadvise.c */
  551. #define __NR3264_fadvise64 223
  552. __SC_COMP(__NR3264_fadvise64, sys_fadvise64_64, compat_sys_fadvise64_64)
  553. /* mm/, CONFIG_MMU only */
  554. #ifndef __ARCH_NOMMU
  555. #define __NR_swapon 224
  556. __SYSCALL(__NR_swapon, sys_swapon)
  557. #define __NR_swapoff 225
  558. __SYSCALL(__NR_swapoff, sys_swapoff)
  559. #define __NR_mprotect 226
  560. __SYSCALL(__NR_mprotect, sys_mprotect)
  561. #define __NR_msync 227
  562. __SYSCALL(__NR_msync, sys_msync)
  563. #define __NR_mlock 228
  564. __SYSCALL(__NR_mlock, sys_mlock)
  565. #define __NR_munlock 229
  566. __SYSCALL(__NR_munlock, sys_munlock)
  567. #define __NR_mlockall 230
  568. __SYSCALL(__NR_mlockall, sys_mlockall)
  569. #define __NR_munlockall 231
  570. __SYSCALL(__NR_munlockall, sys_munlockall)
  571. #define __NR_mincore 232
  572. __SYSCALL(__NR_mincore, sys_mincore)
  573. #define __NR_madvise 233
  574. __SYSCALL(__NR_madvise, sys_madvise)
  575. #define __NR_remap_file_pages 234
  576. __SYSCALL(__NR_remap_file_pages, sys_remap_file_pages)
  577. #define __NR_mbind 235
  578. __SC_COMP(__NR_mbind, sys_mbind, compat_sys_mbind)
  579. #define __NR_get_mempolicy 236
  580. __SC_COMP(__NR_get_mempolicy, sys_get_mempolicy, compat_sys_get_mempolicy)
  581. #define __NR_set_mempolicy 237
  582. __SC_COMP(__NR_set_mempolicy, sys_set_mempolicy, compat_sys_set_mempolicy)
  583. #define __NR_migrate_pages 238
  584. __SC_COMP(__NR_migrate_pages, sys_migrate_pages, compat_sys_migrate_pages)
  585. #define __NR_move_pages 239
  586. __SC_COMP(__NR_move_pages, sys_move_pages, compat_sys_move_pages)
  587. #endif
  588. #define __NR_rt_tgsigqueueinfo 240
  589. __SC_COMP(__NR_rt_tgsigqueueinfo, sys_rt_tgsigqueueinfo, \
  590. compat_sys_rt_tgsigqueueinfo)
  591. #define __NR_perf_event_open 241
  592. __SYSCALL(__NR_perf_event_open, sys_perf_event_open)
  593. #define __NR_accept4 242
  594. __SYSCALL(__NR_accept4, sys_accept4)
  595. #define __NR_recvmmsg 243
  596. __SC_COMP(__NR_recvmmsg, sys_recvmmsg, compat_sys_recvmmsg)
  597. /*
  598. * Architectures may provide up to 16 syscalls of their own
  599. * starting with this value.
  600. */
  601. #define __NR_arch_specific_syscall 244
  602. #define __NR_wait4 260
  603. __SC_COMP(__NR_wait4, sys_wait4, compat_sys_wait4)
  604. #define __NR_prlimit64 261
  605. __SYSCALL(__NR_prlimit64, sys_prlimit64)
  606. #define __NR_fanotify_init 262
  607. __SYSCALL(__NR_fanotify_init, sys_fanotify_init)
  608. #define __NR_fanotify_mark 263
  609. __SYSCALL(__NR_fanotify_mark, sys_fanotify_mark)
  610. #define __NR_name_to_handle_at 264
  611. __SYSCALL(__NR_name_to_handle_at, sys_name_to_handle_at)
  612. #define __NR_open_by_handle_at 265
  613. __SC_COMP(__NR_open_by_handle_at, sys_open_by_handle_at, \
  614. compat_sys_open_by_handle_at)
  615. #define __NR_clock_adjtime 266
  616. __SC_COMP(__NR_clock_adjtime, sys_clock_adjtime, compat_sys_clock_adjtime)
  617. #define __NR_syncfs 267
  618. __SYSCALL(__NR_syncfs, sys_syncfs)
  619. #define __NR_setns 268
  620. __SYSCALL(__NR_setns, sys_setns)
  621. #define __NR_sendmmsg 269
  622. __SC_COMP(__NR_sendmmsg, sys_sendmmsg, compat_sys_sendmmsg)
  623. #undef __NR_syscalls
  624. #define __NR_syscalls 270
  625. /*
  626. * All syscalls below here should go away really,
  627. * these are provided for both review and as a porting
  628. * help for the C library version.
  629. *
  630. * Last chance: are any of these important enough to
  631. * enable by default?
  632. */
  633. #ifdef __ARCH_WANT_SYSCALL_NO_AT
  634. #define __NR_open 1024
  635. __SYSCALL(__NR_open, sys_open)
  636. #define __NR_link 1025
  637. __SYSCALL(__NR_link, sys_link)
  638. #define __NR_unlink 1026
  639. __SYSCALL(__NR_unlink, sys_unlink)
  640. #define __NR_mknod 1027
  641. __SYSCALL(__NR_mknod, sys_mknod)
  642. #define __NR_chmod 1028
  643. __SYSCALL(__NR_chmod, sys_chmod)
  644. #define __NR_chown 1029
  645. __SYSCALL(__NR_chown, sys_chown)
  646. #define __NR_mkdir 1030
  647. __SYSCALL(__NR_mkdir, sys_mkdir)
  648. #define __NR_rmdir 1031
  649. __SYSCALL(__NR_rmdir, sys_rmdir)
  650. #define __NR_lchown 1032
  651. __SYSCALL(__NR_lchown, sys_lchown)
  652. #define __NR_access 1033
  653. __SYSCALL(__NR_access, sys_access)
  654. #define __NR_rename 1034
  655. __SYSCALL(__NR_rename, sys_rename)
  656. #define __NR_readlink 1035
  657. __SYSCALL(__NR_readlink, sys_readlink)
  658. #define __NR_symlink 1036
  659. __SYSCALL(__NR_symlink, sys_symlink)
  660. #define __NR_utimes 1037
  661. __SYSCALL(__NR_utimes, sys_utimes)
  662. #define __NR3264_stat 1038
  663. __SC_3264(__NR3264_stat, sys_stat64, sys_newstat)
  664. #define __NR3264_lstat 1039
  665. __SC_3264(__NR3264_lstat, sys_lstat64, sys_newlstat)
  666. #undef __NR_syscalls
  667. #define __NR_syscalls (__NR3264_lstat+1)
  668. #endif /* __ARCH_WANT_SYSCALL_NO_AT */
  669. #ifdef __ARCH_WANT_SYSCALL_NO_FLAGS
  670. #define __NR_pipe 1040
  671. __SYSCALL(__NR_pipe, sys_pipe)
  672. #define __NR_dup2 1041
  673. __SYSCALL(__NR_dup2, sys_dup2)
  674. #define __NR_epoll_create 1042
  675. __SYSCALL(__NR_epoll_create, sys_epoll_create)
  676. #define __NR_inotify_init 1043
  677. __SYSCALL(__NR_inotify_init, sys_inotify_init)
  678. #define __NR_eventfd 1044
  679. __SYSCALL(__NR_eventfd, sys_eventfd)
  680. #define __NR_signalfd 1045
  681. __SYSCALL(__NR_signalfd, sys_signalfd)
  682. #undef __NR_syscalls
  683. #define __NR_syscalls (__NR_signalfd+1)
  684. #endif /* __ARCH_WANT_SYSCALL_NO_FLAGS */
  685. #if (__BITS_PER_LONG == 32 || defined(__SYSCALL_COMPAT)) && \
  686. defined(__ARCH_WANT_SYSCALL_OFF_T)
  687. #define __NR_sendfile 1046
  688. __SYSCALL(__NR_sendfile, sys_sendfile)
  689. #define __NR_ftruncate 1047
  690. __SYSCALL(__NR_ftruncate, sys_ftruncate)
  691. #define __NR_truncate 1048
  692. __SYSCALL(__NR_truncate, sys_truncate)
  693. #define __NR_stat 1049
  694. __SYSCALL(__NR_stat, sys_newstat)
  695. #define __NR_lstat 1050
  696. __SYSCALL(__NR_lstat, sys_newlstat)
  697. #define __NR_fstat 1051
  698. __SYSCALL(__NR_fstat, sys_newfstat)
  699. #define __NR_fcntl 1052
  700. __SYSCALL(__NR_fcntl, sys_fcntl)
  701. #define __NR_fadvise64 1053
  702. #define __ARCH_WANT_SYS_FADVISE64
  703. __SYSCALL(__NR_fadvise64, sys_fadvise64)
  704. #define __NR_newfstatat 1054
  705. #define __ARCH_WANT_SYS_NEWFSTATAT
  706. __SYSCALL(__NR_newfstatat, sys_newfstatat)
  707. #define __NR_fstatfs 1055
  708. __SYSCALL(__NR_fstatfs, sys_fstatfs)
  709. #define __NR_statfs 1056
  710. __SYSCALL(__NR_statfs, sys_statfs)
  711. #define __NR_lseek 1057
  712. __SYSCALL(__NR_lseek, sys_lseek)
  713. #define __NR_mmap 1058
  714. __SYSCALL(__NR_mmap, sys_mmap)
  715. #undef __NR_syscalls
  716. #define __NR_syscalls (__NR_mmap+1)
  717. #endif /* 32 bit off_t syscalls */
  718. #ifdef __ARCH_WANT_SYSCALL_DEPRECATED
  719. #define __NR_alarm 1059
  720. #define __ARCH_WANT_SYS_ALARM
  721. __SYSCALL(__NR_alarm, sys_alarm)
  722. #define __NR_getpgrp 1060
  723. #define __ARCH_WANT_SYS_GETPGRP
  724. __SYSCALL(__NR_getpgrp, sys_getpgrp)
  725. #define __NR_pause 1061
  726. #define __ARCH_WANT_SYS_PAUSE
  727. __SYSCALL(__NR_pause, sys_pause)
  728. #define __NR_time 1062
  729. #define __ARCH_WANT_SYS_TIME
  730. #define __ARCH_WANT_COMPAT_SYS_TIME
  731. __SYSCALL(__NR_time, sys_time)
  732. #define __NR_utime 1063
  733. #define __ARCH_WANT_SYS_UTIME
  734. __SYSCALL(__NR_utime, sys_utime)
  735. #define __NR_creat 1064
  736. __SYSCALL(__NR_creat, sys_creat)
  737. #define __NR_getdents 1065
  738. #define __ARCH_WANT_SYS_GETDENTS
  739. __SYSCALL(__NR_getdents, sys_getdents)
  740. #define __NR_futimesat 1066
  741. __SYSCALL(__NR_futimesat, sys_futimesat)
  742. #define __NR_select 1067
  743. #define __ARCH_WANT_SYS_SELECT
  744. __SYSCALL(__NR_select, sys_select)
  745. #define __NR_poll 1068
  746. __SYSCALL(__NR_poll, sys_poll)
  747. #define __NR_epoll_wait 1069
  748. __SYSCALL(__NR_epoll_wait, sys_epoll_wait)
  749. #define __NR_ustat 1070
  750. __SYSCALL(__NR_ustat, sys_ustat)
  751. #define __NR_vfork 1071
  752. __SYSCALL(__NR_vfork, sys_vfork)
  753. #define __NR_oldwait4 1072
  754. __SYSCALL(__NR_oldwait4, sys_wait4)
  755. #define __NR_recv 1073
  756. __SYSCALL(__NR_recv, sys_recv)
  757. #define __NR_send 1074
  758. __SYSCALL(__NR_send, sys_send)
  759. #define __NR_bdflush 1075
  760. __SYSCALL(__NR_bdflush, sys_bdflush)
  761. #define __NR_umount 1076
  762. __SYSCALL(__NR_umount, sys_oldumount)
  763. #define __ARCH_WANT_SYS_OLDUMOUNT
  764. #define __NR_uselib 1077
  765. __SYSCALL(__NR_uselib, sys_uselib)
  766. #define __NR__sysctl 1078
  767. __SYSCALL(__NR__sysctl, sys_sysctl)
  768. #define __NR_fork 1079
  769. #ifdef CONFIG_MMU
  770. __SYSCALL(__NR_fork, sys_fork)
  771. #else
  772. __SYSCALL(__NR_fork, sys_ni_syscall)
  773. #endif /* CONFIG_MMU */
  774. #undef __NR_syscalls
  775. #define __NR_syscalls (__NR_fork+1)
  776. #endif /* __ARCH_WANT_SYSCALL_DEPRECATED */
  777. /*
  778. * 32 bit systems traditionally used different
  779. * syscalls for off_t and loff_t arguments, while
  780. * 64 bit systems only need the off_t version.
  781. * For new 32 bit platforms, there is no need to
  782. * implement the old 32 bit off_t syscalls, so
  783. * they take different names.
  784. * Here we map the numbers so that both versions
  785. * use the same syscall table layout.
  786. */
  787. #if __BITS_PER_LONG == 64 && !defined(__SYSCALL_COMPAT)
  788. #define __NR_fcntl __NR3264_fcntl
  789. #define __NR_statfs __NR3264_statfs
  790. #define __NR_fstatfs __NR3264_fstatfs
  791. #define __NR_truncate __NR3264_truncate
  792. #define __NR_ftruncate __NR3264_ftruncate
  793. #define __NR_lseek __NR3264_lseek
  794. #define __NR_sendfile __NR3264_sendfile
  795. #define __NR_newfstatat __NR3264_fstatat
  796. #define __NR_fstat __NR3264_fstat
  797. #define __NR_mmap __NR3264_mmap
  798. #define __NR_fadvise64 __NR3264_fadvise64
  799. #ifdef __NR3264_stat
  800. #define __NR_stat __NR3264_stat
  801. #define __NR_lstat __NR3264_lstat
  802. #endif
  803. #else
  804. #define __NR_fcntl64 __NR3264_fcntl
  805. #define __NR_statfs64 __NR3264_statfs
  806. #define __NR_fstatfs64 __NR3264_fstatfs
  807. #define __NR_truncate64 __NR3264_truncate
  808. #define __NR_ftruncate64 __NR3264_ftruncate
  809. #define __NR_llseek __NR3264_lseek
  810. #define __NR_sendfile64 __NR3264_sendfile
  811. #define __NR_fstatat64 __NR3264_fstatat
  812. #define __NR_fstat64 __NR3264_fstat
  813. #define __NR_mmap2 __NR3264_mmap
  814. #define __NR_fadvise64_64 __NR3264_fadvise64
  815. #ifdef __NR3264_stat
  816. #define __NR_stat64 __NR3264_stat
  817. #define __NR_lstat64 __NR3264_lstat
  818. #endif
  819. #endif
  820. #ifdef __KERNEL__
  821. /*
  822. * These are required system calls, we should
  823. * invert the logic eventually and let them
  824. * be selected by default.
  825. */
  826. #if __BITS_PER_LONG == 32
  827. #define __ARCH_WANT_STAT64
  828. #define __ARCH_WANT_SYS_LLSEEK
  829. #endif
  830. #define __ARCH_WANT_SYS_RT_SIGACTION
  831. #define __ARCH_WANT_SYS_RT_SIGSUSPEND
  832. #define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND
  833. /*
  834. * "Conditional" syscalls
  835. *
  836. * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
  837. * but it doesn't work on all toolchains, so we just do it by hand
  838. */
  839. #ifndef cond_syscall
  840. #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
  841. #endif
  842. #endif /* __KERNEL__ */
  843. #endif /* _ASM_GENERIC_UNISTD_H */