1 #if 0 /* Auto generated: sh ./targ-linux.h
3 sed -n '1,/^#endif/p' targ-linux.h
6 echo '#include <sys/syscall.h>' | \
7 bfin-uclinux-gcc -E -dD -P - | \
9 -e '1istatic CB_TARGET_DEFS_MAP cb_linux_syscall_map[] = {' \
10 -e '$i\ \ { 0, -1, -1 }\n};' \
11 -e '/#define __NR_/{s:^.* __NR_(.*) (.*):#ifdef CB_SYS_\1\n# define TARGET_LINUX_SYS_\1 \2\n { "\1", CB_SYS_\1, TARGET_LINUX_SYS_\1 },\n#endif:;p;}'
14 echo '#include <errno.h>' | \
15 bfin-uclinux-gcc -E -dD -P - | \
17 -e '1istatic CB_TARGET_DEFS_MAP cb_linux_errno_map[] = {' \
18 -e '$i\ \ { 0, 0, 0 }\n};' \
19 -e '/#define E.* [0-9]/{s:^.* (E.*) (.*):#ifdef \1\n# define TARGET_LINUX_\1 \2\n { "\1", \1, TARGET_LINUX_\1 },\n#endif:;p;}'
22 echo '#include <fcntl.h>' | \
23 bfin-uclinux-gcc -E -dD -P - | \
25 -e '1istatic CB_TARGET_DEFS_MAP cb_linux_open_map[] = {' \
26 -e '$i\ \ { 0, -1, -1 }\n};' \
27 -e '/#define O.* [0-9]/{s:^.* (O_.*) (.*):#ifdef \1\n# define TARGET_LINUX_\1 \2\n { "\1", \1, TARGET_LINUX_\1 },\n#endif:;p;}'
30 # XXX: nothing uses this ?
31 echo '#include <signal.h>' | \
32 bfin-uclinux-gcc -E -dD -P - | \
34 -e '1istatic CB_TARGET_DEFS_MAP cb_linux_signal_map[] = {' \
35 -e '$i\ \ { 0, -1, -1 }\n};' \
36 -e '/#define SIG.* [0-9]+$/{s:^.* (SIG.*) (.*):#ifdef \1\n# define TARGET_LINUX_\1 \2\n { "\1", \1, TARGET_LINUX_\1 },\n#endif:;p;}'
42 static CB_TARGET_DEFS_MAP cb_linux_syscall_map
[] =
44 #ifdef CB_SYS_restart_syscall
45 # define TARGET_LINUX_SYS_restart_syscall 0
46 { "restart_syscall", CB_SYS_restart_syscall
, TARGET_LINUX_SYS_restart_syscall
},
49 # define TARGET_LINUX_SYS_exit 1
50 { "exit", CB_SYS_exit
, TARGET_LINUX_SYS_exit
},
53 # define TARGET_LINUX_SYS_fork 2
54 { "fork", CB_SYS_fork
, TARGET_LINUX_SYS_fork
},
57 # define TARGET_LINUX_SYS_read 3
58 { "read", CB_SYS_read
, TARGET_LINUX_SYS_read
},
61 # define TARGET_LINUX_SYS_write 4
62 { "write", CB_SYS_write
, TARGET_LINUX_SYS_write
},
65 # define TARGET_LINUX_SYS_open 5
66 { "open", CB_SYS_open
, TARGET_LINUX_SYS_open
},
69 # define TARGET_LINUX_SYS_close 6
70 { "close", CB_SYS_close
, TARGET_LINUX_SYS_close
},
73 # define TARGET_LINUX_SYS_creat 8
74 { "creat", CB_SYS_creat
, TARGET_LINUX_SYS_creat
},
77 # define TARGET_LINUX_SYS_link 9
78 { "link", CB_SYS_link
, TARGET_LINUX_SYS_link
},
81 # define TARGET_LINUX_SYS_unlink 10
82 { "unlink", CB_SYS_unlink
, TARGET_LINUX_SYS_unlink
},
85 # define TARGET_LINUX_SYS_execve 11
86 { "execve", CB_SYS_execve
, TARGET_LINUX_SYS_execve
},
89 # define TARGET_LINUX_SYS_chdir 12
90 { "chdir", CB_SYS_chdir
, TARGET_LINUX_SYS_chdir
},
93 # define TARGET_LINUX_SYS_time 13
94 { "time", CB_SYS_time
, TARGET_LINUX_SYS_time
},
97 # define TARGET_LINUX_SYS_mknod 14
98 { "mknod", CB_SYS_mknod
, TARGET_LINUX_SYS_mknod
},
101 # define TARGET_LINUX_SYS_chmod 15
102 { "chmod", CB_SYS_chmod
, TARGET_LINUX_SYS_chmod
},
105 # define TARGET_LINUX_SYS_chown 16
106 { "chown", CB_SYS_chown
, TARGET_LINUX_SYS_chown
},
109 # define TARGET_LINUX_SYS_lseek 19
110 { "lseek", CB_SYS_lseek
, TARGET_LINUX_SYS_lseek
},
113 # define TARGET_LINUX_SYS_getpid 20
114 { "getpid", CB_SYS_getpid
, TARGET_LINUX_SYS_getpid
},
117 # define TARGET_LINUX_SYS_mount 21
118 { "mount", CB_SYS_mount
, TARGET_LINUX_SYS_mount
},
121 # define TARGET_LINUX_SYS_setuid 23
122 { "setuid", CB_SYS_setuid
, TARGET_LINUX_SYS_setuid
},
125 # define TARGET_LINUX_SYS_getuid 24
126 { "getuid", CB_SYS_getuid
, TARGET_LINUX_SYS_getuid
},
129 # define TARGET_LINUX_SYS_stime 25
130 { "stime", CB_SYS_stime
, TARGET_LINUX_SYS_stime
},
133 # define TARGET_LINUX_SYS_ptrace 26
134 { "ptrace", CB_SYS_ptrace
, TARGET_LINUX_SYS_ptrace
},
137 # define TARGET_LINUX_SYS_alarm 27
138 { "alarm", CB_SYS_alarm
, TARGET_LINUX_SYS_alarm
},
141 # define TARGET_LINUX_SYS_pause 29
142 { "pause", CB_SYS_pause
, TARGET_LINUX_SYS_pause
},
145 # define TARGET_LINUX_SYS_access 33
146 { "access", CB_SYS_access
, TARGET_LINUX_SYS_access
},
149 # define TARGET_LINUX_SYS_nice 34
150 { "nice", CB_SYS_nice
, TARGET_LINUX_SYS_nice
},
153 # define TARGET_LINUX_SYS_sync 36
154 { "sync", CB_SYS_sync
, TARGET_LINUX_SYS_sync
},
157 # define TARGET_LINUX_SYS_kill 37
158 { "kill", CB_SYS_kill
, TARGET_LINUX_SYS_kill
},
161 # define TARGET_LINUX_SYS_rename 38
162 { "rename", CB_SYS_rename
, TARGET_LINUX_SYS_rename
},
165 # define TARGET_LINUX_SYS_mkdir 39
166 { "mkdir", CB_SYS_mkdir
, TARGET_LINUX_SYS_mkdir
},
169 # define TARGET_LINUX_SYS_rmdir 40
170 { "rmdir", CB_SYS_rmdir
, TARGET_LINUX_SYS_rmdir
},
173 # define TARGET_LINUX_SYS_dup 41
174 { "dup", CB_SYS_dup
, TARGET_LINUX_SYS_dup
},
177 # define TARGET_LINUX_SYS_pipe 42
178 { "pipe", CB_SYS_pipe
, TARGET_LINUX_SYS_pipe
},
181 # define TARGET_LINUX_SYS_times 43
182 { "times", CB_SYS_times
, TARGET_LINUX_SYS_times
},
185 # define TARGET_LINUX_SYS_brk 45
186 { "brk", CB_SYS_brk
, TARGET_LINUX_SYS_brk
},
189 # define TARGET_LINUX_SYS_setgid 46
190 { "setgid", CB_SYS_setgid
, TARGET_LINUX_SYS_setgid
},
193 # define TARGET_LINUX_SYS_getgid 47
194 { "getgid", CB_SYS_getgid
, TARGET_LINUX_SYS_getgid
},
196 #ifdef CB_SYS_geteuid
197 # define TARGET_LINUX_SYS_geteuid 49
198 { "geteuid", CB_SYS_geteuid
, TARGET_LINUX_SYS_geteuid
},
200 #ifdef CB_SYS_getegid
201 # define TARGET_LINUX_SYS_getegid 50
202 { "getegid", CB_SYS_getegid
, TARGET_LINUX_SYS_getegid
},
205 # define TARGET_LINUX_SYS_acct 51
206 { "acct", CB_SYS_acct
, TARGET_LINUX_SYS_acct
},
208 #ifdef CB_SYS_umount2
209 # define TARGET_LINUX_SYS_umount2 52
210 { "umount2", CB_SYS_umount2
, TARGET_LINUX_SYS_umount2
},
213 # define TARGET_LINUX_SYS_ioctl 54
214 { "ioctl", CB_SYS_ioctl
, TARGET_LINUX_SYS_ioctl
},
217 # define TARGET_LINUX_SYS_fcntl 55
218 { "fcntl", CB_SYS_fcntl
, TARGET_LINUX_SYS_fcntl
},
220 #ifdef CB_SYS_setpgid
221 # define TARGET_LINUX_SYS_setpgid 57
222 { "setpgid", CB_SYS_setpgid
, TARGET_LINUX_SYS_setpgid
},
225 # define TARGET_LINUX_SYS_umask 60
226 { "umask", CB_SYS_umask
, TARGET_LINUX_SYS_umask
},
229 # define TARGET_LINUX_SYS_chroot 61
230 { "chroot", CB_SYS_chroot
, TARGET_LINUX_SYS_chroot
},
233 # define TARGET_LINUX_SYS_ustat 62
234 { "ustat", CB_SYS_ustat
, TARGET_LINUX_SYS_ustat
},
237 # define TARGET_LINUX_SYS_dup2 63
238 { "dup2", CB_SYS_dup2
, TARGET_LINUX_SYS_dup2
},
240 #ifdef CB_SYS_getppid
241 # define TARGET_LINUX_SYS_getppid 64
242 { "getppid", CB_SYS_getppid
, TARGET_LINUX_SYS_getppid
},
244 #ifdef CB_SYS_getpgrp
245 # define TARGET_LINUX_SYS_getpgrp 65
246 { "getpgrp", CB_SYS_getpgrp
, TARGET_LINUX_SYS_getpgrp
},
249 # define TARGET_LINUX_SYS_setsid 66
250 { "setsid", CB_SYS_setsid
, TARGET_LINUX_SYS_setsid
},
252 #ifdef CB_SYS_sgetmask
253 # define TARGET_LINUX_SYS_sgetmask 68
254 { "sgetmask", CB_SYS_sgetmask
, TARGET_LINUX_SYS_sgetmask
},
256 #ifdef CB_SYS_ssetmask
257 # define TARGET_LINUX_SYS_ssetmask 69
258 { "ssetmask", CB_SYS_ssetmask
, TARGET_LINUX_SYS_ssetmask
},
260 #ifdef CB_SYS_setreuid
261 # define TARGET_LINUX_SYS_setreuid 70
262 { "setreuid", CB_SYS_setreuid
, TARGET_LINUX_SYS_setreuid
},
264 #ifdef CB_SYS_setregid
265 # define TARGET_LINUX_SYS_setregid 71
266 { "setregid", CB_SYS_setregid
, TARGET_LINUX_SYS_setregid
},
268 #ifdef CB_SYS_sethostname
269 # define TARGET_LINUX_SYS_sethostname 74
270 { "sethostname", CB_SYS_sethostname
, TARGET_LINUX_SYS_sethostname
},
272 #ifdef CB_SYS_setrlimit
273 # define TARGET_LINUX_SYS_setrlimit 75
274 { "setrlimit", CB_SYS_setrlimit
, TARGET_LINUX_SYS_setrlimit
},
276 #ifdef CB_SYS_getrusage
277 # define TARGET_LINUX_SYS_getrusage 77
278 { "getrusage", CB_SYS_getrusage
, TARGET_LINUX_SYS_getrusage
},
280 #ifdef CB_SYS_gettimeofday
281 # define TARGET_LINUX_SYS_gettimeofday 78
282 { "gettimeofday", CB_SYS_gettimeofday
, TARGET_LINUX_SYS_gettimeofday
},
284 #ifdef CB_SYS_settimeofday
285 # define TARGET_LINUX_SYS_settimeofday 79
286 { "settimeofday", CB_SYS_settimeofday
, TARGET_LINUX_SYS_settimeofday
},
288 #ifdef CB_SYS_getgroups
289 # define TARGET_LINUX_SYS_getgroups 80
290 { "getgroups", CB_SYS_getgroups
, TARGET_LINUX_SYS_getgroups
},
292 #ifdef CB_SYS_setgroups
293 # define TARGET_LINUX_SYS_setgroups 81
294 { "setgroups", CB_SYS_setgroups
, TARGET_LINUX_SYS_setgroups
},
296 #ifdef CB_SYS_symlink
297 # define TARGET_LINUX_SYS_symlink 83
298 { "symlink", CB_SYS_symlink
, TARGET_LINUX_SYS_symlink
},
300 #ifdef CB_SYS_readlink
301 # define TARGET_LINUX_SYS_readlink 85
302 { "readlink", CB_SYS_readlink
, TARGET_LINUX_SYS_readlink
},
305 # define TARGET_LINUX_SYS_reboot 88
306 { "reboot", CB_SYS_reboot
, TARGET_LINUX_SYS_reboot
},
309 # define TARGET_LINUX_SYS_munmap 91
310 { "munmap", CB_SYS_munmap
, TARGET_LINUX_SYS_munmap
},
312 #ifdef CB_SYS_truncate
313 # define TARGET_LINUX_SYS_truncate 92
314 { "truncate", CB_SYS_truncate
, TARGET_LINUX_SYS_truncate
},
316 #ifdef CB_SYS_ftruncate
317 # define TARGET_LINUX_SYS_ftruncate 93
318 { "ftruncate", CB_SYS_ftruncate
, TARGET_LINUX_SYS_ftruncate
},
321 # define TARGET_LINUX_SYS_fchmod 94
322 { "fchmod", CB_SYS_fchmod
, TARGET_LINUX_SYS_fchmod
},
325 # define TARGET_LINUX_SYS_fchown 95
326 { "fchown", CB_SYS_fchown
, TARGET_LINUX_SYS_fchown
},
328 #ifdef CB_SYS_getpriority
329 # define TARGET_LINUX_SYS_getpriority 96
330 { "getpriority", CB_SYS_getpriority
, TARGET_LINUX_SYS_getpriority
},
332 #ifdef CB_SYS_setpriority
333 # define TARGET_LINUX_SYS_setpriority 97
334 { "setpriority", CB_SYS_setpriority
, TARGET_LINUX_SYS_setpriority
},
337 # define TARGET_LINUX_SYS_statfs 99
338 { "statfs", CB_SYS_statfs
, TARGET_LINUX_SYS_statfs
},
340 #ifdef CB_SYS_fstatfs
341 # define TARGET_LINUX_SYS_fstatfs 100
342 { "fstatfs", CB_SYS_fstatfs
, TARGET_LINUX_SYS_fstatfs
},
345 # define TARGET_LINUX_SYS_syslog 103
346 { "syslog", CB_SYS_syslog
, TARGET_LINUX_SYS_syslog
},
348 #ifdef CB_SYS_setitimer
349 # define TARGET_LINUX_SYS_setitimer 104
350 { "setitimer", CB_SYS_setitimer
, TARGET_LINUX_SYS_setitimer
},
352 #ifdef CB_SYS_getitimer
353 # define TARGET_LINUX_SYS_getitimer 105
354 { "getitimer", CB_SYS_getitimer
, TARGET_LINUX_SYS_getitimer
},
357 # define TARGET_LINUX_SYS_stat 106
358 { "stat", CB_SYS_stat
, TARGET_LINUX_SYS_stat
},
361 # define TARGET_LINUX_SYS_lstat 107
362 { "lstat", CB_SYS_lstat
, TARGET_LINUX_SYS_lstat
},
365 # define TARGET_LINUX_SYS_fstat 108
366 { "fstat", CB_SYS_fstat
, TARGET_LINUX_SYS_fstat
},
368 #ifdef CB_SYS_vhangup
369 # define TARGET_LINUX_SYS_vhangup 111
370 { "vhangup", CB_SYS_vhangup
, TARGET_LINUX_SYS_vhangup
},
373 # define TARGET_LINUX_SYS_wait4 114
374 { "wait4", CB_SYS_wait4
, TARGET_LINUX_SYS_wait4
},
376 #ifdef CB_SYS_sysinfo
377 # define TARGET_LINUX_SYS_sysinfo 116
378 { "sysinfo", CB_SYS_sysinfo
, TARGET_LINUX_SYS_sysinfo
},
381 # define TARGET_LINUX_SYS_fsync 118
382 { "fsync", CB_SYS_fsync
, TARGET_LINUX_SYS_fsync
},
385 # define TARGET_LINUX_SYS_clone 120
386 { "clone", CB_SYS_clone
, TARGET_LINUX_SYS_clone
},
388 #ifdef CB_SYS_setdomainname
389 # define TARGET_LINUX_SYS_setdomainname 121
390 { "setdomainname", CB_SYS_setdomainname
, TARGET_LINUX_SYS_setdomainname
},
393 # define TARGET_LINUX_SYS_uname 122
394 { "uname", CB_SYS_uname
, TARGET_LINUX_SYS_uname
},
396 #ifdef CB_SYS_adjtimex
397 # define TARGET_LINUX_SYS_adjtimex 124
398 { "adjtimex", CB_SYS_adjtimex
, TARGET_LINUX_SYS_adjtimex
},
400 #ifdef CB_SYS_mprotect
401 # define TARGET_LINUX_SYS_mprotect 125
402 { "mprotect", CB_SYS_mprotect
, TARGET_LINUX_SYS_mprotect
},
404 #ifdef CB_SYS_init_module
405 # define TARGET_LINUX_SYS_init_module 128
406 { "init_module", CB_SYS_init_module
, TARGET_LINUX_SYS_init_module
},
408 #ifdef CB_SYS_delete_module
409 # define TARGET_LINUX_SYS_delete_module 129
410 { "delete_module", CB_SYS_delete_module
, TARGET_LINUX_SYS_delete_module
},
412 #ifdef CB_SYS_quotactl
413 # define TARGET_LINUX_SYS_quotactl 131
414 { "quotactl", CB_SYS_quotactl
, TARGET_LINUX_SYS_quotactl
},
416 #ifdef CB_SYS_getpgid
417 # define TARGET_LINUX_SYS_getpgid 132
418 { "getpgid", CB_SYS_getpgid
, TARGET_LINUX_SYS_getpgid
},
421 # define TARGET_LINUX_SYS_fchdir 133
422 { "fchdir", CB_SYS_fchdir
, TARGET_LINUX_SYS_fchdir
},
424 #ifdef CB_SYS_bdflush
425 # define TARGET_LINUX_SYS_bdflush 134
426 { "bdflush", CB_SYS_bdflush
, TARGET_LINUX_SYS_bdflush
},
428 #ifdef CB_SYS_personality
429 # define TARGET_LINUX_SYS_personality 136
430 { "personality", CB_SYS_personality
, TARGET_LINUX_SYS_personality
},
432 #ifdef CB_SYS_setfsuid
433 # define TARGET_LINUX_SYS_setfsuid 138
434 { "setfsuid", CB_SYS_setfsuid
, TARGET_LINUX_SYS_setfsuid
},
436 #ifdef CB_SYS_setfsgid
437 # define TARGET_LINUX_SYS_setfsgid 139
438 { "setfsgid", CB_SYS_setfsgid
, TARGET_LINUX_SYS_setfsgid
},
440 #ifdef CB_SYS__llseek
441 # define TARGET_LINUX_SYS__llseek 140
442 { "_llseek", CB_SYS__llseek
, TARGET_LINUX_SYS__llseek
},
444 #ifdef CB_SYS_getdents
445 # define TARGET_LINUX_SYS_getdents 141
446 { "getdents", CB_SYS_getdents
, TARGET_LINUX_SYS_getdents
},
449 # define TARGET_LINUX_SYS_flock 143
450 { "flock", CB_SYS_flock
, TARGET_LINUX_SYS_flock
},
453 # define TARGET_LINUX_SYS_readv 145
454 { "readv", CB_SYS_readv
, TARGET_LINUX_SYS_readv
},
457 # define TARGET_LINUX_SYS_writev 146
458 { "writev", CB_SYS_writev
, TARGET_LINUX_SYS_writev
},
461 # define TARGET_LINUX_SYS_getsid 147
462 { "getsid", CB_SYS_getsid
, TARGET_LINUX_SYS_getsid
},
464 #ifdef CB_SYS_fdatasync
465 # define TARGET_LINUX_SYS_fdatasync 148
466 { "fdatasync", CB_SYS_fdatasync
, TARGET_LINUX_SYS_fdatasync
},
468 #ifdef CB_SYS__sysctl
469 # define TARGET_LINUX_SYS__sysctl 149
470 { "_sysctl", CB_SYS__sysctl
, TARGET_LINUX_SYS__sysctl
},
472 #ifdef CB_SYS_sched_setparam
473 # define TARGET_LINUX_SYS_sched_setparam 154
474 { "sched_setparam", CB_SYS_sched_setparam
, TARGET_LINUX_SYS_sched_setparam
},
476 #ifdef CB_SYS_sched_getparam
477 # define TARGET_LINUX_SYS_sched_getparam 155
478 { "sched_getparam", CB_SYS_sched_getparam
, TARGET_LINUX_SYS_sched_getparam
},
480 #ifdef CB_SYS_sched_setscheduler
481 # define TARGET_LINUX_SYS_sched_setscheduler 156
482 { "sched_setscheduler", CB_SYS_sched_setscheduler
, TARGET_LINUX_SYS_sched_setscheduler
},
484 #ifdef CB_SYS_sched_getscheduler
485 # define TARGET_LINUX_SYS_sched_getscheduler 157
486 { "sched_getscheduler", CB_SYS_sched_getscheduler
, TARGET_LINUX_SYS_sched_getscheduler
},
488 #ifdef CB_SYS_sched_yield
489 # define TARGET_LINUX_SYS_sched_yield 158
490 { "sched_yield", CB_SYS_sched_yield
, TARGET_LINUX_SYS_sched_yield
},
492 #ifdef CB_SYS_sched_get_priority_max
493 # define TARGET_LINUX_SYS_sched_get_priority_max 159
494 { "sched_get_priority_max", CB_SYS_sched_get_priority_max
, TARGET_LINUX_SYS_sched_get_priority_max
},
496 #ifdef CB_SYS_sched_get_priority_min
497 # define TARGET_LINUX_SYS_sched_get_priority_min 160
498 { "sched_get_priority_min", CB_SYS_sched_get_priority_min
, TARGET_LINUX_SYS_sched_get_priority_min
},
500 #ifdef CB_SYS_sched_rr_get_interval
501 # define TARGET_LINUX_SYS_sched_rr_get_interval 161
502 { "sched_rr_get_interval", CB_SYS_sched_rr_get_interval
, TARGET_LINUX_SYS_sched_rr_get_interval
},
504 #ifdef CB_SYS_nanosleep
505 # define TARGET_LINUX_SYS_nanosleep 162
506 { "nanosleep", CB_SYS_nanosleep
, TARGET_LINUX_SYS_nanosleep
},
509 # define TARGET_LINUX_SYS_mremap 163
510 { "mremap", CB_SYS_mremap
, TARGET_LINUX_SYS_mremap
},
512 #ifdef CB_SYS_setresuid
513 # define TARGET_LINUX_SYS_setresuid 164
514 { "setresuid", CB_SYS_setresuid
, TARGET_LINUX_SYS_setresuid
},
516 #ifdef CB_SYS_getresuid
517 # define TARGET_LINUX_SYS_getresuid 165
518 { "getresuid", CB_SYS_getresuid
, TARGET_LINUX_SYS_getresuid
},
520 #ifdef CB_SYS_nfsservctl
521 # define TARGET_LINUX_SYS_nfsservctl 169
522 { "nfsservctl", CB_SYS_nfsservctl
, TARGET_LINUX_SYS_nfsservctl
},
524 #ifdef CB_SYS_setresgid
525 # define TARGET_LINUX_SYS_setresgid 170
526 { "setresgid", CB_SYS_setresgid
, TARGET_LINUX_SYS_setresgid
},
528 #ifdef CB_SYS_getresgid
529 # define TARGET_LINUX_SYS_getresgid 171
530 { "getresgid", CB_SYS_getresgid
, TARGET_LINUX_SYS_getresgid
},
533 # define TARGET_LINUX_SYS_prctl 172
534 { "prctl", CB_SYS_prctl
, TARGET_LINUX_SYS_prctl
},
536 #ifdef CB_SYS_rt_sigreturn
537 # define TARGET_LINUX_SYS_rt_sigreturn 173
538 { "rt_sigreturn", CB_SYS_rt_sigreturn
, TARGET_LINUX_SYS_rt_sigreturn
},
540 #ifdef CB_SYS_rt_sigaction
541 # define TARGET_LINUX_SYS_rt_sigaction 174
542 { "rt_sigaction", CB_SYS_rt_sigaction
, TARGET_LINUX_SYS_rt_sigaction
},
544 #ifdef CB_SYS_rt_sigprocmask
545 # define TARGET_LINUX_SYS_rt_sigprocmask 175
546 { "rt_sigprocmask", CB_SYS_rt_sigprocmask
, TARGET_LINUX_SYS_rt_sigprocmask
},
548 #ifdef CB_SYS_rt_sigpending
549 # define TARGET_LINUX_SYS_rt_sigpending 176
550 { "rt_sigpending", CB_SYS_rt_sigpending
, TARGET_LINUX_SYS_rt_sigpending
},
552 #ifdef CB_SYS_rt_sigtimedwait
553 # define TARGET_LINUX_SYS_rt_sigtimedwait 177
554 { "rt_sigtimedwait", CB_SYS_rt_sigtimedwait
, TARGET_LINUX_SYS_rt_sigtimedwait
},
556 #ifdef CB_SYS_rt_sigqueueinfo
557 # define TARGET_LINUX_SYS_rt_sigqueueinfo 178
558 { "rt_sigqueueinfo", CB_SYS_rt_sigqueueinfo
, TARGET_LINUX_SYS_rt_sigqueueinfo
},
560 #ifdef CB_SYS_rt_sigsuspend
561 # define TARGET_LINUX_SYS_rt_sigsuspend 179
562 { "rt_sigsuspend", CB_SYS_rt_sigsuspend
, TARGET_LINUX_SYS_rt_sigsuspend
},
565 # define TARGET_LINUX_SYS_pread 180
566 { "pread", CB_SYS_pread
, TARGET_LINUX_SYS_pread
},
569 # define TARGET_LINUX_SYS_pwrite 181
570 { "pwrite", CB_SYS_pwrite
, TARGET_LINUX_SYS_pwrite
},
573 # define TARGET_LINUX_SYS_lchown 182
574 { "lchown", CB_SYS_lchown
, TARGET_LINUX_SYS_lchown
},
577 # define TARGET_LINUX_SYS_getcwd 183
578 { "getcwd", CB_SYS_getcwd
, TARGET_LINUX_SYS_getcwd
},
581 # define TARGET_LINUX_SYS_capget 184
582 { "capget", CB_SYS_capget
, TARGET_LINUX_SYS_capget
},
585 # define TARGET_LINUX_SYS_capset 185
586 { "capset", CB_SYS_capset
, TARGET_LINUX_SYS_capset
},
588 #ifdef CB_SYS_sigaltstack
589 # define TARGET_LINUX_SYS_sigaltstack 186
590 { "sigaltstack", CB_SYS_sigaltstack
, TARGET_LINUX_SYS_sigaltstack
},
592 #ifdef CB_SYS_sendfile
593 # define TARGET_LINUX_SYS_sendfile 187
594 { "sendfile", CB_SYS_sendfile
, TARGET_LINUX_SYS_sendfile
},
597 # define TARGET_LINUX_SYS_vfork 190
598 { "vfork", CB_SYS_vfork
, TARGET_LINUX_SYS_vfork
},
600 #ifdef CB_SYS_getrlimit
601 # define TARGET_LINUX_SYS_getrlimit 191
602 { "getrlimit", CB_SYS_getrlimit
, TARGET_LINUX_SYS_getrlimit
},
605 # define TARGET_LINUX_SYS_mmap2 192
606 { "mmap2", CB_SYS_mmap2
, TARGET_LINUX_SYS_mmap2
},
608 #ifdef CB_SYS_truncate64
609 # define TARGET_LINUX_SYS_truncate64 193
610 { "truncate64", CB_SYS_truncate64
, TARGET_LINUX_SYS_truncate64
},
612 #ifdef CB_SYS_ftruncate64
613 # define TARGET_LINUX_SYS_ftruncate64 194
614 { "ftruncate64", CB_SYS_ftruncate64
, TARGET_LINUX_SYS_ftruncate64
},
617 # define TARGET_LINUX_SYS_stat64 195
618 { "stat64", CB_SYS_stat64
, TARGET_LINUX_SYS_stat64
},
620 #ifdef CB_SYS_lstat64
621 # define TARGET_LINUX_SYS_lstat64 196
622 { "lstat64", CB_SYS_lstat64
, TARGET_LINUX_SYS_lstat64
},
624 #ifdef CB_SYS_fstat64
625 # define TARGET_LINUX_SYS_fstat64 197
626 { "fstat64", CB_SYS_fstat64
, TARGET_LINUX_SYS_fstat64
},
628 #ifdef CB_SYS_chown32
629 # define TARGET_LINUX_SYS_chown32 198
630 { "chown32", CB_SYS_chown32
, TARGET_LINUX_SYS_chown32
},
632 #ifdef CB_SYS_getuid32
633 # define TARGET_LINUX_SYS_getuid32 199
634 { "getuid32", CB_SYS_getuid32
, TARGET_LINUX_SYS_getuid32
},
636 #ifdef CB_SYS_getgid32
637 # define TARGET_LINUX_SYS_getgid32 200
638 { "getgid32", CB_SYS_getgid32
, TARGET_LINUX_SYS_getgid32
},
640 #ifdef CB_SYS_geteuid32
641 # define TARGET_LINUX_SYS_geteuid32 201
642 { "geteuid32", CB_SYS_geteuid32
, TARGET_LINUX_SYS_geteuid32
},
644 #ifdef CB_SYS_getegid32
645 # define TARGET_LINUX_SYS_getegid32 202
646 { "getegid32", CB_SYS_getegid32
, TARGET_LINUX_SYS_getegid32
},
648 #ifdef CB_SYS_setreuid32
649 # define TARGET_LINUX_SYS_setreuid32 203
650 { "setreuid32", CB_SYS_setreuid32
, TARGET_LINUX_SYS_setreuid32
},
652 #ifdef CB_SYS_setregid32
653 # define TARGET_LINUX_SYS_setregid32 204
654 { "setregid32", CB_SYS_setregid32
, TARGET_LINUX_SYS_setregid32
},
656 #ifdef CB_SYS_getgroups32
657 # define TARGET_LINUX_SYS_getgroups32 205
658 { "getgroups32", CB_SYS_getgroups32
, TARGET_LINUX_SYS_getgroups32
},
660 #ifdef CB_SYS_setgroups32
661 # define TARGET_LINUX_SYS_setgroups32 206
662 { "setgroups32", CB_SYS_setgroups32
, TARGET_LINUX_SYS_setgroups32
},
664 #ifdef CB_SYS_fchown32
665 # define TARGET_LINUX_SYS_fchown32 207
666 { "fchown32", CB_SYS_fchown32
, TARGET_LINUX_SYS_fchown32
},
668 #ifdef CB_SYS_setresuid32
669 # define TARGET_LINUX_SYS_setresuid32 208
670 { "setresuid32", CB_SYS_setresuid32
, TARGET_LINUX_SYS_setresuid32
},
672 #ifdef CB_SYS_getresuid32
673 # define TARGET_LINUX_SYS_getresuid32 209
674 { "getresuid32", CB_SYS_getresuid32
, TARGET_LINUX_SYS_getresuid32
},
676 #ifdef CB_SYS_setresgid32
677 # define TARGET_LINUX_SYS_setresgid32 210
678 { "setresgid32", CB_SYS_setresgid32
, TARGET_LINUX_SYS_setresgid32
},
680 #ifdef CB_SYS_getresgid32
681 # define TARGET_LINUX_SYS_getresgid32 211
682 { "getresgid32", CB_SYS_getresgid32
, TARGET_LINUX_SYS_getresgid32
},
684 #ifdef CB_SYS_lchown32
685 # define TARGET_LINUX_SYS_lchown32 212
686 { "lchown32", CB_SYS_lchown32
, TARGET_LINUX_SYS_lchown32
},
688 #ifdef CB_SYS_setuid32
689 # define TARGET_LINUX_SYS_setuid32 213
690 { "setuid32", CB_SYS_setuid32
, TARGET_LINUX_SYS_setuid32
},
692 #ifdef CB_SYS_setgid32
693 # define TARGET_LINUX_SYS_setgid32 214
694 { "setgid32", CB_SYS_setgid32
, TARGET_LINUX_SYS_setgid32
},
696 #ifdef CB_SYS_setfsuid32
697 # define TARGET_LINUX_SYS_setfsuid32 215
698 { "setfsuid32", CB_SYS_setfsuid32
, TARGET_LINUX_SYS_setfsuid32
},
700 #ifdef CB_SYS_setfsgid32
701 # define TARGET_LINUX_SYS_setfsgid32 216
702 { "setfsgid32", CB_SYS_setfsgid32
, TARGET_LINUX_SYS_setfsgid32
},
704 #ifdef CB_SYS_pivot_root
705 # define TARGET_LINUX_SYS_pivot_root 217
706 { "pivot_root", CB_SYS_pivot_root
, TARGET_LINUX_SYS_pivot_root
},
708 #ifdef CB_SYS_getdents64
709 # define TARGET_LINUX_SYS_getdents64 220
710 { "getdents64", CB_SYS_getdents64
, TARGET_LINUX_SYS_getdents64
},
712 #ifdef CB_SYS_fcntl64
713 # define TARGET_LINUX_SYS_fcntl64 221
714 { "fcntl64", CB_SYS_fcntl64
, TARGET_LINUX_SYS_fcntl64
},
717 # define TARGET_LINUX_SYS_gettid 224
718 { "gettid", CB_SYS_gettid
, TARGET_LINUX_SYS_gettid
},
720 #ifdef CB_SYS_readahead
721 # define TARGET_LINUX_SYS_readahead 225
722 { "readahead", CB_SYS_readahead
, TARGET_LINUX_SYS_readahead
},
724 #ifdef CB_SYS_setxattr
725 # define TARGET_LINUX_SYS_setxattr 226
726 { "setxattr", CB_SYS_setxattr
, TARGET_LINUX_SYS_setxattr
},
728 #ifdef CB_SYS_lsetxattr
729 # define TARGET_LINUX_SYS_lsetxattr 227
730 { "lsetxattr", CB_SYS_lsetxattr
, TARGET_LINUX_SYS_lsetxattr
},
732 #ifdef CB_SYS_fsetxattr
733 # define TARGET_LINUX_SYS_fsetxattr 228
734 { "fsetxattr", CB_SYS_fsetxattr
, TARGET_LINUX_SYS_fsetxattr
},
736 #ifdef CB_SYS_getxattr
737 # define TARGET_LINUX_SYS_getxattr 229
738 { "getxattr", CB_SYS_getxattr
, TARGET_LINUX_SYS_getxattr
},
740 #ifdef CB_SYS_lgetxattr
741 # define TARGET_LINUX_SYS_lgetxattr 230
742 { "lgetxattr", CB_SYS_lgetxattr
, TARGET_LINUX_SYS_lgetxattr
},
744 #ifdef CB_SYS_fgetxattr
745 # define TARGET_LINUX_SYS_fgetxattr 231
746 { "fgetxattr", CB_SYS_fgetxattr
, TARGET_LINUX_SYS_fgetxattr
},
748 #ifdef CB_SYS_listxattr
749 # define TARGET_LINUX_SYS_listxattr 232
750 { "listxattr", CB_SYS_listxattr
, TARGET_LINUX_SYS_listxattr
},
752 #ifdef CB_SYS_llistxattr
753 # define TARGET_LINUX_SYS_llistxattr 233
754 { "llistxattr", CB_SYS_llistxattr
, TARGET_LINUX_SYS_llistxattr
},
756 #ifdef CB_SYS_flistxattr
757 # define TARGET_LINUX_SYS_flistxattr 234
758 { "flistxattr", CB_SYS_flistxattr
, TARGET_LINUX_SYS_flistxattr
},
760 #ifdef CB_SYS_removexattr
761 # define TARGET_LINUX_SYS_removexattr 235
762 { "removexattr", CB_SYS_removexattr
, TARGET_LINUX_SYS_removexattr
},
764 #ifdef CB_SYS_lremovexattr
765 # define TARGET_LINUX_SYS_lremovexattr 236
766 { "lremovexattr", CB_SYS_lremovexattr
, TARGET_LINUX_SYS_lremovexattr
},
768 #ifdef CB_SYS_fremovexattr
769 # define TARGET_LINUX_SYS_fremovexattr 237
770 { "fremovexattr", CB_SYS_fremovexattr
, TARGET_LINUX_SYS_fremovexattr
},
773 # define TARGET_LINUX_SYS_tkill 238
774 { "tkill", CB_SYS_tkill
, TARGET_LINUX_SYS_tkill
},
776 #ifdef CB_SYS_sendfile64
777 # define TARGET_LINUX_SYS_sendfile64 239
778 { "sendfile64", CB_SYS_sendfile64
, TARGET_LINUX_SYS_sendfile64
},
781 # define TARGET_LINUX_SYS_futex 240
782 { "futex", CB_SYS_futex
, TARGET_LINUX_SYS_futex
},
784 #ifdef CB_SYS_sched_setaffinity
785 # define TARGET_LINUX_SYS_sched_setaffinity 241
786 { "sched_setaffinity", CB_SYS_sched_setaffinity
, TARGET_LINUX_SYS_sched_setaffinity
},
788 #ifdef CB_SYS_sched_getaffinity
789 # define TARGET_LINUX_SYS_sched_getaffinity 242
790 { "sched_getaffinity", CB_SYS_sched_getaffinity
, TARGET_LINUX_SYS_sched_getaffinity
},
792 #ifdef CB_SYS_io_setup
793 # define TARGET_LINUX_SYS_io_setup 245
794 { "io_setup", CB_SYS_io_setup
, TARGET_LINUX_SYS_io_setup
},
796 #ifdef CB_SYS_io_destroy
797 # define TARGET_LINUX_SYS_io_destroy 246
798 { "io_destroy", CB_SYS_io_destroy
, TARGET_LINUX_SYS_io_destroy
},
800 #ifdef CB_SYS_io_getevents
801 # define TARGET_LINUX_SYS_io_getevents 247
802 { "io_getevents", CB_SYS_io_getevents
, TARGET_LINUX_SYS_io_getevents
},
804 #ifdef CB_SYS_io_submit
805 # define TARGET_LINUX_SYS_io_submit 248
806 { "io_submit", CB_SYS_io_submit
, TARGET_LINUX_SYS_io_submit
},
808 #ifdef CB_SYS_io_cancel
809 # define TARGET_LINUX_SYS_io_cancel 249
810 { "io_cancel", CB_SYS_io_cancel
, TARGET_LINUX_SYS_io_cancel
},
812 #ifdef CB_SYS_exit_group
813 # define TARGET_LINUX_SYS_exit_group 252
814 { "exit_group", CB_SYS_exit_group
, TARGET_LINUX_SYS_exit_group
},
816 #ifdef CB_SYS_lookup_dcookie
817 # define TARGET_LINUX_SYS_lookup_dcookie 253
818 { "lookup_dcookie", CB_SYS_lookup_dcookie
, TARGET_LINUX_SYS_lookup_dcookie
},
820 #ifdef CB_SYS_bfin_spinlock
821 # define TARGET_LINUX_SYS_bfin_spinlock 254
822 { "bfin_spinlock", CB_SYS_bfin_spinlock
, TARGET_LINUX_SYS_bfin_spinlock
},
824 #ifdef CB_SYS_epoll_create
825 # define TARGET_LINUX_SYS_epoll_create 255
826 { "epoll_create", CB_SYS_epoll_create
, TARGET_LINUX_SYS_epoll_create
},
828 #ifdef CB_SYS_epoll_ctl
829 # define TARGET_LINUX_SYS_epoll_ctl 256
830 { "epoll_ctl", CB_SYS_epoll_ctl
, TARGET_LINUX_SYS_epoll_ctl
},
832 #ifdef CB_SYS_epoll_wait
833 # define TARGET_LINUX_SYS_epoll_wait 257
834 { "epoll_wait", CB_SYS_epoll_wait
, TARGET_LINUX_SYS_epoll_wait
},
836 #ifdef CB_SYS_set_tid_address
837 # define TARGET_LINUX_SYS_set_tid_address 259
838 { "set_tid_address", CB_SYS_set_tid_address
, TARGET_LINUX_SYS_set_tid_address
},
840 #ifdef CB_SYS_timer_create
841 # define TARGET_LINUX_SYS_timer_create 260
842 { "timer_create", CB_SYS_timer_create
, TARGET_LINUX_SYS_timer_create
},
844 #ifdef CB_SYS_timer_settime
845 # define TARGET_LINUX_SYS_timer_settime 261
846 { "timer_settime", CB_SYS_timer_settime
, TARGET_LINUX_SYS_timer_settime
},
848 #ifdef CB_SYS_timer_gettime
849 # define TARGET_LINUX_SYS_timer_gettime 262
850 { "timer_gettime", CB_SYS_timer_gettime
, TARGET_LINUX_SYS_timer_gettime
},
852 #ifdef CB_SYS_timer_getoverrun
853 # define TARGET_LINUX_SYS_timer_getoverrun 263
854 { "timer_getoverrun", CB_SYS_timer_getoverrun
, TARGET_LINUX_SYS_timer_getoverrun
},
856 #ifdef CB_SYS_timer_delete
857 # define TARGET_LINUX_SYS_timer_delete 264
858 { "timer_delete", CB_SYS_timer_delete
, TARGET_LINUX_SYS_timer_delete
},
860 #ifdef CB_SYS_clock_settime
861 # define TARGET_LINUX_SYS_clock_settime 265
862 { "clock_settime", CB_SYS_clock_settime
, TARGET_LINUX_SYS_clock_settime
},
864 #ifdef CB_SYS_clock_gettime
865 # define TARGET_LINUX_SYS_clock_gettime 266
866 { "clock_gettime", CB_SYS_clock_gettime
, TARGET_LINUX_SYS_clock_gettime
},
868 #ifdef CB_SYS_clock_getres
869 # define TARGET_LINUX_SYS_clock_getres 267
870 { "clock_getres", CB_SYS_clock_getres
, TARGET_LINUX_SYS_clock_getres
},
872 #ifdef CB_SYS_clock_nanosleep
873 # define TARGET_LINUX_SYS_clock_nanosleep 268
874 { "clock_nanosleep", CB_SYS_clock_nanosleep
, TARGET_LINUX_SYS_clock_nanosleep
},
876 #ifdef CB_SYS_statfs64
877 # define TARGET_LINUX_SYS_statfs64 269
878 { "statfs64", CB_SYS_statfs64
, TARGET_LINUX_SYS_statfs64
},
880 #ifdef CB_SYS_fstatfs64
881 # define TARGET_LINUX_SYS_fstatfs64 270
882 { "fstatfs64", CB_SYS_fstatfs64
, TARGET_LINUX_SYS_fstatfs64
},
885 # define TARGET_LINUX_SYS_tgkill 271
886 { "tgkill", CB_SYS_tgkill
, TARGET_LINUX_SYS_tgkill
},
889 # define TARGET_LINUX_SYS_utimes 272
890 { "utimes", CB_SYS_utimes
, TARGET_LINUX_SYS_utimes
},
892 #ifdef CB_SYS_fadvise64_64
893 # define TARGET_LINUX_SYS_fadvise64_64 273
894 { "fadvise64_64", CB_SYS_fadvise64_64
, TARGET_LINUX_SYS_fadvise64_64
},
896 #ifdef CB_SYS_mq_open
897 # define TARGET_LINUX_SYS_mq_open 278
898 { "mq_open", CB_SYS_mq_open
, TARGET_LINUX_SYS_mq_open
},
900 #ifdef CB_SYS_mq_unlink
901 # define TARGET_LINUX_SYS_mq_unlink 279
902 { "mq_unlink", CB_SYS_mq_unlink
, TARGET_LINUX_SYS_mq_unlink
},
904 #ifdef CB_SYS_mq_timedsend
905 # define TARGET_LINUX_SYS_mq_timedsend 280
906 { "mq_timedsend", CB_SYS_mq_timedsend
, TARGET_LINUX_SYS_mq_timedsend
},
908 #ifdef CB_SYS_mq_timedreceive
909 # define TARGET_LINUX_SYS_mq_timedreceive 281
910 { "mq_timedreceive", CB_SYS_mq_timedreceive
, TARGET_LINUX_SYS_mq_timedreceive
},
912 #ifdef CB_SYS_mq_notify
913 # define TARGET_LINUX_SYS_mq_notify 282
914 { "mq_notify", CB_SYS_mq_notify
, TARGET_LINUX_SYS_mq_notify
},
916 #ifdef CB_SYS_mq_getsetattr
917 # define TARGET_LINUX_SYS_mq_getsetattr 283
918 { "mq_getsetattr", CB_SYS_mq_getsetattr
, TARGET_LINUX_SYS_mq_getsetattr
},
920 #ifdef CB_SYS_kexec_load
921 # define TARGET_LINUX_SYS_kexec_load 284
922 { "kexec_load", CB_SYS_kexec_load
, TARGET_LINUX_SYS_kexec_load
},
925 # define TARGET_LINUX_SYS_waitid 285
926 { "waitid", CB_SYS_waitid
, TARGET_LINUX_SYS_waitid
},
928 #ifdef CB_SYS_add_key
929 # define TARGET_LINUX_SYS_add_key 286
930 { "add_key", CB_SYS_add_key
, TARGET_LINUX_SYS_add_key
},
932 #ifdef CB_SYS_request_key
933 # define TARGET_LINUX_SYS_request_key 287
934 { "request_key", CB_SYS_request_key
, TARGET_LINUX_SYS_request_key
},
937 # define TARGET_LINUX_SYS_keyctl 288
938 { "keyctl", CB_SYS_keyctl
, TARGET_LINUX_SYS_keyctl
},
940 #ifdef CB_SYS_ioprio_set
941 # define TARGET_LINUX_SYS_ioprio_set 289
942 { "ioprio_set", CB_SYS_ioprio_set
, TARGET_LINUX_SYS_ioprio_set
},
944 #ifdef CB_SYS_ioprio_get
945 # define TARGET_LINUX_SYS_ioprio_get 290
946 { "ioprio_get", CB_SYS_ioprio_get
, TARGET_LINUX_SYS_ioprio_get
},
948 #ifdef CB_SYS_inotify_init
949 # define TARGET_LINUX_SYS_inotify_init 291
950 { "inotify_init", CB_SYS_inotify_init
, TARGET_LINUX_SYS_inotify_init
},
952 #ifdef CB_SYS_inotify_add_watch
953 # define TARGET_LINUX_SYS_inotify_add_watch 292
954 { "inotify_add_watch", CB_SYS_inotify_add_watch
, TARGET_LINUX_SYS_inotify_add_watch
},
956 #ifdef CB_SYS_inotify_rm_watch
957 # define TARGET_LINUX_SYS_inotify_rm_watch 293
958 { "inotify_rm_watch", CB_SYS_inotify_rm_watch
, TARGET_LINUX_SYS_inotify_rm_watch
},
961 # define TARGET_LINUX_SYS_openat 295
962 { "openat", CB_SYS_openat
, TARGET_LINUX_SYS_openat
},
964 #ifdef CB_SYS_mkdirat
965 # define TARGET_LINUX_SYS_mkdirat 296
966 { "mkdirat", CB_SYS_mkdirat
, TARGET_LINUX_SYS_mkdirat
},
968 #ifdef CB_SYS_mknodat
969 # define TARGET_LINUX_SYS_mknodat 297
970 { "mknodat", CB_SYS_mknodat
, TARGET_LINUX_SYS_mknodat
},
972 #ifdef CB_SYS_fchownat
973 # define TARGET_LINUX_SYS_fchownat 298
974 { "fchownat", CB_SYS_fchownat
, TARGET_LINUX_SYS_fchownat
},
976 #ifdef CB_SYS_futimesat
977 # define TARGET_LINUX_SYS_futimesat 299
978 { "futimesat", CB_SYS_futimesat
, TARGET_LINUX_SYS_futimesat
},
980 #ifdef CB_SYS_fstatat64
981 # define TARGET_LINUX_SYS_fstatat64 300
982 { "fstatat64", CB_SYS_fstatat64
, TARGET_LINUX_SYS_fstatat64
},
984 #ifdef CB_SYS_unlinkat
985 # define TARGET_LINUX_SYS_unlinkat 301
986 { "unlinkat", CB_SYS_unlinkat
, TARGET_LINUX_SYS_unlinkat
},
988 #ifdef CB_SYS_renameat
989 # define TARGET_LINUX_SYS_renameat 302
990 { "renameat", CB_SYS_renameat
, TARGET_LINUX_SYS_renameat
},
993 # define TARGET_LINUX_SYS_linkat 303
994 { "linkat", CB_SYS_linkat
, TARGET_LINUX_SYS_linkat
},
996 #ifdef CB_SYS_symlinkat
997 # define TARGET_LINUX_SYS_symlinkat 304
998 { "symlinkat", CB_SYS_symlinkat
, TARGET_LINUX_SYS_symlinkat
},
1000 #ifdef CB_SYS_readlinkat
1001 # define TARGET_LINUX_SYS_readlinkat 305
1002 { "readlinkat", CB_SYS_readlinkat
, TARGET_LINUX_SYS_readlinkat
},
1004 #ifdef CB_SYS_fchmodat
1005 # define TARGET_LINUX_SYS_fchmodat 306
1006 { "fchmodat", CB_SYS_fchmodat
, TARGET_LINUX_SYS_fchmodat
},
1008 #ifdef CB_SYS_faccessat
1009 # define TARGET_LINUX_SYS_faccessat 307
1010 { "faccessat", CB_SYS_faccessat
, TARGET_LINUX_SYS_faccessat
},
1012 #ifdef CB_SYS_pselect6
1013 # define TARGET_LINUX_SYS_pselect6 308
1014 { "pselect6", CB_SYS_pselect6
, TARGET_LINUX_SYS_pselect6
},
1017 # define TARGET_LINUX_SYS_ppoll 309
1018 { "ppoll", CB_SYS_ppoll
, TARGET_LINUX_SYS_ppoll
},
1020 #ifdef CB_SYS_unshare
1021 # define TARGET_LINUX_SYS_unshare 310
1022 { "unshare", CB_SYS_unshare
, TARGET_LINUX_SYS_unshare
},
1024 #ifdef CB_SYS_sram_alloc
1025 # define TARGET_LINUX_SYS_sram_alloc 311
1026 { "sram_alloc", CB_SYS_sram_alloc
, TARGET_LINUX_SYS_sram_alloc
},
1028 #ifdef CB_SYS_sram_free
1029 # define TARGET_LINUX_SYS_sram_free 312
1030 { "sram_free", CB_SYS_sram_free
, TARGET_LINUX_SYS_sram_free
},
1032 #ifdef CB_SYS_dma_memcpy
1033 # define TARGET_LINUX_SYS_dma_memcpy 313
1034 { "dma_memcpy", CB_SYS_dma_memcpy
, TARGET_LINUX_SYS_dma_memcpy
},
1036 #ifdef CB_SYS_accept
1037 # define TARGET_LINUX_SYS_accept 314
1038 { "accept", CB_SYS_accept
, TARGET_LINUX_SYS_accept
},
1041 # define TARGET_LINUX_SYS_bind 315
1042 { "bind", CB_SYS_bind
, TARGET_LINUX_SYS_bind
},
1044 #ifdef CB_SYS_connect
1045 # define TARGET_LINUX_SYS_connect 316
1046 { "connect", CB_SYS_connect
, TARGET_LINUX_SYS_connect
},
1048 #ifdef CB_SYS_getpeername
1049 # define TARGET_LINUX_SYS_getpeername 317
1050 { "getpeername", CB_SYS_getpeername
, TARGET_LINUX_SYS_getpeername
},
1052 #ifdef CB_SYS_getsockname
1053 # define TARGET_LINUX_SYS_getsockname 318
1054 { "getsockname", CB_SYS_getsockname
, TARGET_LINUX_SYS_getsockname
},
1056 #ifdef CB_SYS_getsockopt
1057 # define TARGET_LINUX_SYS_getsockopt 319
1058 { "getsockopt", CB_SYS_getsockopt
, TARGET_LINUX_SYS_getsockopt
},
1060 #ifdef CB_SYS_listen
1061 # define TARGET_LINUX_SYS_listen 320
1062 { "listen", CB_SYS_listen
, TARGET_LINUX_SYS_listen
},
1065 # define TARGET_LINUX_SYS_recv 321
1066 { "recv", CB_SYS_recv
, TARGET_LINUX_SYS_recv
},
1068 #ifdef CB_SYS_recvfrom
1069 # define TARGET_LINUX_SYS_recvfrom 322
1070 { "recvfrom", CB_SYS_recvfrom
, TARGET_LINUX_SYS_recvfrom
},
1072 #ifdef CB_SYS_recvmsg
1073 # define TARGET_LINUX_SYS_recvmsg 323
1074 { "recvmsg", CB_SYS_recvmsg
, TARGET_LINUX_SYS_recvmsg
},
1077 # define TARGET_LINUX_SYS_send 324
1078 { "send", CB_SYS_send
, TARGET_LINUX_SYS_send
},
1080 #ifdef CB_SYS_sendmsg
1081 # define TARGET_LINUX_SYS_sendmsg 325
1082 { "sendmsg", CB_SYS_sendmsg
, TARGET_LINUX_SYS_sendmsg
},
1084 #ifdef CB_SYS_sendto
1085 # define TARGET_LINUX_SYS_sendto 326
1086 { "sendto", CB_SYS_sendto
, TARGET_LINUX_SYS_sendto
},
1088 #ifdef CB_SYS_setsockopt
1089 # define TARGET_LINUX_SYS_setsockopt 327
1090 { "setsockopt", CB_SYS_setsockopt
, TARGET_LINUX_SYS_setsockopt
},
1092 #ifdef CB_SYS_shutdown
1093 # define TARGET_LINUX_SYS_shutdown 328
1094 { "shutdown", CB_SYS_shutdown
, TARGET_LINUX_SYS_shutdown
},
1096 #ifdef CB_SYS_socket
1097 # define TARGET_LINUX_SYS_socket 329
1098 { "socket", CB_SYS_socket
, TARGET_LINUX_SYS_socket
},
1100 #ifdef CB_SYS_socketpair
1101 # define TARGET_LINUX_SYS_socketpair 330
1102 { "socketpair", CB_SYS_socketpair
, TARGET_LINUX_SYS_socketpair
},
1104 #ifdef CB_SYS_semctl
1105 # define TARGET_LINUX_SYS_semctl 331
1106 { "semctl", CB_SYS_semctl
, TARGET_LINUX_SYS_semctl
},
1108 #ifdef CB_SYS_semget
1109 # define TARGET_LINUX_SYS_semget 332
1110 { "semget", CB_SYS_semget
, TARGET_LINUX_SYS_semget
},
1113 # define TARGET_LINUX_SYS_semop 333
1114 { "semop", CB_SYS_semop
, TARGET_LINUX_SYS_semop
},
1116 #ifdef CB_SYS_msgctl
1117 # define TARGET_LINUX_SYS_msgctl 334
1118 { "msgctl", CB_SYS_msgctl
, TARGET_LINUX_SYS_msgctl
},
1120 #ifdef CB_SYS_msgget
1121 # define TARGET_LINUX_SYS_msgget 335
1122 { "msgget", CB_SYS_msgget
, TARGET_LINUX_SYS_msgget
},
1124 #ifdef CB_SYS_msgrcv
1125 # define TARGET_LINUX_SYS_msgrcv 336
1126 { "msgrcv", CB_SYS_msgrcv
, TARGET_LINUX_SYS_msgrcv
},
1128 #ifdef CB_SYS_msgsnd
1129 # define TARGET_LINUX_SYS_msgsnd 337
1130 { "msgsnd", CB_SYS_msgsnd
, TARGET_LINUX_SYS_msgsnd
},
1133 # define TARGET_LINUX_SYS_shmat 338
1134 { "shmat", CB_SYS_shmat
, TARGET_LINUX_SYS_shmat
},
1136 #ifdef CB_SYS_shmctl
1137 # define TARGET_LINUX_SYS_shmctl 339
1138 { "shmctl", CB_SYS_shmctl
, TARGET_LINUX_SYS_shmctl
},
1141 # define TARGET_LINUX_SYS_shmdt 340
1142 { "shmdt", CB_SYS_shmdt
, TARGET_LINUX_SYS_shmdt
},
1144 #ifdef CB_SYS_shmget
1145 # define TARGET_LINUX_SYS_shmget 341
1146 { "shmget", CB_SYS_shmget
, TARGET_LINUX_SYS_shmget
},
1148 #ifdef CB_SYS_splice
1149 # define TARGET_LINUX_SYS_splice 342
1150 { "splice", CB_SYS_splice
, TARGET_LINUX_SYS_splice
},
1152 #ifdef CB_SYS_sync_file_range
1153 # define TARGET_LINUX_SYS_sync_file_range 343
1154 { "sync_file_range", CB_SYS_sync_file_range
, TARGET_LINUX_SYS_sync_file_range
},
1157 # define TARGET_LINUX_SYS_tee 344
1158 { "tee", CB_SYS_tee
, TARGET_LINUX_SYS_tee
},
1160 #ifdef CB_SYS_vmsplice
1161 # define TARGET_LINUX_SYS_vmsplice 345
1162 { "vmsplice", CB_SYS_vmsplice
, TARGET_LINUX_SYS_vmsplice
},
1164 #ifdef CB_SYS_epoll_pwait
1165 # define TARGET_LINUX_SYS_epoll_pwait 346
1166 { "epoll_pwait", CB_SYS_epoll_pwait
, TARGET_LINUX_SYS_epoll_pwait
},
1168 #ifdef CB_SYS_utimensat
1169 # define TARGET_LINUX_SYS_utimensat 347
1170 { "utimensat", CB_SYS_utimensat
, TARGET_LINUX_SYS_utimensat
},
1172 #ifdef CB_SYS_signalfd
1173 # define TARGET_LINUX_SYS_signalfd 348
1174 { "signalfd", CB_SYS_signalfd
, TARGET_LINUX_SYS_signalfd
},
1176 #ifdef CB_SYS_timerfd_create
1177 # define TARGET_LINUX_SYS_timerfd_create 349
1178 { "timerfd_create", CB_SYS_timerfd_create
, TARGET_LINUX_SYS_timerfd_create
},
1180 #ifdef CB_SYS_eventfd
1181 # define TARGET_LINUX_SYS_eventfd 350
1182 { "eventfd", CB_SYS_eventfd
, TARGET_LINUX_SYS_eventfd
},
1184 #ifdef CB_SYS_pread64
1185 # define TARGET_LINUX_SYS_pread64 351
1186 { "pread64", CB_SYS_pread64
, TARGET_LINUX_SYS_pread64
},
1188 #ifdef CB_SYS_pwrite64
1189 # define TARGET_LINUX_SYS_pwrite64 352
1190 { "pwrite64", CB_SYS_pwrite64
, TARGET_LINUX_SYS_pwrite64
},
1192 #ifdef CB_SYS_fadvise64
1193 # define TARGET_LINUX_SYS_fadvise64 353
1194 { "fadvise64", CB_SYS_fadvise64
, TARGET_LINUX_SYS_fadvise64
},
1196 #ifdef CB_SYS_set_robust_list
1197 # define TARGET_LINUX_SYS_set_robust_list 354
1198 { "set_robust_list", CB_SYS_set_robust_list
, TARGET_LINUX_SYS_set_robust_list
},
1200 #ifdef CB_SYS_get_robust_list
1201 # define TARGET_LINUX_SYS_get_robust_list 355
1202 { "get_robust_list", CB_SYS_get_robust_list
, TARGET_LINUX_SYS_get_robust_list
},
1204 #ifdef CB_SYS_fallocate
1205 # define TARGET_LINUX_SYS_fallocate 356
1206 { "fallocate", CB_SYS_fallocate
, TARGET_LINUX_SYS_fallocate
},
1208 #ifdef CB_SYS_semtimedop
1209 # define TARGET_LINUX_SYS_semtimedop 357
1210 { "semtimedop", CB_SYS_semtimedop
, TARGET_LINUX_SYS_semtimedop
},
1212 #ifdef CB_SYS_timerfd_settime
1213 # define TARGET_LINUX_SYS_timerfd_settime 358
1214 { "timerfd_settime", CB_SYS_timerfd_settime
, TARGET_LINUX_SYS_timerfd_settime
},
1216 #ifdef CB_SYS_timerfd_gettime
1217 # define TARGET_LINUX_SYS_timerfd_gettime 359
1218 { "timerfd_gettime", CB_SYS_timerfd_gettime
, TARGET_LINUX_SYS_timerfd_gettime
},
1220 #ifdef CB_SYS_signalfd4
1221 # define TARGET_LINUX_SYS_signalfd4 360
1222 { "signalfd4", CB_SYS_signalfd4
, TARGET_LINUX_SYS_signalfd4
},
1224 #ifdef CB_SYS_eventfd2
1225 # define TARGET_LINUX_SYS_eventfd2 361
1226 { "eventfd2", CB_SYS_eventfd2
, TARGET_LINUX_SYS_eventfd2
},
1228 #ifdef CB_SYS_epoll_create1
1229 # define TARGET_LINUX_SYS_epoll_create1 362
1230 { "epoll_create1", CB_SYS_epoll_create1
, TARGET_LINUX_SYS_epoll_create1
},
1233 # define TARGET_LINUX_SYS_dup3 363
1234 { "dup3", CB_SYS_dup3
, TARGET_LINUX_SYS_dup3
},
1237 # define TARGET_LINUX_SYS_pipe2 364
1238 { "pipe2", CB_SYS_pipe2
, TARGET_LINUX_SYS_pipe2
},
1240 #ifdef CB_SYS_inotify_init1
1241 # define TARGET_LINUX_SYS_inotify_init1 365
1242 { "inotify_init1", CB_SYS_inotify_init1
, TARGET_LINUX_SYS_inotify_init1
},
1244 #ifdef CB_SYS_preadv
1245 # define TARGET_LINUX_SYS_preadv 366
1246 { "preadv", CB_SYS_preadv
, TARGET_LINUX_SYS_preadv
},
1248 #ifdef CB_SYS_pwritev
1249 # define TARGET_LINUX_SYS_pwritev 367
1250 { "pwritev", CB_SYS_pwritev
, TARGET_LINUX_SYS_pwritev
},
1252 #ifdef CB_SYS_rt_tgsigqueueinfo
1253 # define TARGET_LINUX_SYS_rt_tgsigqueueinfo 368
1254 { "rt_tgsigqueueinfo", CB_SYS_rt_tgsigqueueinfo
, TARGET_LINUX_SYS_rt_tgsigqueueinfo
},
1256 #ifdef CB_SYS_perf_event_open
1257 # define TARGET_LINUX_SYS_perf_event_open 369
1258 { "perf_event_open", CB_SYS_perf_event_open
, TARGET_LINUX_SYS_perf_event_open
},
1260 #ifdef CB_SYS_recvmmsg
1261 # define TARGET_LINUX_SYS_recvmmsg 370
1262 { "recvmmsg", CB_SYS_recvmmsg
, TARGET_LINUX_SYS_recvmmsg
},
1264 #ifdef CB_SYS_fanotify_init
1265 # define TARGET_LINUX_SYS_fanotify_init 371
1266 { "fanotify_init", CB_SYS_fanotify_init
, TARGET_LINUX_SYS_fanotify_init
},
1268 #ifdef CB_SYS_fanotify_mark
1269 # define TARGET_LINUX_SYS_fanotify_mark 372
1270 { "fanotify_mark", CB_SYS_fanotify_mark
, TARGET_LINUX_SYS_fanotify_mark
},
1272 #ifdef CB_SYS_prlimit64
1273 # define TARGET_LINUX_SYS_prlimit64 373
1274 { "prlimit64", CB_SYS_prlimit64
, TARGET_LINUX_SYS_prlimit64
},
1276 #ifdef CB_SYS_cacheflush
1277 # define TARGET_LINUX_SYS_cacheflush 374
1278 { "cacheflush", CB_SYS_cacheflush
, TARGET_LINUX_SYS_cacheflush
},
1280 #ifdef CB_SYS_syscall
1281 # define TARGET_LINUX_SYS_syscall 375
1282 { "syscall", CB_SYS_syscall
, TARGET_LINUX_SYS_syscall
},
1287 static CB_TARGET_DEFS_MAP cb_linux_errno_map
[] =
1290 # define TARGET_LINUX_EPERM 1
1291 { "EPERM", EPERM
, TARGET_LINUX_EPERM
},
1294 # define TARGET_LINUX_ENOENT 2
1295 { "ENOENT", ENOENT
, TARGET_LINUX_ENOENT
},
1298 # define TARGET_LINUX_ESRCH 3
1299 { "ESRCH", ESRCH
, TARGET_LINUX_ESRCH
},
1302 # define TARGET_LINUX_EINTR 4
1303 { "EINTR", EINTR
, TARGET_LINUX_EINTR
},
1306 # define TARGET_LINUX_EIO 5
1307 { "EIO", EIO
, TARGET_LINUX_EIO
},
1310 # define TARGET_LINUX_ENXIO 6
1311 { "ENXIO", ENXIO
, TARGET_LINUX_ENXIO
},
1314 # define TARGET_LINUX_E2BIG 7
1315 { "E2BIG", E2BIG
, TARGET_LINUX_E2BIG
},
1318 # define TARGET_LINUX_ENOEXEC 8
1319 { "ENOEXEC", ENOEXEC
, TARGET_LINUX_ENOEXEC
},
1322 # define TARGET_LINUX_EBADF 9
1323 { "EBADF", EBADF
, TARGET_LINUX_EBADF
},
1326 # define TARGET_LINUX_ECHILD 10
1327 { "ECHILD", ECHILD
, TARGET_LINUX_ECHILD
},
1330 # define TARGET_LINUX_EAGAIN 11
1331 { "EAGAIN", EAGAIN
, TARGET_LINUX_EAGAIN
},
1334 # define TARGET_LINUX_ENOMEM 12
1335 { "ENOMEM", ENOMEM
, TARGET_LINUX_ENOMEM
},
1338 # define TARGET_LINUX_EACCES 13
1339 { "EACCES", EACCES
, TARGET_LINUX_EACCES
},
1342 # define TARGET_LINUX_EFAULT 14
1343 { "EFAULT", EFAULT
, TARGET_LINUX_EFAULT
},
1346 # define TARGET_LINUX_ENOTBLK 15
1347 { "ENOTBLK", ENOTBLK
, TARGET_LINUX_ENOTBLK
},
1350 # define TARGET_LINUX_EBUSY 16
1351 { "EBUSY", EBUSY
, TARGET_LINUX_EBUSY
},
1354 # define TARGET_LINUX_EEXIST 17
1355 { "EEXIST", EEXIST
, TARGET_LINUX_EEXIST
},
1358 # define TARGET_LINUX_EXDEV 18
1359 { "EXDEV", EXDEV
, TARGET_LINUX_EXDEV
},
1362 # define TARGET_LINUX_ENODEV 19
1363 { "ENODEV", ENODEV
, TARGET_LINUX_ENODEV
},
1366 # define TARGET_LINUX_ENOTDIR 20
1367 { "ENOTDIR", ENOTDIR
, TARGET_LINUX_ENOTDIR
},
1370 # define TARGET_LINUX_EISDIR 21
1371 { "EISDIR", EISDIR
, TARGET_LINUX_EISDIR
},
1374 # define TARGET_LINUX_EINVAL 22
1375 { "EINVAL", EINVAL
, TARGET_LINUX_EINVAL
},
1378 # define TARGET_LINUX_ENFILE 23
1379 { "ENFILE", ENFILE
, TARGET_LINUX_ENFILE
},
1382 # define TARGET_LINUX_EMFILE 24
1383 { "EMFILE", EMFILE
, TARGET_LINUX_EMFILE
},
1386 # define TARGET_LINUX_ENOTTY 25
1387 { "ENOTTY", ENOTTY
, TARGET_LINUX_ENOTTY
},
1390 # define TARGET_LINUX_ETXTBSY 26
1391 { "ETXTBSY", ETXTBSY
, TARGET_LINUX_ETXTBSY
},
1394 # define TARGET_LINUX_EFBIG 27
1395 { "EFBIG", EFBIG
, TARGET_LINUX_EFBIG
},
1398 # define TARGET_LINUX_ENOSPC 28
1399 { "ENOSPC", ENOSPC
, TARGET_LINUX_ENOSPC
},
1402 # define TARGET_LINUX_ESPIPE 29
1403 { "ESPIPE", ESPIPE
, TARGET_LINUX_ESPIPE
},
1406 # define TARGET_LINUX_EROFS 30
1407 { "EROFS", EROFS
, TARGET_LINUX_EROFS
},
1410 # define TARGET_LINUX_EMLINK 31
1411 { "EMLINK", EMLINK
, TARGET_LINUX_EMLINK
},
1414 # define TARGET_LINUX_EPIPE 32
1415 { "EPIPE", EPIPE
, TARGET_LINUX_EPIPE
},
1418 # define TARGET_LINUX_EDOM 33
1419 { "EDOM", EDOM
, TARGET_LINUX_EDOM
},
1422 # define TARGET_LINUX_ERANGE 34
1423 { "ERANGE", ERANGE
, TARGET_LINUX_ERANGE
},
1426 # define TARGET_LINUX_EDEADLK 35
1427 { "EDEADLK", EDEADLK
, TARGET_LINUX_EDEADLK
},
1430 # define TARGET_LINUX_ENAMETOOLONG 36
1431 { "ENAMETOOLONG", ENAMETOOLONG
, TARGET_LINUX_ENAMETOOLONG
},
1434 # define TARGET_LINUX_ENOLCK 37
1435 { "ENOLCK", ENOLCK
, TARGET_LINUX_ENOLCK
},
1438 # define TARGET_LINUX_ENOSYS 38
1439 { "ENOSYS", ENOSYS
, TARGET_LINUX_ENOSYS
},
1442 # define TARGET_LINUX_ENOTEMPTY 39
1443 { "ENOTEMPTY", ENOTEMPTY
, TARGET_LINUX_ENOTEMPTY
},
1446 # define TARGET_LINUX_ELOOP 40
1447 { "ELOOP", ELOOP
, TARGET_LINUX_ELOOP
},
1450 # define TARGET_LINUX_ENOMSG 42
1451 { "ENOMSG", ENOMSG
, TARGET_LINUX_ENOMSG
},
1454 # define TARGET_LINUX_EIDRM 43
1455 { "EIDRM", EIDRM
, TARGET_LINUX_EIDRM
},
1458 # define TARGET_LINUX_ECHRNG 44
1459 { "ECHRNG", ECHRNG
, TARGET_LINUX_ECHRNG
},
1462 # define TARGET_LINUX_EL2NSYNC 45
1463 { "EL2NSYNC", EL2NSYNC
, TARGET_LINUX_EL2NSYNC
},
1466 # define TARGET_LINUX_EL3HLT 46
1467 { "EL3HLT", EL3HLT
, TARGET_LINUX_EL3HLT
},
1470 # define TARGET_LINUX_EL3RST 47
1471 { "EL3RST", EL3RST
, TARGET_LINUX_EL3RST
},
1474 # define TARGET_LINUX_ELNRNG 48
1475 { "ELNRNG", ELNRNG
, TARGET_LINUX_ELNRNG
},
1478 # define TARGET_LINUX_EUNATCH 49
1479 { "EUNATCH", EUNATCH
, TARGET_LINUX_EUNATCH
},
1482 # define TARGET_LINUX_ENOCSI 50
1483 { "ENOCSI", ENOCSI
, TARGET_LINUX_ENOCSI
},
1486 # define TARGET_LINUX_EL2HLT 51
1487 { "EL2HLT", EL2HLT
, TARGET_LINUX_EL2HLT
},
1490 # define TARGET_LINUX_EBADE 52
1491 { "EBADE", EBADE
, TARGET_LINUX_EBADE
},
1494 # define TARGET_LINUX_EBADR 53
1495 { "EBADR", EBADR
, TARGET_LINUX_EBADR
},
1498 # define TARGET_LINUX_EXFULL 54
1499 { "EXFULL", EXFULL
, TARGET_LINUX_EXFULL
},
1502 # define TARGET_LINUX_ENOANO 55
1503 { "ENOANO", ENOANO
, TARGET_LINUX_ENOANO
},
1506 # define TARGET_LINUX_EBADRQC 56
1507 { "EBADRQC", EBADRQC
, TARGET_LINUX_EBADRQC
},
1510 # define TARGET_LINUX_EBADSLT 57
1511 { "EBADSLT", EBADSLT
, TARGET_LINUX_EBADSLT
},
1514 # define TARGET_LINUX_EBFONT 59
1515 { "EBFONT", EBFONT
, TARGET_LINUX_EBFONT
},
1518 # define TARGET_LINUX_ENOSTR 60
1519 { "ENOSTR", ENOSTR
, TARGET_LINUX_ENOSTR
},
1522 # define TARGET_LINUX_ENODATA 61
1523 { "ENODATA", ENODATA
, TARGET_LINUX_ENODATA
},
1526 # define TARGET_LINUX_ETIME 62
1527 { "ETIME", ETIME
, TARGET_LINUX_ETIME
},
1530 # define TARGET_LINUX_ENOSR 63
1531 { "ENOSR", ENOSR
, TARGET_LINUX_ENOSR
},
1534 # define TARGET_LINUX_ENONET 64
1535 { "ENONET", ENONET
, TARGET_LINUX_ENONET
},
1538 # define TARGET_LINUX_ENOPKG 65
1539 { "ENOPKG", ENOPKG
, TARGET_LINUX_ENOPKG
},
1542 # define TARGET_LINUX_EREMOTE 66
1543 { "EREMOTE", EREMOTE
, TARGET_LINUX_EREMOTE
},
1546 # define TARGET_LINUX_ENOLINK 67
1547 { "ENOLINK", ENOLINK
, TARGET_LINUX_ENOLINK
},
1550 # define TARGET_LINUX_EADV 68
1551 { "EADV", EADV
, TARGET_LINUX_EADV
},
1554 # define TARGET_LINUX_ESRMNT 69
1555 { "ESRMNT", ESRMNT
, TARGET_LINUX_ESRMNT
},
1558 # define TARGET_LINUX_ECOMM 70
1559 { "ECOMM", ECOMM
, TARGET_LINUX_ECOMM
},
1562 # define TARGET_LINUX_EPROTO 71
1563 { "EPROTO", EPROTO
, TARGET_LINUX_EPROTO
},
1566 # define TARGET_LINUX_EMULTIHOP 72
1567 { "EMULTIHOP", EMULTIHOP
, TARGET_LINUX_EMULTIHOP
},
1570 # define TARGET_LINUX_EDOTDOT 73
1571 { "EDOTDOT", EDOTDOT
, TARGET_LINUX_EDOTDOT
},
1574 # define TARGET_LINUX_EBADMSG 74
1575 { "EBADMSG", EBADMSG
, TARGET_LINUX_EBADMSG
},
1578 # define TARGET_LINUX_EOVERFLOW 75
1579 { "EOVERFLOW", EOVERFLOW
, TARGET_LINUX_EOVERFLOW
},
1582 # define TARGET_LINUX_ENOTUNIQ 76
1583 { "ENOTUNIQ", ENOTUNIQ
, TARGET_LINUX_ENOTUNIQ
},
1586 # define TARGET_LINUX_EBADFD 77
1587 { "EBADFD", EBADFD
, TARGET_LINUX_EBADFD
},
1590 # define TARGET_LINUX_EREMCHG 78
1591 { "EREMCHG", EREMCHG
, TARGET_LINUX_EREMCHG
},
1594 # define TARGET_LINUX_ELIBACC 79
1595 { "ELIBACC", ELIBACC
, TARGET_LINUX_ELIBACC
},
1598 # define TARGET_LINUX_ELIBBAD 80
1599 { "ELIBBAD", ELIBBAD
, TARGET_LINUX_ELIBBAD
},
1602 # define TARGET_LINUX_ELIBSCN 81
1603 { "ELIBSCN", ELIBSCN
, TARGET_LINUX_ELIBSCN
},
1606 # define TARGET_LINUX_ELIBMAX 82
1607 { "ELIBMAX", ELIBMAX
, TARGET_LINUX_ELIBMAX
},
1610 # define TARGET_LINUX_ELIBEXEC 83
1611 { "ELIBEXEC", ELIBEXEC
, TARGET_LINUX_ELIBEXEC
},
1614 # define TARGET_LINUX_EILSEQ 84
1615 { "EILSEQ", EILSEQ
, TARGET_LINUX_EILSEQ
},
1618 # define TARGET_LINUX_ERESTART 85
1619 { "ERESTART", ERESTART
, TARGET_LINUX_ERESTART
},
1622 # define TARGET_LINUX_ESTRPIPE 86
1623 { "ESTRPIPE", ESTRPIPE
, TARGET_LINUX_ESTRPIPE
},
1626 # define TARGET_LINUX_EUSERS 87
1627 { "EUSERS", EUSERS
, TARGET_LINUX_EUSERS
},
1630 # define TARGET_LINUX_ENOTSOCK 88
1631 { "ENOTSOCK", ENOTSOCK
, TARGET_LINUX_ENOTSOCK
},
1634 # define TARGET_LINUX_EDESTADDRREQ 89
1635 { "EDESTADDRREQ", EDESTADDRREQ
, TARGET_LINUX_EDESTADDRREQ
},
1638 # define TARGET_LINUX_EMSGSIZE 90
1639 { "EMSGSIZE", EMSGSIZE
, TARGET_LINUX_EMSGSIZE
},
1642 # define TARGET_LINUX_EPROTOTYPE 91
1643 { "EPROTOTYPE", EPROTOTYPE
, TARGET_LINUX_EPROTOTYPE
},
1646 # define TARGET_LINUX_ENOPROTOOPT 92
1647 { "ENOPROTOOPT", ENOPROTOOPT
, TARGET_LINUX_ENOPROTOOPT
},
1649 #ifdef EPROTONOSUPPORT
1650 # define TARGET_LINUX_EPROTONOSUPPORT 93
1651 { "EPROTONOSUPPORT", EPROTONOSUPPORT
, TARGET_LINUX_EPROTONOSUPPORT
},
1653 #ifdef ESOCKTNOSUPPORT
1654 # define TARGET_LINUX_ESOCKTNOSUPPORT 94
1655 { "ESOCKTNOSUPPORT", ESOCKTNOSUPPORT
, TARGET_LINUX_ESOCKTNOSUPPORT
},
1658 # define TARGET_LINUX_EOPNOTSUPP 95
1659 { "EOPNOTSUPP", EOPNOTSUPP
, TARGET_LINUX_EOPNOTSUPP
},
1662 # define TARGET_LINUX_EPFNOSUPPORT 96
1663 { "EPFNOSUPPORT", EPFNOSUPPORT
, TARGET_LINUX_EPFNOSUPPORT
},
1666 # define TARGET_LINUX_EAFNOSUPPORT 97
1667 { "EAFNOSUPPORT", EAFNOSUPPORT
, TARGET_LINUX_EAFNOSUPPORT
},
1670 # define TARGET_LINUX_EADDRINUSE 98
1671 { "EADDRINUSE", EADDRINUSE
, TARGET_LINUX_EADDRINUSE
},
1673 #ifdef EADDRNOTAVAIL
1674 # define TARGET_LINUX_EADDRNOTAVAIL 99
1675 { "EADDRNOTAVAIL", EADDRNOTAVAIL
, TARGET_LINUX_EADDRNOTAVAIL
},
1678 # define TARGET_LINUX_ENETDOWN 100
1679 { "ENETDOWN", ENETDOWN
, TARGET_LINUX_ENETDOWN
},
1682 # define TARGET_LINUX_ENETUNREACH 101
1683 { "ENETUNREACH", ENETUNREACH
, TARGET_LINUX_ENETUNREACH
},
1686 # define TARGET_LINUX_ENETRESET 102
1687 { "ENETRESET", ENETRESET
, TARGET_LINUX_ENETRESET
},
1690 # define TARGET_LINUX_ECONNABORTED 103
1691 { "ECONNABORTED", ECONNABORTED
, TARGET_LINUX_ECONNABORTED
},
1694 # define TARGET_LINUX_ECONNRESET 104
1695 { "ECONNRESET", ECONNRESET
, TARGET_LINUX_ECONNRESET
},
1698 # define TARGET_LINUX_ENOBUFS 105
1699 { "ENOBUFS", ENOBUFS
, TARGET_LINUX_ENOBUFS
},
1702 # define TARGET_LINUX_EISCONN 106
1703 { "EISCONN", EISCONN
, TARGET_LINUX_EISCONN
},
1706 # define TARGET_LINUX_ENOTCONN 107
1707 { "ENOTCONN", ENOTCONN
, TARGET_LINUX_ENOTCONN
},
1710 # define TARGET_LINUX_ESHUTDOWN 108
1711 { "ESHUTDOWN", ESHUTDOWN
, TARGET_LINUX_ESHUTDOWN
},
1714 # define TARGET_LINUX_ETOOMANYREFS 109
1715 { "ETOOMANYREFS", ETOOMANYREFS
, TARGET_LINUX_ETOOMANYREFS
},
1718 # define TARGET_LINUX_ETIMEDOUT 110
1719 { "ETIMEDOUT", ETIMEDOUT
, TARGET_LINUX_ETIMEDOUT
},
1722 # define TARGET_LINUX_ECONNREFUSED 111
1723 { "ECONNREFUSED", ECONNREFUSED
, TARGET_LINUX_ECONNREFUSED
},
1726 # define TARGET_LINUX_EHOSTDOWN 112
1727 { "EHOSTDOWN", EHOSTDOWN
, TARGET_LINUX_EHOSTDOWN
},
1730 # define TARGET_LINUX_EHOSTUNREACH 113
1731 { "EHOSTUNREACH", EHOSTUNREACH
, TARGET_LINUX_EHOSTUNREACH
},
1734 # define TARGET_LINUX_EALREADY 114
1735 { "EALREADY", EALREADY
, TARGET_LINUX_EALREADY
},
1738 # define TARGET_LINUX_EINPROGRESS 115
1739 { "EINPROGRESS", EINPROGRESS
, TARGET_LINUX_EINPROGRESS
},
1742 # define TARGET_LINUX_ESTALE 116
1743 { "ESTALE", ESTALE
, TARGET_LINUX_ESTALE
},
1746 # define TARGET_LINUX_EUCLEAN 117
1747 { "EUCLEAN", EUCLEAN
, TARGET_LINUX_EUCLEAN
},
1750 # define TARGET_LINUX_ENOTNAM 118
1751 { "ENOTNAM", ENOTNAM
, TARGET_LINUX_ENOTNAM
},
1754 # define TARGET_LINUX_ENAVAIL 119
1755 { "ENAVAIL", ENAVAIL
, TARGET_LINUX_ENAVAIL
},
1758 # define TARGET_LINUX_EISNAM 120
1759 { "EISNAM", EISNAM
, TARGET_LINUX_EISNAM
},
1762 # define TARGET_LINUX_EREMOTEIO 121
1763 { "EREMOTEIO", EREMOTEIO
, TARGET_LINUX_EREMOTEIO
},
1766 # define TARGET_LINUX_EDQUOT 122
1767 { "EDQUOT", EDQUOT
, TARGET_LINUX_EDQUOT
},
1770 # define TARGET_LINUX_ENOMEDIUM 123
1771 { "ENOMEDIUM", ENOMEDIUM
, TARGET_LINUX_ENOMEDIUM
},
1774 # define TARGET_LINUX_EMEDIUMTYPE 124
1775 { "EMEDIUMTYPE", EMEDIUMTYPE
, TARGET_LINUX_EMEDIUMTYPE
},
1778 # define TARGET_LINUX_ECANCELED 125
1779 { "ECANCELED", ECANCELED
, TARGET_LINUX_ECANCELED
},
1782 # define TARGET_LINUX_EOWNERDEAD 130
1783 { "EOWNERDEAD", EOWNERDEAD
, TARGET_LINUX_EOWNERDEAD
},
1785 #ifdef ENOTRECOVERABLE
1786 # define TARGET_LINUX_ENOTRECOVERABLE 131
1787 { "ENOTRECOVERABLE", ENOTRECOVERABLE
, TARGET_LINUX_ENOTRECOVERABLE
},
1792 static CB_TARGET_DEFS_MAP cb_linux_open_map
[] =
1795 # define TARGET_LINUX_O_ACCMODE 0003
1796 { "O_ACCMODE", O_ACCMODE
, TARGET_LINUX_O_ACCMODE
},
1799 # define TARGET_LINUX_O_RDONLY 00
1800 { "O_RDONLY", O_RDONLY
, TARGET_LINUX_O_RDONLY
},
1803 # define TARGET_LINUX_O_WRONLY 01
1804 { "O_WRONLY", O_WRONLY
, TARGET_LINUX_O_WRONLY
},
1807 # define TARGET_LINUX_O_RDWR 02
1808 { "O_RDWR", O_RDWR
, TARGET_LINUX_O_RDWR
},
1811 # define TARGET_LINUX_O_CREAT 0100
1812 { "O_CREAT", O_CREAT
, TARGET_LINUX_O_CREAT
},
1815 # define TARGET_LINUX_O_EXCL 0200
1816 { "O_EXCL", O_EXCL
, TARGET_LINUX_O_EXCL
},
1819 # define TARGET_LINUX_O_NOCTTY 0400
1820 { "O_NOCTTY", O_NOCTTY
, TARGET_LINUX_O_NOCTTY
},
1823 # define TARGET_LINUX_O_TRUNC 01000
1824 { "O_TRUNC", O_TRUNC
, TARGET_LINUX_O_TRUNC
},
1827 # define TARGET_LINUX_O_APPEND 02000
1828 { "O_APPEND", O_APPEND
, TARGET_LINUX_O_APPEND
},
1831 # define TARGET_LINUX_O_NONBLOCK 04000
1832 { "O_NONBLOCK", O_NONBLOCK
, TARGET_LINUX_O_NONBLOCK
},
1835 # define TARGET_LINUX_O_SYNC 010000
1836 { "O_SYNC", O_SYNC
, TARGET_LINUX_O_SYNC
},
1839 # define TARGET_LINUX_O_ASYNC 020000
1840 { "O_ASYNC", O_ASYNC
, TARGET_LINUX_O_ASYNC
},
1845 static CB_TARGET_DEFS_MAP cb_linux_signal_map
[] =
1848 # define TARGET_LINUX_SIGHUP 1
1849 { "SIGHUP", SIGHUP
, TARGET_LINUX_SIGHUP
},
1852 # define TARGET_LINUX_SIGINT 2
1853 { "SIGINT", SIGINT
, TARGET_LINUX_SIGINT
},
1856 # define TARGET_LINUX_SIGQUIT 3
1857 { "SIGQUIT", SIGQUIT
, TARGET_LINUX_SIGQUIT
},
1860 # define TARGET_LINUX_SIGILL 4
1861 { "SIGILL", SIGILL
, TARGET_LINUX_SIGILL
},
1864 # define TARGET_LINUX_SIGTRAP 5
1865 { "SIGTRAP", SIGTRAP
, TARGET_LINUX_SIGTRAP
},
1868 # define TARGET_LINUX_SIGABRT 6
1869 { "SIGABRT", SIGABRT
, TARGET_LINUX_SIGABRT
},
1872 # define TARGET_LINUX_SIGIOT 6
1873 { "SIGIOT", SIGIOT
, TARGET_LINUX_SIGIOT
},
1876 # define TARGET_LINUX_SIGBUS 7
1877 { "SIGBUS", SIGBUS
, TARGET_LINUX_SIGBUS
},
1880 # define TARGET_LINUX_SIGFPE 8
1881 { "SIGFPE", SIGFPE
, TARGET_LINUX_SIGFPE
},
1884 # define TARGET_LINUX_SIGKILL 9
1885 { "SIGKILL", SIGKILL
, TARGET_LINUX_SIGKILL
},
1888 # define TARGET_LINUX_SIGUSR1 10
1889 { "SIGUSR1", SIGUSR1
, TARGET_LINUX_SIGUSR1
},
1892 # define TARGET_LINUX_SIGSEGV 11
1893 { "SIGSEGV", SIGSEGV
, TARGET_LINUX_SIGSEGV
},
1896 # define TARGET_LINUX_SIGUSR2 12
1897 { "SIGUSR2", SIGUSR2
, TARGET_LINUX_SIGUSR2
},
1900 # define TARGET_LINUX_SIGPIPE 13
1901 { "SIGPIPE", SIGPIPE
, TARGET_LINUX_SIGPIPE
},
1904 # define TARGET_LINUX_SIGALRM 14
1905 { "SIGALRM", SIGALRM
, TARGET_LINUX_SIGALRM
},
1908 # define TARGET_LINUX_SIGTERM 15
1909 { "SIGTERM", SIGTERM
, TARGET_LINUX_SIGTERM
},
1912 # define TARGET_LINUX_SIGSTKFLT 16
1913 { "SIGSTKFLT", SIGSTKFLT
, TARGET_LINUX_SIGSTKFLT
},
1916 # define TARGET_LINUX_SIGCHLD 17
1917 { "SIGCHLD", SIGCHLD
, TARGET_LINUX_SIGCHLD
},
1920 # define TARGET_LINUX_SIGCONT 18
1921 { "SIGCONT", SIGCONT
, TARGET_LINUX_SIGCONT
},
1924 # define TARGET_LINUX_SIGSTOP 19
1925 { "SIGSTOP", SIGSTOP
, TARGET_LINUX_SIGSTOP
},
1928 # define TARGET_LINUX_SIGTSTP 20
1929 { "SIGTSTP", SIGTSTP
, TARGET_LINUX_SIGTSTP
},
1932 # define TARGET_LINUX_SIGTTIN 21
1933 { "SIGTTIN", SIGTTIN
, TARGET_LINUX_SIGTTIN
},
1936 # define TARGET_LINUX_SIGTTOU 22
1937 { "SIGTTOU", SIGTTOU
, TARGET_LINUX_SIGTTOU
},
1940 # define TARGET_LINUX_SIGURG 23
1941 { "SIGURG", SIGURG
, TARGET_LINUX_SIGURG
},
1944 # define TARGET_LINUX_SIGXCPU 24
1945 { "SIGXCPU", SIGXCPU
, TARGET_LINUX_SIGXCPU
},
1948 # define TARGET_LINUX_SIGXFSZ 25
1949 { "SIGXFSZ", SIGXFSZ
, TARGET_LINUX_SIGXFSZ
},
1952 # define TARGET_LINUX_SIGVTALRM 26
1953 { "SIGVTALRM", SIGVTALRM
, TARGET_LINUX_SIGVTALRM
},
1956 # define TARGET_LINUX_SIGPROF 27
1957 { "SIGPROF", SIGPROF
, TARGET_LINUX_SIGPROF
},
1960 # define TARGET_LINUX_SIGWINCH 28
1961 { "SIGWINCH", SIGWINCH
, TARGET_LINUX_SIGWINCH
},
1964 # define TARGET_LINUX_SIGIO 29
1965 { "SIGIO", SIGIO
, TARGET_LINUX_SIGIO
},
1968 # define TARGET_LINUX_SIGPWR 30
1969 { "SIGPWR", SIGPWR
, TARGET_LINUX_SIGPWR
},
1972 # define TARGET_LINUX_SIGSYS 31
1973 { "SIGSYS", SIGSYS
, TARGET_LINUX_SIGSYS
},
1976 # define TARGET_LINUX_SIGUNUSED 31
1977 { "SIGUNUSED", SIGUNUSED
, TARGET_LINUX_SIGUNUSED
},
1980 # define TARGET_LINUX_SIG_BLOCK 0
1981 { "SIG_BLOCK", SIG_BLOCK
, TARGET_LINUX_SIG_BLOCK
},
1984 # define TARGET_LINUX_SIG_UNBLOCK 1
1985 { "SIG_UNBLOCK", SIG_UNBLOCK
, TARGET_LINUX_SIG_UNBLOCK
},
1988 # define TARGET_LINUX_SIG_SETMASK 2
1989 { "SIG_SETMASK", SIG_SETMASK
, TARGET_LINUX_SIG_SETMASK
},
1992 # define TARGET_LINUX_SIGSTKSZ 8192
1993 { "SIGSTKSZ", SIGSTKSZ
, TARGET_LINUX_SIGSTKSZ
},