Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
unistd.h
Go to the documentation of this file.
1 #include <asm/bitsperlong.h>
2 
3 /*
4  * This file contains the system call numbers, based on the
5  * layout of the x86-64 architecture, which embeds the
6  * pointer to the syscall in the table.
7  *
8  * As a basic principle, no duplication of functionality
9  * should be added, e.g. we don't use lseek when llseek
10  * is present. New architectures should use this file
11  * and implement the less feature-full calls in user space.
12  */
13 
14 #ifndef __SYSCALL
15 #define __SYSCALL(x, y)
16 #endif
17 
18 #if __BITS_PER_LONG == 32 || defined(__SYSCALL_COMPAT)
19 #define __SC_3264(_nr, _32, _64) __SYSCALL(_nr, _32)
20 #else
21 #define __SC_3264(_nr, _32, _64) __SYSCALL(_nr, _64)
22 #endif
23 
24 #ifdef __SYSCALL_COMPAT
25 #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _comp)
26 #define __SC_COMP_3264(_nr, _32, _64, _comp) __SYSCALL(_nr, _comp)
27 #else
28 #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
29 #define __SC_COMP_3264(_nr, _32, _64, _comp) __SC_3264(_nr, _32, _64)
30 #endif
31 
32 #define __NR_io_setup 0
34 #define __NR_io_destroy 1
36 #define __NR_io_submit 2
38 #define __NR_io_cancel 3
40 #define __NR_io_getevents 4
42 
43 /* fs/xattr.c */
44 #define __NR_setxattr 5
46 #define __NR_lsetxattr 6
48 #define __NR_fsetxattr 7
50 #define __NR_getxattr 8
52 #define __NR_lgetxattr 9
54 #define __NR_fgetxattr 10
56 #define __NR_listxattr 11
58 #define __NR_llistxattr 12
60 #define __NR_flistxattr 13
62 #define __NR_removexattr 14
64 #define __NR_lremovexattr 15
66 #define __NR_fremovexattr 16
68 
69 /* fs/dcache.c */
70 #define __NR_getcwd 17
72 
73 /* fs/cookies.c */
74 #define __NR_lookup_dcookie 18
76 
77 /* fs/eventfd.c */
78 #define __NR_eventfd2 19
80 
81 /* fs/eventpoll.c */
82 #define __NR_epoll_create1 20
84 #define __NR_epoll_ctl 21
86 #define __NR_epoll_pwait 22
87 __SC_COMP(__NR_epoll_pwait, sys_epoll_pwait, compat_sys_epoll_pwait)
88 
89 /* fs/fcntl.c */
90 #define __NR_dup 23
92 #define __NR_dup3 24
94 #define __NR3264_fcntl 25
96 
97 /* fs/inotify_user.c */
98 #define __NR_inotify_init1 26
100 #define __NR_inotify_add_watch 27
102 #define __NR_inotify_rm_watch 28
104 
105 /* fs/ioctl.c */
106 #define __NR_ioctl 29
108 
109 /* fs/ioprio.c */
110 #define __NR_ioprio_set 30
112 #define __NR_ioprio_get 31
114 
115 /* fs/locks.c */
116 #define __NR_flock 32
118 
119 /* fs/namei.c */
120 #define __NR_mknodat 33
122 #define __NR_mkdirat 34
124 #define __NR_unlinkat 35
126 #define __NR_symlinkat 36
128 #define __NR_linkat 37
130 #define __NR_renameat 38
132 
133 /* fs/namespace.c */
134 #define __NR_umount2 39
136 #define __NR_mount 40
138 #define __NR_pivot_root 41
140 
141 /* fs/nfsctl.c */
142 #define __NR_nfsservctl 42
144 
145 /* fs/open.c */
146 #define __NR3264_statfs 43
149 #define __NR3264_fstatfs 44
152 #define __NR3264_truncate 45
155 #define __NR3264_ftruncate 46
158 
159 #define __NR_fallocate 47
161 #define __NR_faccessat 48
163 #define __NR_chdir 49
165 #define __NR_fchdir 50
167 #define __NR_chroot 51
169 #define __NR_fchmod 52
171 #define __NR_fchmodat 53
173 #define __NR_fchownat 54
175 #define __NR_fchown 55
177 #define __NR_openat 56
179 #define __NR_close 57
181 #define __NR_vhangup 58
183 
184 /* fs/pipe.c */
185 #define __NR_pipe2 59
187 
188 /* fs/quota.c */
189 #define __NR_quotactl 60
191 
192 /* fs/readdir.c */
193 #define __NR_getdents64 61
195 
196 /* fs/read_write.c */
197 #define __NR3264_lseek 62
199 #define __NR_read 63
201 #define __NR_write 64
203 #define __NR_readv 65
205 #define __NR_writev 66
207 #define __NR_pread64 67
209 #define __NR_pwrite64 68
211 #define __NR_preadv 69
213 #define __NR_pwritev 70
215 
216 /* fs/sendfile.c */
217 #define __NR3264_sendfile 71
219 
220 /* fs/select.c */
221 #define __NR_pselect6 72
223 #define __NR_ppoll 73
225 
226 /* fs/signalfd.c */
227 #define __NR_signalfd4 74
228 __SC_COMP(__NR_signalfd4, sys_signalfd4, compat_sys_signalfd4)
229 
230 /* fs/splice.c */
231 #define __NR_vmsplice 75
233 #define __NR_splice 76
235 #define __NR_tee 77
237 
238 /* fs/stat.c */
239 #define __NR_readlinkat 78
241 #define __NR3264_fstatat 79
243 #define __NR3264_fstat 80
245 
246 /* fs/sync.c */
247 #define __NR_sync 81
249 #define __NR_fsync 82
251 #define __NR_fdatasync 83
253 #ifdef __ARCH_WANT_SYNC_FILE_RANGE2
254 #define __NR_sync_file_range2 84
257 #else
258 #define __NR_sync_file_range 84
260  compat_sys_sync_file_range)
261 #endif
262 
263 /* fs/timerfd.c */
264 #define __NR_timerfd_create 85
265 __SYSCALL(__NR_timerfd_create, sys_timerfd_create)
266 #define __NR_timerfd_settime 86
267 __SC_COMP(__NR_timerfd_settime, sys_timerfd_settime, \
268  compat_sys_timerfd_settime)
269 #define __NR_timerfd_gettime 87
271  compat_sys_timerfd_gettime)
272 
273 /* fs/utimes.c */
274 #define __NR_utimensat 88
276 
277 /* kernel/acct.c */
278 #define __NR_acct 89
280 
281 /* kernel/capability.c */
282 #define __NR_capget 90
283 __SYSCALL(__NR_capget, sys_capget)
284 #define __NR_capset 91
285 __SYSCALL(__NR_capset, sys_capset)
286 
287 /* kernel/exec_domain.c */
288 #define __NR_personality 92
289 __SYSCALL(__NR_personality, sys_personality)
290 
291 /* kernel/exit.c */
292 #define __NR_exit 93
293 __SYSCALL(__NR_exit, sys_exit)
294 #define __NR_exit_group 94
295 __SYSCALL(__NR_exit_group, sys_exit_group)
296 #define __NR_waitid 95
298 
299 /* kernel/fork.c */
300 #define __NR_set_tid_address 96
301 __SYSCALL(__NR_set_tid_address, sys_set_tid_address)
302 #define __NR_unshare 97
303 __SYSCALL(__NR_unshare, sys_unshare)
304 
305 /* kernel/futex.c */
306 #define __NR_futex 98
308 #define __NR_set_robust_list 99
309 __SC_COMP(__NR_set_robust_list, sys_set_robust_list, \
311 #define __NR_get_robust_list 100
314 
315 /* kernel/hrtimer.c */
316 #define __NR_nanosleep 101
318 
319 /* kernel/itimer.c */
320 #define __NR_getitimer 102
322 #define __NR_setitimer 103
324 
325 /* kernel/kexec.c */
326 #define __NR_kexec_load 104
327 __SC_COMP(__NR_kexec_load, sys_kexec_load, compat_sys_kexec_load)
328 
329 /* kernel/module.c */
330 #define __NR_init_module 105
331 __SYSCALL(__NR_init_module, sys_init_module)
332 #define __NR_delete_module 106
333 __SYSCALL(__NR_delete_module, sys_delete_module)
334 
335 /* kernel/posix-timers.c */
336 #define __NR_timer_create 107
338 #define __NR_timer_gettime 108
340 #define __NR_timer_getoverrun 109
341 __SYSCALL(__NR_timer_getoverrun, sys_timer_getoverrun)
342 #define __NR_timer_settime 110
344 #define __NR_timer_delete 111
345 __SYSCALL(__NR_timer_delete, sys_timer_delete)
346 #define __NR_clock_settime 112
348 #define __NR_clock_gettime 113
350 #define __NR_clock_getres 114
352 #define __NR_clock_nanosleep 115
353 __SC_COMP(__NR_clock_nanosleep, sys_clock_nanosleep, \
355 
356 /* kernel/printk.c */
357 #define __NR_syslog 116
359 
360 /* kernel/ptrace.c */
361 #define __NR_ptrace 117
363 
364 /* kernel/sched.c */
365 #define __NR_sched_setparam 118
367 #define __NR_sched_setscheduler 119
369 #define __NR_sched_getscheduler 120
371 #define __NR_sched_getparam 121
373 #define __NR_sched_setaffinity 122
376 #define __NR_sched_getaffinity 123
377 __SC_COMP(__NR_sched_getaffinity, sys_sched_getaffinity, \
379 #define __NR_sched_yield 124
381 #define __NR_sched_get_priority_max 125
383 #define __NR_sched_get_priority_min 126
385 #define __NR_sched_rr_get_interval 127
388 
389 /* kernel/signal.c */
390 #define __NR_restart_syscall 128
391 __SYSCALL(__NR_restart_syscall, sys_restart_syscall)
392 #define __NR_kill 129
394 #define __NR_tkill 130
396 #define __NR_tgkill 131
398 #define __NR_sigaltstack 132
400 #define __NR_rt_sigsuspend 133
401 __SC_COMP(__NR_rt_sigsuspend, sys_rt_sigsuspend, compat_sys_rt_sigsuspend)
402 #define __NR_rt_sigaction 134
403 __SC_COMP(__NR_rt_sigaction, sys_rt_sigaction, compat_sys_rt_sigaction)
404 #define __NR_rt_sigprocmask 135
405 __SYSCALL(__NR_rt_sigprocmask, sys_rt_sigprocmask)
406 #define __NR_rt_sigpending 136
407 __SYSCALL(__NR_rt_sigpending, sys_rt_sigpending)
408 #define __NR_rt_sigtimedwait 137
409 __SC_COMP(__NR_rt_sigtimedwait, sys_rt_sigtimedwait, \
411 #define __NR_rt_sigqueueinfo 138
414 #define __NR_rt_sigreturn 139
416 
417 /* kernel/sys.c */
418 #define __NR_setpriority 140
419 __SYSCALL(__NR_setpriority, sys_setpriority)
420 #define __NR_getpriority 141
421 __SYSCALL(__NR_getpriority, sys_getpriority)
422 #define __NR_reboot 142
423 __SYSCALL(__NR_reboot, sys_reboot)
424 #define __NR_setregid 143
425 __SYSCALL(__NR_setregid, sys_setregid)
426 #define __NR_setgid 144
427 __SYSCALL(__NR_setgid, sys_setgid)
428 #define __NR_setreuid 145
429 __SYSCALL(__NR_setreuid, sys_setreuid)
430 #define __NR_setuid 146
431 __SYSCALL(__NR_setuid, sys_setuid)
432 #define __NR_setresuid 147
433 __SYSCALL(__NR_setresuid, sys_setresuid)
434 #define __NR_getresuid 148
435 __SYSCALL(__NR_getresuid, sys_getresuid)
436 #define __NR_setresgid 149
437 __SYSCALL(__NR_setresgid, sys_setresgid)
438 #define __NR_getresgid 150
439 __SYSCALL(__NR_getresgid, sys_getresgid)
440 #define __NR_setfsuid 151
441 __SYSCALL(__NR_setfsuid, sys_setfsuid)
442 #define __NR_setfsgid 152
443 __SYSCALL(__NR_setfsgid, sys_setfsgid)
444 #define __NR_times 153
446 #define __NR_setpgid 154
447 __SYSCALL(__NR_setpgid, sys_setpgid)
448 #define __NR_getpgid 155
449 __SYSCALL(__NR_getpgid, sys_getpgid)
450 #define __NR_getsid 156
451 __SYSCALL(__NR_getsid, sys_getsid)
452 #define __NR_setsid 157
453 __SYSCALL(__NR_setsid, sys_setsid)
454 #define __NR_getgroups 158
455 __SYSCALL(__NR_getgroups, sys_getgroups)
456 #define __NR_setgroups 159
457 __SYSCALL(__NR_setgroups, sys_setgroups)
458 #define __NR_uname 160
459 __SYSCALL(__NR_uname, sys_newuname)
460 #define __NR_sethostname 161
461 __SYSCALL(__NR_sethostname, sys_sethostname)
462 #define __NR_setdomainname 162
463 __SYSCALL(__NR_setdomainname, sys_setdomainname)
464 #define __NR_getrlimit 163
466 #define __NR_setrlimit 164
468 #define __NR_getrusage 165
470 #define __NR_umask 166
471 __SYSCALL(__NR_umask, sys_umask)
472 #define __NR_prctl 167
473 __SYSCALL(__NR_prctl, sys_prctl)
474 #define __NR_getcpu 168
475 __SYSCALL(__NR_getcpu, sys_getcpu)
476 
477 /* kernel/time.c */
478 #define __NR_gettimeofday 169
480 #define __NR_settimeofday 170
482 #define __NR_adjtimex 171
484 
485 /* kernel/timer.c */
486 #define __NR_getpid 172
487 __SYSCALL(__NR_getpid, sys_getpid)
488 #define __NR_getppid 173
489 __SYSCALL(__NR_getppid, sys_getppid)
490 #define __NR_getuid 174
491 __SYSCALL(__NR_getuid, sys_getuid)
492 #define __NR_geteuid 175
493 __SYSCALL(__NR_geteuid, sys_geteuid)
494 #define __NR_getgid 176
495 __SYSCALL(__NR_getgid, sys_getgid)
496 #define __NR_getegid 177
497 __SYSCALL(__NR_getegid, sys_getegid)
498 #define __NR_gettid 178
499 __SYSCALL(__NR_gettid, sys_gettid)
500 #define __NR_sysinfo 179
502 
503 /* ipc/mqueue.c */
504 #define __NR_mq_open 180
506 #define __NR_mq_unlink 181
507 __SYSCALL(__NR_mq_unlink, sys_mq_unlink)
508 #define __NR_mq_timedsend 182
510 #define __NR_mq_timedreceive 183
511 __SC_COMP(__NR_mq_timedreceive, sys_mq_timedreceive, \
513 #define __NR_mq_notify 184
515 #define __NR_mq_getsetattr 185
517 
518 /* ipc/msg.c */
519 #define __NR_msgget 186
521 #define __NR_msgctl 187
523 #define __NR_msgrcv 188
525 #define __NR_msgsnd 189
527 
528 /* ipc/sem.c */
529 #define __NR_semget 190
531 #define __NR_semctl 191
533 #define __NR_semtimedop 192
535 #define __NR_semop 193
537 
538 /* ipc/shm.c */
539 #define __NR_shmget 194
541 #define __NR_shmctl 195
543 #define __NR_shmat 196
545 #define __NR_shmdt 197
547 
548 /* net/socket.c */
549 #define __NR_socket 198
551 #define __NR_socketpair 199
553 #define __NR_bind 200
555 #define __NR_listen 201
557 #define __NR_accept 202
559 #define __NR_connect 203
561 #define __NR_getsockname 204
563 #define __NR_getpeername 205
565 #define __NR_sendto 206
567 #define __NR_recvfrom 207
569 #define __NR_setsockopt 208
571 #define __NR_getsockopt 209
573 #define __NR_shutdown 210
575 #define __NR_sendmsg 211
577 #define __NR_recvmsg 212
579 
580 /* mm/filemap.c */
581 #define __NR_readahead 213
583 
584 /* mm/nommu.c, also with MMU */
585 #define __NR_brk 214
587 #define __NR_munmap 215
589 #define __NR_mremap 216
591 
592 /* security/keys/keyctl.c */
593 #define __NR_add_key 217
595 #define __NR_request_key 218
597 #define __NR_keyctl 219
599 
600 /* arch/example/kernel/sys_example.c */
601 #define __NR_clone 220
603 #define __NR_execve 221
605 
606 #define __NR3264_mmap 222
608 /* mm/fadvise.c */
609 #define __NR3264_fadvise64 223
611 
612 /* mm/, CONFIG_MMU only */
613 #ifndef __ARCH_NOMMU
614 #define __NR_swapon 224
616 #define __NR_swapoff 225
618 #define __NR_mprotect 226
620 #define __NR_msync 227
622 #define __NR_mlock 228
624 #define __NR_munlock 229
626 #define __NR_mlockall 230
628 #define __NR_munlockall 231
630 #define __NR_mincore 232
631 __SYSCALL(__NR_mincore, sys_mincore)
632 #define __NR_madvise 233
633 __SYSCALL(__NR_madvise, sys_madvise)
634 #define __NR_remap_file_pages 234
636 #define __NR_mbind 235
637 __SC_COMP(__NR_mbind, sys_mbind, compat_sys_mbind)
638 #define __NR_get_mempolicy 236
639 __SC_COMP(__NR_get_mempolicy, sys_get_mempolicy, compat_sys_get_mempolicy)
640 #define __NR_set_mempolicy 237
641 __SC_COMP(__NR_set_mempolicy, sys_set_mempolicy, compat_sys_set_mempolicy)
642 #define __NR_migrate_pages 238
643 __SC_COMP(__NR_migrate_pages, sys_migrate_pages, compat_sys_migrate_pages)
644 #define __NR_move_pages 239
645 __SC_COMP(__NR_move_pages, sys_move_pages, compat_sys_move_pages)
646 #endif
647 
648 #define __NR_rt_tgsigqueueinfo 240
651 #define __NR_perf_event_open 241
652 __SYSCALL(__NR_perf_event_open, sys_perf_event_open)
653 #define __NR_accept4 242
654 __SYSCALL(__NR_accept4, sys_accept4)
655 #define __NR_recvmmsg 243
657 
658 /*
659  * Architectures may provide up to 16 syscalls of their own
660  * starting with this value.
661  */
662 #define __NR_arch_specific_syscall 244
663 
664 #define __NR_wait4 260
666 #define __NR_prlimit64 261
667 __SYSCALL(__NR_prlimit64, sys_prlimit64)
668 #define __NR_fanotify_init 262
669 __SYSCALL(__NR_fanotify_init, sys_fanotify_init)
670 #define __NR_fanotify_mark 263
671 __SYSCALL(__NR_fanotify_mark, sys_fanotify_mark)
672 #define __NR_name_to_handle_at 264
673 __SYSCALL(__NR_name_to_handle_at, sys_name_to_handle_at)
674 #define __NR_open_by_handle_at 265
675 __SC_COMP(__NR_open_by_handle_at, sys_open_by_handle_at, \
676  compat_sys_open_by_handle_at)
677 #define __NR_clock_adjtime 266
679 #define __NR_syncfs 267
681 #define __NR_setns 268
683 #define __NR_sendmmsg 269
685 #define __NR_process_vm_readv 270
687  compat_sys_process_vm_readv)
688 #define __NR_process_vm_writev 271
689 __SC_COMP(__NR_process_vm_writev, sys_process_vm_writev, \
690  compat_sys_process_vm_writev)
691 #define __NR_kcmp 272
693 
694 #undef __NR_syscalls
695 #define __NR_syscalls 273
696 
697 /*
698  * All syscalls below here should go away really,
699  * these are provided for both review and as a porting
700  * help for the C library version.
701 *
702  * Last chance: are any of these important enough to
703  * enable by default?
704  */
705 #ifdef __ARCH_WANT_SYSCALL_NO_AT
706 #define __NR_open 1024
708 #define __NR_link 1025
710 #define __NR_unlink 1026
712 #define __NR_mknod 1027
714 #define __NR_chmod 1028
716 #define __NR_chown 1029
718 #define __NR_mkdir 1030
720 #define __NR_rmdir 1031
722 #define __NR_lchown 1032
724 #define __NR_access 1033
726 #define __NR_rename 1034
728 #define __NR_readlink 1035
730 #define __NR_symlink 1036
732 #define __NR_utimes 1037
734 #define __NR3264_stat 1038
735 __SC_3264(__NR3264_stat, sys_stat64, sys_newstat)
736 #define __NR3264_lstat 1039
737 __SC_3264(__NR3264_lstat, sys_lstat64, sys_newlstat)
738 
739 #undef __NR_syscalls
740 #define __NR_syscalls (__NR3264_lstat+1)
741 #endif /* __ARCH_WANT_SYSCALL_NO_AT */
742 
743 #ifdef __ARCH_WANT_SYSCALL_NO_FLAGS
744 #define __NR_pipe 1040
746 #define __NR_dup2 1041
748 #define __NR_epoll_create 1042
750 #define __NR_inotify_init 1043
752 #define __NR_eventfd 1044
754 #define __NR_signalfd 1045
756 
757 #undef __NR_syscalls
758 #define __NR_syscalls (__NR_signalfd+1)
759 #endif /* __ARCH_WANT_SYSCALL_NO_FLAGS */
760 
761 #if (__BITS_PER_LONG == 32 || defined(__SYSCALL_COMPAT)) && \
762  defined(__ARCH_WANT_SYSCALL_OFF_T)
763 #define __NR_sendfile 1046
765 #define __NR_ftruncate 1047
767 #define __NR_truncate 1048
769 #define __NR_stat 1049
771 #define __NR_lstat 1050
773 #define __NR_fstat 1051
775 #define __NR_fcntl 1052
777 #define __NR_fadvise64 1053
778 #define __ARCH_WANT_SYS_FADVISE64
780 #define __NR_newfstatat 1054
781 #define __ARCH_WANT_SYS_NEWFSTATAT
783 #define __NR_fstatfs 1055
785 #define __NR_statfs 1056
787 #define __NR_lseek 1057
789 #define __NR_mmap 1058
791 
792 #undef __NR_syscalls
793 #define __NR_syscalls (__NR_mmap+1)
794 #endif /* 32 bit off_t syscalls */
795 
796 #ifdef __ARCH_WANT_SYSCALL_DEPRECATED
797 #define __NR_alarm 1059
798 #define __ARCH_WANT_SYS_ALARM
800 #define __NR_getpgrp 1060
801 #define __ARCH_WANT_SYS_GETPGRP
803 #define __NR_pause 1061
804 #define __ARCH_WANT_SYS_PAUSE
806 #define __NR_time 1062
807 #define __ARCH_WANT_SYS_TIME
808 #define __ARCH_WANT_COMPAT_SYS_TIME
810 #define __NR_utime 1063
811 #define __ARCH_WANT_SYS_UTIME
813 
814 #define __NR_creat 1064
816 #define __NR_getdents 1065
817 #define __ARCH_WANT_SYS_GETDENTS
819 #define __NR_futimesat 1066
821 #define __NR_select 1067
822 #define __ARCH_WANT_SYS_SELECT
824 #define __NR_poll 1068
826 #define __NR_epoll_wait 1069
828 #define __NR_ustat 1070
830 #define __NR_vfork 1071
832 #define __NR_oldwait4 1072
833 __SYSCALL(__NR_oldwait4, sys_wait4)
834 #define __NR_recv 1073
836 #define __NR_send 1074
838 #define __NR_bdflush 1075
840 #define __NR_umount 1076
842 #define __ARCH_WANT_SYS_OLDUMOUNT
843 #define __NR_uselib 1077
845 #define __NR__sysctl 1078
847 
848 #define __NR_fork 1079
849 #ifdef CONFIG_MMU
851 #else
853 #endif /* CONFIG_MMU */
854 
855 #undef __NR_syscalls
856 #define __NR_syscalls (__NR_fork+1)
857 
858 #endif /* __ARCH_WANT_SYSCALL_DEPRECATED */
859 
860 /*
861  * 32 bit systems traditionally used different
862  * syscalls for off_t and loff_t arguments, while
863  * 64 bit systems only need the off_t version.
864  * For new 32 bit platforms, there is no need to
865  * implement the old 32 bit off_t syscalls, so
866  * they take different names.
867  * Here we map the numbers so that both versions
868  * use the same syscall table layout.
869  */
870 #if __BITS_PER_LONG == 64 && !defined(__SYSCALL_COMPAT)
871 #define __NR_fcntl __NR3264_fcntl
872 #define __NR_statfs __NR3264_statfs
873 #define __NR_fstatfs __NR3264_fstatfs
874 #define __NR_truncate __NR3264_truncate
875 #define __NR_ftruncate __NR3264_ftruncate
876 #define __NR_lseek __NR3264_lseek
877 #define __NR_sendfile __NR3264_sendfile
878 #define __NR_newfstatat __NR3264_fstatat
879 #define __NR_fstat __NR3264_fstat
880 #define __NR_mmap __NR3264_mmap
881 #define __NR_fadvise64 __NR3264_fadvise64
882 #ifdef __NR3264_stat
883 #define __NR_stat __NR3264_stat
884 #define __NR_lstat __NR3264_lstat
885 #endif
886 #else
887 #define __NR_fcntl64 __NR3264_fcntl
888 #define __NR_statfs64 __NR3264_statfs
889 #define __NR_fstatfs64 __NR3264_fstatfs
890 #define __NR_truncate64 __NR3264_truncate
891 #define __NR_ftruncate64 __NR3264_ftruncate
892 #define __NR_llseek __NR3264_lseek
893 #define __NR_sendfile64 __NR3264_sendfile
894 #define __NR_fstatat64 __NR3264_fstatat
895 #define __NR_fstat64 __NR3264_fstat
896 #define __NR_mmap2 __NR3264_mmap
897 #define __NR_fadvise64_64 __NR3264_fadvise64
898 #ifdef __NR3264_stat
899 #define __NR_stat64 __NR3264_stat
900 #define __NR_lstat64 __NR3264_lstat
901 #endif
902 #endif