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 - | \
35 -e '1istatic CB_TARGET_DEFS_MAP cb_linux_signal_map[] = {' \
36 -e '$i\ \ { 0, -1, -1 }\n};' \
37 -e '/#define SIG.* [0-9]+$/{s:^.* (SIG.*) (.*):#ifdef \1\n# define TARGET_LINUX_\1 \2\n { "\1", \1, TARGET_LINUX_\1 },\n#endif:;p;}'
43 static CB_TARGET_DEFS_MAP cb_linux_syscall_map
[] =
45 #ifdef CB_SYS_restart_syscall
46 # define TARGET_LINUX_SYS_restart_syscall 0
47 { "restart_syscall", CB_SYS_restart_syscall
, TARGET_LINUX_SYS_restart_syscall
},
50 # define TARGET_LINUX_SYS_exit 1
51 { "exit", CB_SYS_exit
, TARGET_LINUX_SYS_exit
},
54 # define TARGET_LINUX_SYS_fork 2
55 { "fork", CB_SYS_fork
, TARGET_LINUX_SYS_fork
},
58 # define TARGET_LINUX_SYS_read 3
59 { "read", CB_SYS_read
, TARGET_LINUX_SYS_read
},
62 # define TARGET_LINUX_SYS_write 4
63 { "write", CB_SYS_write
, TARGET_LINUX_SYS_write
},
66 # define TARGET_LINUX_SYS_open 5
67 { "open", CB_SYS_open
, TARGET_LINUX_SYS_open
},
70 # define TARGET_LINUX_SYS_close 6
71 { "close", CB_SYS_close
, TARGET_LINUX_SYS_close
},
74 # define TARGET_LINUX_SYS_creat 8
75 { "creat", CB_SYS_creat
, TARGET_LINUX_SYS_creat
},
78 # define TARGET_LINUX_SYS_link 9
79 { "link", CB_SYS_link
, TARGET_LINUX_SYS_link
},
82 # define TARGET_LINUX_SYS_unlink 10
83 { "unlink", CB_SYS_unlink
, TARGET_LINUX_SYS_unlink
},
86 # define TARGET_LINUX_SYS_execve 11
87 { "execve", CB_SYS_execve
, TARGET_LINUX_SYS_execve
},
90 # define TARGET_LINUX_SYS_chdir 12
91 { "chdir", CB_SYS_chdir
, TARGET_LINUX_SYS_chdir
},
94 # define TARGET_LINUX_SYS_time 13
95 { "time", CB_SYS_time
, TARGET_LINUX_SYS_time
},
98 # define TARGET_LINUX_SYS_mknod 14
99 { "mknod", CB_SYS_mknod
, TARGET_LINUX_SYS_mknod
},
102 # define TARGET_LINUX_SYS_chmod 15
103 { "chmod", CB_SYS_chmod
, TARGET_LINUX_SYS_chmod
},
106 # define TARGET_LINUX_SYS_chown 16
107 { "chown", CB_SYS_chown
, TARGET_LINUX_SYS_chown
},
110 # define TARGET_LINUX_SYS_lseek 19
111 { "lseek", CB_SYS_lseek
, TARGET_LINUX_SYS_lseek
},
114 # define TARGET_LINUX_SYS_getpid 20
115 { "getpid", CB_SYS_getpid
, TARGET_LINUX_SYS_getpid
},
118 # define TARGET_LINUX_SYS_mount 21
119 { "mount", CB_SYS_mount
, TARGET_LINUX_SYS_mount
},
122 # define TARGET_LINUX_SYS_setuid 23
123 { "setuid", CB_SYS_setuid
, TARGET_LINUX_SYS_setuid
},
126 # define TARGET_LINUX_SYS_getuid 24
127 { "getuid", CB_SYS_getuid
, TARGET_LINUX_SYS_getuid
},
130 # define TARGET_LINUX_SYS_stime 25
131 { "stime", CB_SYS_stime
, TARGET_LINUX_SYS_stime
},
134 # define TARGET_LINUX_SYS_ptrace 26
135 { "ptrace", CB_SYS_ptrace
, TARGET_LINUX_SYS_ptrace
},
138 # define TARGET_LINUX_SYS_alarm 27
139 { "alarm", CB_SYS_alarm
, TARGET_LINUX_SYS_alarm
},
142 # define TARGET_LINUX_SYS_pause 29
143 { "pause", CB_SYS_pause
, TARGET_LINUX_SYS_pause
},
146 # define TARGET_LINUX_SYS_access 33
147 { "access", CB_SYS_access
, TARGET_LINUX_SYS_access
},
150 # define TARGET_LINUX_SYS_nice 34
151 { "nice", CB_SYS_nice
, TARGET_LINUX_SYS_nice
},
154 # define TARGET_LINUX_SYS_sync 36
155 { "sync", CB_SYS_sync
, TARGET_LINUX_SYS_sync
},
158 # define TARGET_LINUX_SYS_kill 37
159 { "kill", CB_SYS_kill
, TARGET_LINUX_SYS_kill
},
162 # define TARGET_LINUX_SYS_rename 38
163 { "rename", CB_SYS_rename
, TARGET_LINUX_SYS_rename
},
166 # define TARGET_LINUX_SYS_mkdir 39
167 { "mkdir", CB_SYS_mkdir
, TARGET_LINUX_SYS_mkdir
},
170 # define TARGET_LINUX_SYS_rmdir 40
171 { "rmdir", CB_SYS_rmdir
, TARGET_LINUX_SYS_rmdir
},
174 # define TARGET_LINUX_SYS_dup 41
175 { "dup", CB_SYS_dup
, TARGET_LINUX_SYS_dup
},
178 # define TARGET_LINUX_SYS_pipe 42
179 { "pipe", CB_SYS_pipe
, TARGET_LINUX_SYS_pipe
},
182 # define TARGET_LINUX_SYS_times 43
183 { "times", CB_SYS_times
, TARGET_LINUX_SYS_times
},
186 # define TARGET_LINUX_SYS_brk 45
187 { "brk", CB_SYS_brk
, TARGET_LINUX_SYS_brk
},
190 # define TARGET_LINUX_SYS_setgid 46
191 { "setgid", CB_SYS_setgid
, TARGET_LINUX_SYS_setgid
},
194 # define TARGET_LINUX_SYS_getgid 47
195 { "getgid", CB_SYS_getgid
, TARGET_LINUX_SYS_getgid
},
197 #ifdef CB_SYS_geteuid
198 # define TARGET_LINUX_SYS_geteuid 49
199 { "geteuid", CB_SYS_geteuid
, TARGET_LINUX_SYS_geteuid
},
201 #ifdef CB_SYS_getegid
202 # define TARGET_LINUX_SYS_getegid 50
203 { "getegid", CB_SYS_getegid
, TARGET_LINUX_SYS_getegid
},
206 # define TARGET_LINUX_SYS_acct 51
207 { "acct", CB_SYS_acct
, TARGET_LINUX_SYS_acct
},
209 #ifdef CB_SYS_umount2
210 # define TARGET_LINUX_SYS_umount2 52
211 { "umount2", CB_SYS_umount2
, TARGET_LINUX_SYS_umount2
},
214 # define TARGET_LINUX_SYS_ioctl 54
215 { "ioctl", CB_SYS_ioctl
, TARGET_LINUX_SYS_ioctl
},
218 # define TARGET_LINUX_SYS_fcntl 55
219 { "fcntl", CB_SYS_fcntl
, TARGET_LINUX_SYS_fcntl
},
221 #ifdef CB_SYS_setpgid
222 # define TARGET_LINUX_SYS_setpgid 57
223 { "setpgid", CB_SYS_setpgid
, TARGET_LINUX_SYS_setpgid
},
226 # define TARGET_LINUX_SYS_umask 60
227 { "umask", CB_SYS_umask
, TARGET_LINUX_SYS_umask
},
230 # define TARGET_LINUX_SYS_chroot 61
231 { "chroot", CB_SYS_chroot
, TARGET_LINUX_SYS_chroot
},
234 # define TARGET_LINUX_SYS_ustat 62
235 { "ustat", CB_SYS_ustat
, TARGET_LINUX_SYS_ustat
},
238 # define TARGET_LINUX_SYS_dup2 63
239 { "dup2", CB_SYS_dup2
, TARGET_LINUX_SYS_dup2
},
241 #ifdef CB_SYS_getppid
242 # define TARGET_LINUX_SYS_getppid 64
243 { "getppid", CB_SYS_getppid
, TARGET_LINUX_SYS_getppid
},
245 #ifdef CB_SYS_getpgrp
246 # define TARGET_LINUX_SYS_getpgrp 65
247 { "getpgrp", CB_SYS_getpgrp
, TARGET_LINUX_SYS_getpgrp
},
250 # define TARGET_LINUX_SYS_setsid 66
251 { "setsid", CB_SYS_setsid
, TARGET_LINUX_SYS_setsid
},
253 #ifdef CB_SYS_sgetmask
254 # define TARGET_LINUX_SYS_sgetmask 68
255 { "sgetmask", CB_SYS_sgetmask
, TARGET_LINUX_SYS_sgetmask
},
257 #ifdef CB_SYS_ssetmask
258 # define TARGET_LINUX_SYS_ssetmask 69
259 { "ssetmask", CB_SYS_ssetmask
, TARGET_LINUX_SYS_ssetmask
},
261 #ifdef CB_SYS_setreuid
262 # define TARGET_LINUX_SYS_setreuid 70
263 { "setreuid", CB_SYS_setreuid
, TARGET_LINUX_SYS_setreuid
},
265 #ifdef CB_SYS_setregid
266 # define TARGET_LINUX_SYS_setregid 71
267 { "setregid", CB_SYS_setregid
, TARGET_LINUX_SYS_setregid
},
269 #ifdef CB_SYS_sethostname
270 # define TARGET_LINUX_SYS_sethostname 74
271 { "sethostname", CB_SYS_sethostname
, TARGET_LINUX_SYS_sethostname
},
273 #ifdef CB_SYS_setrlimit
274 # define TARGET_LINUX_SYS_setrlimit 75
275 { "setrlimit", CB_SYS_setrlimit
, TARGET_LINUX_SYS_setrlimit
},
277 #ifdef CB_SYS_getrusage
278 # define TARGET_LINUX_SYS_getrusage 77
279 { "getrusage", CB_SYS_getrusage
, TARGET_LINUX_SYS_getrusage
},
281 #ifdef CB_SYS_gettimeofday
282 # define TARGET_LINUX_SYS_gettimeofday 78
283 { "gettimeofday", CB_SYS_gettimeofday
, TARGET_LINUX_SYS_gettimeofday
},
285 #ifdef CB_SYS_settimeofday
286 # define TARGET_LINUX_SYS_settimeofday 79
287 { "settimeofday", CB_SYS_settimeofday
, TARGET_LINUX_SYS_settimeofday
},
289 #ifdef CB_SYS_getgroups
290 # define TARGET_LINUX_SYS_getgroups 80
291 { "getgroups", CB_SYS_getgroups
, TARGET_LINUX_SYS_getgroups
},
293 #ifdef CB_SYS_setgroups
294 # define TARGET_LINUX_SYS_setgroups 81
295 { "setgroups", CB_SYS_setgroups
, TARGET_LINUX_SYS_setgroups
},
297 #ifdef CB_SYS_symlink
298 # define TARGET_LINUX_SYS_symlink 83
299 { "symlink", CB_SYS_symlink
, TARGET_LINUX_SYS_symlink
},
301 #ifdef CB_SYS_readlink
302 # define TARGET_LINUX_SYS_readlink 85
303 { "readlink", CB_SYS_readlink
, TARGET_LINUX_SYS_readlink
},
306 # define TARGET_LINUX_SYS_reboot 88
307 { "reboot", CB_SYS_reboot
, TARGET_LINUX_SYS_reboot
},
310 # define TARGET_LINUX_SYS_munmap 91
311 { "munmap", CB_SYS_munmap
, TARGET_LINUX_SYS_munmap
},
313 #ifdef CB_SYS_truncate
314 # define TARGET_LINUX_SYS_truncate 92
315 { "truncate", CB_SYS_truncate
, TARGET_LINUX_SYS_truncate
},
317 #ifdef CB_SYS_ftruncate
318 # define TARGET_LINUX_SYS_ftruncate 93
319 { "ftruncate", CB_SYS_ftruncate
, TARGET_LINUX_SYS_ftruncate
},
322 # define TARGET_LINUX_SYS_fchmod 94
323 { "fchmod", CB_SYS_fchmod
, TARGET_LINUX_SYS_fchmod
},
326 # define TARGET_LINUX_SYS_fchown 95
327 { "fchown", CB_SYS_fchown
, TARGET_LINUX_SYS_fchown
},
329 #ifdef CB_SYS_getpriority
330 # define TARGET_LINUX_SYS_getpriority 96
331 { "getpriority", CB_SYS_getpriority
, TARGET_LINUX_SYS_getpriority
},
333 #ifdef CB_SYS_setpriority
334 # define TARGET_LINUX_SYS_setpriority 97
335 { "setpriority", CB_SYS_setpriority
, TARGET_LINUX_SYS_setpriority
},
338 # define TARGET_LINUX_SYS_statfs 99
339 { "statfs", CB_SYS_statfs
, TARGET_LINUX_SYS_statfs
},
341 #ifdef CB_SYS_fstatfs
342 # define TARGET_LINUX_SYS_fstatfs 100
343 { "fstatfs", CB_SYS_fstatfs
, TARGET_LINUX_SYS_fstatfs
},
346 # define TARGET_LINUX_SYS_syslog 103
347 { "syslog", CB_SYS_syslog
, TARGET_LINUX_SYS_syslog
},
349 #ifdef CB_SYS_setitimer
350 # define TARGET_LINUX_SYS_setitimer 104
351 { "setitimer", CB_SYS_setitimer
, TARGET_LINUX_SYS_setitimer
},
353 #ifdef CB_SYS_getitimer
354 # define TARGET_LINUX_SYS_getitimer 105
355 { "getitimer", CB_SYS_getitimer
, TARGET_LINUX_SYS_getitimer
},
358 # define TARGET_LINUX_SYS_stat 106
359 { "stat", CB_SYS_stat
, TARGET_LINUX_SYS_stat
},
362 # define TARGET_LINUX_SYS_lstat 107
363 { "lstat", CB_SYS_lstat
, TARGET_LINUX_SYS_lstat
},
366 # define TARGET_LINUX_SYS_fstat 108
367 { "fstat", CB_SYS_fstat
, TARGET_LINUX_SYS_fstat
},
369 #ifdef CB_SYS_vhangup
370 # define TARGET_LINUX_SYS_vhangup 111
371 { "vhangup", CB_SYS_vhangup
, TARGET_LINUX_SYS_vhangup
},
374 # define TARGET_LINUX_SYS_wait4 114
375 { "wait4", CB_SYS_wait4
, TARGET_LINUX_SYS_wait4
},
377 #ifdef CB_SYS_sysinfo
378 # define TARGET_LINUX_SYS_sysinfo 116
379 { "sysinfo", CB_SYS_sysinfo
, TARGET_LINUX_SYS_sysinfo
},
382 # define TARGET_LINUX_SYS_fsync 118
383 { "fsync", CB_SYS_fsync
, TARGET_LINUX_SYS_fsync
},
386 # define TARGET_LINUX_SYS_clone 120
387 { "clone", CB_SYS_clone
, TARGET_LINUX_SYS_clone
},
389 #ifdef CB_SYS_setdomainname
390 # define TARGET_LINUX_SYS_setdomainname 121
391 { "setdomainname", CB_SYS_setdomainname
, TARGET_LINUX_SYS_setdomainname
},
394 # define TARGET_LINUX_SYS_uname 122
395 { "uname", CB_SYS_uname
, TARGET_LINUX_SYS_uname
},
397 #ifdef CB_SYS_adjtimex
398 # define TARGET_LINUX_SYS_adjtimex 124
399 { "adjtimex", CB_SYS_adjtimex
, TARGET_LINUX_SYS_adjtimex
},
401 #ifdef CB_SYS_mprotect
402 # define TARGET_LINUX_SYS_mprotect 125
403 { "mprotect", CB_SYS_mprotect
, TARGET_LINUX_SYS_mprotect
},
405 #ifdef CB_SYS_init_module
406 # define TARGET_LINUX_SYS_init_module 128
407 { "init_module", CB_SYS_init_module
, TARGET_LINUX_SYS_init_module
},
409 #ifdef CB_SYS_delete_module
410 # define TARGET_LINUX_SYS_delete_module 129
411 { "delete_module", CB_SYS_delete_module
, TARGET_LINUX_SYS_delete_module
},
413 #ifdef CB_SYS_quotactl
414 # define TARGET_LINUX_SYS_quotactl 131
415 { "quotactl", CB_SYS_quotactl
, TARGET_LINUX_SYS_quotactl
},
417 #ifdef CB_SYS_getpgid
418 # define TARGET_LINUX_SYS_getpgid 132
419 { "getpgid", CB_SYS_getpgid
, TARGET_LINUX_SYS_getpgid
},
422 # define TARGET_LINUX_SYS_fchdir 133
423 { "fchdir", CB_SYS_fchdir
, TARGET_LINUX_SYS_fchdir
},
425 #ifdef CB_SYS_bdflush
426 # define TARGET_LINUX_SYS_bdflush 134
427 { "bdflush", CB_SYS_bdflush
, TARGET_LINUX_SYS_bdflush
},
429 #ifdef CB_SYS_personality
430 # define TARGET_LINUX_SYS_personality 136
431 { "personality", CB_SYS_personality
, TARGET_LINUX_SYS_personality
},
433 #ifdef CB_SYS_setfsuid
434 # define TARGET_LINUX_SYS_setfsuid 138
435 { "setfsuid", CB_SYS_setfsuid
, TARGET_LINUX_SYS_setfsuid
},
437 #ifdef CB_SYS_setfsgid
438 # define TARGET_LINUX_SYS_setfsgid 139
439 { "setfsgid", CB_SYS_setfsgid
, TARGET_LINUX_SYS_setfsgid
},
441 #ifdef CB_SYS__llseek
442 # define TARGET_LINUX_SYS__llseek 140
443 { "_llseek", CB_SYS__llseek
, TARGET_LINUX_SYS__llseek
},
445 #ifdef CB_SYS_getdents
446 # define TARGET_LINUX_SYS_getdents 141
447 { "getdents", CB_SYS_getdents
, TARGET_LINUX_SYS_getdents
},
450 # define TARGET_LINUX_SYS_flock 143
451 { "flock", CB_SYS_flock
, TARGET_LINUX_SYS_flock
},
454 # define TARGET_LINUX_SYS_readv 145
455 { "readv", CB_SYS_readv
, TARGET_LINUX_SYS_readv
},
458 # define TARGET_LINUX_SYS_writev 146
459 { "writev", CB_SYS_writev
, TARGET_LINUX_SYS_writev
},
462 # define TARGET_LINUX_SYS_getsid 147
463 { "getsid", CB_SYS_getsid
, TARGET_LINUX_SYS_getsid
},
465 #ifdef CB_SYS_fdatasync
466 # define TARGET_LINUX_SYS_fdatasync 148
467 { "fdatasync", CB_SYS_fdatasync
, TARGET_LINUX_SYS_fdatasync
},
469 #ifdef CB_SYS__sysctl
470 # define TARGET_LINUX_SYS__sysctl 149
471 { "_sysctl", CB_SYS__sysctl
, TARGET_LINUX_SYS__sysctl
},
473 #ifdef CB_SYS_sched_setparam
474 # define TARGET_LINUX_SYS_sched_setparam 154
475 { "sched_setparam", CB_SYS_sched_setparam
, TARGET_LINUX_SYS_sched_setparam
},
477 #ifdef CB_SYS_sched_getparam
478 # define TARGET_LINUX_SYS_sched_getparam 155
479 { "sched_getparam", CB_SYS_sched_getparam
, TARGET_LINUX_SYS_sched_getparam
},
481 #ifdef CB_SYS_sched_setscheduler
482 # define TARGET_LINUX_SYS_sched_setscheduler 156
483 { "sched_setscheduler", CB_SYS_sched_setscheduler
, TARGET_LINUX_SYS_sched_setscheduler
},
485 #ifdef CB_SYS_sched_getscheduler
486 # define TARGET_LINUX_SYS_sched_getscheduler 157
487 { "sched_getscheduler", CB_SYS_sched_getscheduler
, TARGET_LINUX_SYS_sched_getscheduler
},
489 #ifdef CB_SYS_sched_yield
490 # define TARGET_LINUX_SYS_sched_yield 158
491 { "sched_yield", CB_SYS_sched_yield
, TARGET_LINUX_SYS_sched_yield
},
493 #ifdef CB_SYS_sched_get_priority_max
494 # define TARGET_LINUX_SYS_sched_get_priority_max 159
495 { "sched_get_priority_max", CB_SYS_sched_get_priority_max
, TARGET_LINUX_SYS_sched_get_priority_max
},
497 #ifdef CB_SYS_sched_get_priority_min
498 # define TARGET_LINUX_SYS_sched_get_priority_min 160
499 { "sched_get_priority_min", CB_SYS_sched_get_priority_min
, TARGET_LINUX_SYS_sched_get_priority_min
},
501 #ifdef CB_SYS_sched_rr_get_interval
502 # define TARGET_LINUX_SYS_sched_rr_get_interval 161
503 { "sched_rr_get_interval", CB_SYS_sched_rr_get_interval
, TARGET_LINUX_SYS_sched_rr_get_interval
},
505 #ifdef CB_SYS_nanosleep
506 # define TARGET_LINUX_SYS_nanosleep 162
507 { "nanosleep", CB_SYS_nanosleep
, TARGET_LINUX_SYS_nanosleep
},
510 # define TARGET_LINUX_SYS_mremap 163
511 { "mremap", CB_SYS_mremap
, TARGET_LINUX_SYS_mremap
},
513 #ifdef CB_SYS_setresuid
514 # define TARGET_LINUX_SYS_setresuid 164
515 { "setresuid", CB_SYS_setresuid
, TARGET_LINUX_SYS_setresuid
},
517 #ifdef CB_SYS_getresuid
518 # define TARGET_LINUX_SYS_getresuid 165
519 { "getresuid", CB_SYS_getresuid
, TARGET_LINUX_SYS_getresuid
},
521 #ifdef CB_SYS_nfsservctl
522 # define TARGET_LINUX_SYS_nfsservctl 169
523 { "nfsservctl", CB_SYS_nfsservctl
, TARGET_LINUX_SYS_nfsservctl
},
525 #ifdef CB_SYS_setresgid
526 # define TARGET_LINUX_SYS_setresgid 170
527 { "setresgid", CB_SYS_setresgid
, TARGET_LINUX_SYS_setresgid
},
529 #ifdef CB_SYS_getresgid
530 # define TARGET_LINUX_SYS_getresgid 171
531 { "getresgid", CB_SYS_getresgid
, TARGET_LINUX_SYS_getresgid
},
534 # define TARGET_LINUX_SYS_prctl 172
535 { "prctl", CB_SYS_prctl
, TARGET_LINUX_SYS_prctl
},
537 #ifdef CB_SYS_rt_sigreturn
538 # define TARGET_LINUX_SYS_rt_sigreturn 173
539 { "rt_sigreturn", CB_SYS_rt_sigreturn
, TARGET_LINUX_SYS_rt_sigreturn
},
541 #ifdef CB_SYS_rt_sigaction
542 # define TARGET_LINUX_SYS_rt_sigaction 174
543 { "rt_sigaction", CB_SYS_rt_sigaction
, TARGET_LINUX_SYS_rt_sigaction
},
545 #ifdef CB_SYS_rt_sigprocmask
546 # define TARGET_LINUX_SYS_rt_sigprocmask 175
547 { "rt_sigprocmask", CB_SYS_rt_sigprocmask
, TARGET_LINUX_SYS_rt_sigprocmask
},
549 #ifdef CB_SYS_rt_sigpending
550 # define TARGET_LINUX_SYS_rt_sigpending 176
551 { "rt_sigpending", CB_SYS_rt_sigpending
, TARGET_LINUX_SYS_rt_sigpending
},
553 #ifdef CB_SYS_rt_sigtimedwait
554 # define TARGET_LINUX_SYS_rt_sigtimedwait 177
555 { "rt_sigtimedwait", CB_SYS_rt_sigtimedwait
, TARGET_LINUX_SYS_rt_sigtimedwait
},
557 #ifdef CB_SYS_rt_sigqueueinfo
558 # define TARGET_LINUX_SYS_rt_sigqueueinfo 178
559 { "rt_sigqueueinfo", CB_SYS_rt_sigqueueinfo
, TARGET_LINUX_SYS_rt_sigqueueinfo
},
561 #ifdef CB_SYS_rt_sigsuspend
562 # define TARGET_LINUX_SYS_rt_sigsuspend 179
563 { "rt_sigsuspend", CB_SYS_rt_sigsuspend
, TARGET_LINUX_SYS_rt_sigsuspend
},
566 # define TARGET_LINUX_SYS_pread 180
567 { "pread", CB_SYS_pread
, TARGET_LINUX_SYS_pread
},
570 # define TARGET_LINUX_SYS_pwrite 181
571 { "pwrite", CB_SYS_pwrite
, TARGET_LINUX_SYS_pwrite
},
574 # define TARGET_LINUX_SYS_lchown 182
575 { "lchown", CB_SYS_lchown
, TARGET_LINUX_SYS_lchown
},
578 # define TARGET_LINUX_SYS_getcwd 183
579 { "getcwd", CB_SYS_getcwd
, TARGET_LINUX_SYS_getcwd
},
582 # define TARGET_LINUX_SYS_capget 184
583 { "capget", CB_SYS_capget
, TARGET_LINUX_SYS_capget
},
586 # define TARGET_LINUX_SYS_capset 185
587 { "capset", CB_SYS_capset
, TARGET_LINUX_SYS_capset
},
589 #ifdef CB_SYS_sigaltstack
590 # define TARGET_LINUX_SYS_sigaltstack 186
591 { "sigaltstack", CB_SYS_sigaltstack
, TARGET_LINUX_SYS_sigaltstack
},
593 #ifdef CB_SYS_sendfile
594 # define TARGET_LINUX_SYS_sendfile 187
595 { "sendfile", CB_SYS_sendfile
, TARGET_LINUX_SYS_sendfile
},
598 # define TARGET_LINUX_SYS_vfork 190
599 { "vfork", CB_SYS_vfork
, TARGET_LINUX_SYS_vfork
},
601 #ifdef CB_SYS_getrlimit
602 # define TARGET_LINUX_SYS_getrlimit 191
603 { "getrlimit", CB_SYS_getrlimit
, TARGET_LINUX_SYS_getrlimit
},
606 # define TARGET_LINUX_SYS_mmap2 192
607 { "mmap2", CB_SYS_mmap2
, TARGET_LINUX_SYS_mmap2
},
609 #ifdef CB_SYS_truncate64
610 # define TARGET_LINUX_SYS_truncate64 193
611 { "truncate64", CB_SYS_truncate64
, TARGET_LINUX_SYS_truncate64
},
613 #ifdef CB_SYS_ftruncate64
614 # define TARGET_LINUX_SYS_ftruncate64 194
615 { "ftruncate64", CB_SYS_ftruncate64
, TARGET_LINUX_SYS_ftruncate64
},
618 # define TARGET_LINUX_SYS_stat64 195
619 { "stat64", CB_SYS_stat64
, TARGET_LINUX_SYS_stat64
},
621 #ifdef CB_SYS_lstat64
622 # define TARGET_LINUX_SYS_lstat64 196
623 { "lstat64", CB_SYS_lstat64
, TARGET_LINUX_SYS_lstat64
},
625 #ifdef CB_SYS_fstat64
626 # define TARGET_LINUX_SYS_fstat64 197
627 { "fstat64", CB_SYS_fstat64
, TARGET_LINUX_SYS_fstat64
},
629 #ifdef CB_SYS_chown32
630 # define TARGET_LINUX_SYS_chown32 198
631 { "chown32", CB_SYS_chown32
, TARGET_LINUX_SYS_chown32
},
633 #ifdef CB_SYS_getuid32
634 # define TARGET_LINUX_SYS_getuid32 199
635 { "getuid32", CB_SYS_getuid32
, TARGET_LINUX_SYS_getuid32
},
637 #ifdef CB_SYS_getgid32
638 # define TARGET_LINUX_SYS_getgid32 200
639 { "getgid32", CB_SYS_getgid32
, TARGET_LINUX_SYS_getgid32
},
641 #ifdef CB_SYS_geteuid32
642 # define TARGET_LINUX_SYS_geteuid32 201
643 { "geteuid32", CB_SYS_geteuid32
, TARGET_LINUX_SYS_geteuid32
},
645 #ifdef CB_SYS_getegid32
646 # define TARGET_LINUX_SYS_getegid32 202
647 { "getegid32", CB_SYS_getegid32
, TARGET_LINUX_SYS_getegid32
},
649 #ifdef CB_SYS_setreuid32
650 # define TARGET_LINUX_SYS_setreuid32 203
651 { "setreuid32", CB_SYS_setreuid32
, TARGET_LINUX_SYS_setreuid32
},
653 #ifdef CB_SYS_setregid32
654 # define TARGET_LINUX_SYS_setregid32 204
655 { "setregid32", CB_SYS_setregid32
, TARGET_LINUX_SYS_setregid32
},
657 #ifdef CB_SYS_getgroups32
658 # define TARGET_LINUX_SYS_getgroups32 205
659 { "getgroups32", CB_SYS_getgroups32
, TARGET_LINUX_SYS_getgroups32
},
661 #ifdef CB_SYS_setgroups32
662 # define TARGET_LINUX_SYS_setgroups32 206
663 { "setgroups32", CB_SYS_setgroups32
, TARGET_LINUX_SYS_setgroups32
},
665 #ifdef CB_SYS_fchown32
666 # define TARGET_LINUX_SYS_fchown32 207
667 { "fchown32", CB_SYS_fchown32
, TARGET_LINUX_SYS_fchown32
},
669 #ifdef CB_SYS_setresuid32
670 # define TARGET_LINUX_SYS_setresuid32 208
671 { "setresuid32", CB_SYS_setresuid32
, TARGET_LINUX_SYS_setresuid32
},
673 #ifdef CB_SYS_getresuid32
674 # define TARGET_LINUX_SYS_getresuid32 209
675 { "getresuid32", CB_SYS_getresuid32
, TARGET_LINUX_SYS_getresuid32
},
677 #ifdef CB_SYS_setresgid32
678 # define TARGET_LINUX_SYS_setresgid32 210
679 { "setresgid32", CB_SYS_setresgid32
, TARGET_LINUX_SYS_setresgid32
},
681 #ifdef CB_SYS_getresgid32
682 # define TARGET_LINUX_SYS_getresgid32 211
683 { "getresgid32", CB_SYS_getresgid32
, TARGET_LINUX_SYS_getresgid32
},
685 #ifdef CB_SYS_lchown32
686 # define TARGET_LINUX_SYS_lchown32 212
687 { "lchown32", CB_SYS_lchown32
, TARGET_LINUX_SYS_lchown32
},
689 #ifdef CB_SYS_setuid32
690 # define TARGET_LINUX_SYS_setuid32 213
691 { "setuid32", CB_SYS_setuid32
, TARGET_LINUX_SYS_setuid32
},
693 #ifdef CB_SYS_setgid32
694 # define TARGET_LINUX_SYS_setgid32 214
695 { "setgid32", CB_SYS_setgid32
, TARGET_LINUX_SYS_setgid32
},
697 #ifdef CB_SYS_setfsuid32
698 # define TARGET_LINUX_SYS_setfsuid32 215
699 { "setfsuid32", CB_SYS_setfsuid32
, TARGET_LINUX_SYS_setfsuid32
},
701 #ifdef CB_SYS_setfsgid32
702 # define TARGET_LINUX_SYS_setfsgid32 216
703 { "setfsgid32", CB_SYS_setfsgid32
, TARGET_LINUX_SYS_setfsgid32
},
705 #ifdef CB_SYS_pivot_root
706 # define TARGET_LINUX_SYS_pivot_root 217
707 { "pivot_root", CB_SYS_pivot_root
, TARGET_LINUX_SYS_pivot_root
},
709 #ifdef CB_SYS_getdents64
710 # define TARGET_LINUX_SYS_getdents64 220
711 { "getdents64", CB_SYS_getdents64
, TARGET_LINUX_SYS_getdents64
},
713 #ifdef CB_SYS_fcntl64
714 # define TARGET_LINUX_SYS_fcntl64 221
715 { "fcntl64", CB_SYS_fcntl64
, TARGET_LINUX_SYS_fcntl64
},
718 # define TARGET_LINUX_SYS_gettid 224
719 { "gettid", CB_SYS_gettid
, TARGET_LINUX_SYS_gettid
},
721 #ifdef CB_SYS_readahead
722 # define TARGET_LINUX_SYS_readahead 225
723 { "readahead", CB_SYS_readahead
, TARGET_LINUX_SYS_readahead
},
725 #ifdef CB_SYS_setxattr
726 # define TARGET_LINUX_SYS_setxattr 226
727 { "setxattr", CB_SYS_setxattr
, TARGET_LINUX_SYS_setxattr
},
729 #ifdef CB_SYS_lsetxattr
730 # define TARGET_LINUX_SYS_lsetxattr 227
731 { "lsetxattr", CB_SYS_lsetxattr
, TARGET_LINUX_SYS_lsetxattr
},
733 #ifdef CB_SYS_fsetxattr
734 # define TARGET_LINUX_SYS_fsetxattr 228
735 { "fsetxattr", CB_SYS_fsetxattr
, TARGET_LINUX_SYS_fsetxattr
},
737 #ifdef CB_SYS_getxattr
738 # define TARGET_LINUX_SYS_getxattr 229
739 { "getxattr", CB_SYS_getxattr
, TARGET_LINUX_SYS_getxattr
},
741 #ifdef CB_SYS_lgetxattr
742 # define TARGET_LINUX_SYS_lgetxattr 230
743 { "lgetxattr", CB_SYS_lgetxattr
, TARGET_LINUX_SYS_lgetxattr
},
745 #ifdef CB_SYS_fgetxattr
746 # define TARGET_LINUX_SYS_fgetxattr 231
747 { "fgetxattr", CB_SYS_fgetxattr
, TARGET_LINUX_SYS_fgetxattr
},
749 #ifdef CB_SYS_listxattr
750 # define TARGET_LINUX_SYS_listxattr 232
751 { "listxattr", CB_SYS_listxattr
, TARGET_LINUX_SYS_listxattr
},
753 #ifdef CB_SYS_llistxattr
754 # define TARGET_LINUX_SYS_llistxattr 233
755 { "llistxattr", CB_SYS_llistxattr
, TARGET_LINUX_SYS_llistxattr
},
757 #ifdef CB_SYS_flistxattr
758 # define TARGET_LINUX_SYS_flistxattr 234
759 { "flistxattr", CB_SYS_flistxattr
, TARGET_LINUX_SYS_flistxattr
},
761 #ifdef CB_SYS_removexattr
762 # define TARGET_LINUX_SYS_removexattr 235
763 { "removexattr", CB_SYS_removexattr
, TARGET_LINUX_SYS_removexattr
},
765 #ifdef CB_SYS_lremovexattr
766 # define TARGET_LINUX_SYS_lremovexattr 236
767 { "lremovexattr", CB_SYS_lremovexattr
, TARGET_LINUX_SYS_lremovexattr
},
769 #ifdef CB_SYS_fremovexattr
770 # define TARGET_LINUX_SYS_fremovexattr 237
771 { "fremovexattr", CB_SYS_fremovexattr
, TARGET_LINUX_SYS_fremovexattr
},
774 # define TARGET_LINUX_SYS_tkill 238
775 { "tkill", CB_SYS_tkill
, TARGET_LINUX_SYS_tkill
},
777 #ifdef CB_SYS_sendfile64
778 # define TARGET_LINUX_SYS_sendfile64 239
779 { "sendfile64", CB_SYS_sendfile64
, TARGET_LINUX_SYS_sendfile64
},
782 # define TARGET_LINUX_SYS_futex 240
783 { "futex", CB_SYS_futex
, TARGET_LINUX_SYS_futex
},
785 #ifdef CB_SYS_sched_setaffinity
786 # define TARGET_LINUX_SYS_sched_setaffinity 241
787 { "sched_setaffinity", CB_SYS_sched_setaffinity
, TARGET_LINUX_SYS_sched_setaffinity
},
789 #ifdef CB_SYS_sched_getaffinity
790 # define TARGET_LINUX_SYS_sched_getaffinity 242
791 { "sched_getaffinity", CB_SYS_sched_getaffinity
, TARGET_LINUX_SYS_sched_getaffinity
},
793 #ifdef CB_SYS_io_setup
794 # define TARGET_LINUX_SYS_io_setup 245
795 { "io_setup", CB_SYS_io_setup
, TARGET_LINUX_SYS_io_setup
},
797 #ifdef CB_SYS_io_destroy
798 # define TARGET_LINUX_SYS_io_destroy 246
799 { "io_destroy", CB_SYS_io_destroy
, TARGET_LINUX_SYS_io_destroy
},
801 #ifdef CB_SYS_io_getevents
802 # define TARGET_LINUX_SYS_io_getevents 247
803 { "io_getevents", CB_SYS_io_getevents
, TARGET_LINUX_SYS_io_getevents
},
805 #ifdef CB_SYS_io_submit
806 # define TARGET_LINUX_SYS_io_submit 248
807 { "io_submit", CB_SYS_io_submit
, TARGET_LINUX_SYS_io_submit
},
809 #ifdef CB_SYS_io_cancel
810 # define TARGET_LINUX_SYS_io_cancel 249
811 { "io_cancel", CB_SYS_io_cancel
, TARGET_LINUX_SYS_io_cancel
},
813 #ifdef CB_SYS_exit_group
814 # define TARGET_LINUX_SYS_exit_group 252
815 { "exit_group", CB_SYS_exit_group
, TARGET_LINUX_SYS_exit_group
},
817 #ifdef CB_SYS_lookup_dcookie
818 # define TARGET_LINUX_SYS_lookup_dcookie 253
819 { "lookup_dcookie", CB_SYS_lookup_dcookie
, TARGET_LINUX_SYS_lookup_dcookie
},
821 #ifdef CB_SYS_bfin_spinlock
822 # define TARGET_LINUX_SYS_bfin_spinlock 254
823 { "bfin_spinlock", CB_SYS_bfin_spinlock
, TARGET_LINUX_SYS_bfin_spinlock
},
825 #ifdef CB_SYS_epoll_create
826 # define TARGET_LINUX_SYS_epoll_create 255
827 { "epoll_create", CB_SYS_epoll_create
, TARGET_LINUX_SYS_epoll_create
},
829 #ifdef CB_SYS_epoll_ctl
830 # define TARGET_LINUX_SYS_epoll_ctl 256
831 { "epoll_ctl", CB_SYS_epoll_ctl
, TARGET_LINUX_SYS_epoll_ctl
},
833 #ifdef CB_SYS_epoll_wait
834 # define TARGET_LINUX_SYS_epoll_wait 257
835 { "epoll_wait", CB_SYS_epoll_wait
, TARGET_LINUX_SYS_epoll_wait
},
837 #ifdef CB_SYS_set_tid_address
838 # define TARGET_LINUX_SYS_set_tid_address 259
839 { "set_tid_address", CB_SYS_set_tid_address
, TARGET_LINUX_SYS_set_tid_address
},
841 #ifdef CB_SYS_timer_create
842 # define TARGET_LINUX_SYS_timer_create 260
843 { "timer_create", CB_SYS_timer_create
, TARGET_LINUX_SYS_timer_create
},
845 #ifdef CB_SYS_timer_settime
846 # define TARGET_LINUX_SYS_timer_settime 261
847 { "timer_settime", CB_SYS_timer_settime
, TARGET_LINUX_SYS_timer_settime
},
849 #ifdef CB_SYS_timer_gettime
850 # define TARGET_LINUX_SYS_timer_gettime 262
851 { "timer_gettime", CB_SYS_timer_gettime
, TARGET_LINUX_SYS_timer_gettime
},
853 #ifdef CB_SYS_timer_getoverrun
854 # define TARGET_LINUX_SYS_timer_getoverrun 263
855 { "timer_getoverrun", CB_SYS_timer_getoverrun
, TARGET_LINUX_SYS_timer_getoverrun
},
857 #ifdef CB_SYS_timer_delete
858 # define TARGET_LINUX_SYS_timer_delete 264
859 { "timer_delete", CB_SYS_timer_delete
, TARGET_LINUX_SYS_timer_delete
},
861 #ifdef CB_SYS_clock_settime
862 # define TARGET_LINUX_SYS_clock_settime 265
863 { "clock_settime", CB_SYS_clock_settime
, TARGET_LINUX_SYS_clock_settime
},
865 #ifdef CB_SYS_clock_gettime
866 # define TARGET_LINUX_SYS_clock_gettime 266
867 { "clock_gettime", CB_SYS_clock_gettime
, TARGET_LINUX_SYS_clock_gettime
},
869 #ifdef CB_SYS_clock_getres
870 # define TARGET_LINUX_SYS_clock_getres 267
871 { "clock_getres", CB_SYS_clock_getres
, TARGET_LINUX_SYS_clock_getres
},
873 #ifdef CB_SYS_clock_nanosleep
874 # define TARGET_LINUX_SYS_clock_nanosleep 268
875 { "clock_nanosleep", CB_SYS_clock_nanosleep
, TARGET_LINUX_SYS_clock_nanosleep
},
877 #ifdef CB_SYS_statfs64
878 # define TARGET_LINUX_SYS_statfs64 269
879 { "statfs64", CB_SYS_statfs64
, TARGET_LINUX_SYS_statfs64
},
881 #ifdef CB_SYS_fstatfs64
882 # define TARGET_LINUX_SYS_fstatfs64 270
883 { "fstatfs64", CB_SYS_fstatfs64
, TARGET_LINUX_SYS_fstatfs64
},
886 # define TARGET_LINUX_SYS_tgkill 271
887 { "tgkill", CB_SYS_tgkill
, TARGET_LINUX_SYS_tgkill
},
890 # define TARGET_LINUX_SYS_utimes 272
891 { "utimes", CB_SYS_utimes
, TARGET_LINUX_SYS_utimes
},
893 #ifdef CB_SYS_fadvise64_64
894 # define TARGET_LINUX_SYS_fadvise64_64 273
895 { "fadvise64_64", CB_SYS_fadvise64_64
, TARGET_LINUX_SYS_fadvise64_64
},
897 #ifdef CB_SYS_mq_open
898 # define TARGET_LINUX_SYS_mq_open 278
899 { "mq_open", CB_SYS_mq_open
, TARGET_LINUX_SYS_mq_open
},
901 #ifdef CB_SYS_mq_unlink
902 # define TARGET_LINUX_SYS_mq_unlink 279
903 { "mq_unlink", CB_SYS_mq_unlink
, TARGET_LINUX_SYS_mq_unlink
},
905 #ifdef CB_SYS_mq_timedsend
906 # define TARGET_LINUX_SYS_mq_timedsend 280
907 { "mq_timedsend", CB_SYS_mq_timedsend
, TARGET_LINUX_SYS_mq_timedsend
},
909 #ifdef CB_SYS_mq_timedreceive
910 # define TARGET_LINUX_SYS_mq_timedreceive 281
911 { "mq_timedreceive", CB_SYS_mq_timedreceive
, TARGET_LINUX_SYS_mq_timedreceive
},
913 #ifdef CB_SYS_mq_notify
914 # define TARGET_LINUX_SYS_mq_notify 282
915 { "mq_notify", CB_SYS_mq_notify
, TARGET_LINUX_SYS_mq_notify
},
917 #ifdef CB_SYS_mq_getsetattr
918 # define TARGET_LINUX_SYS_mq_getsetattr 283
919 { "mq_getsetattr", CB_SYS_mq_getsetattr
, TARGET_LINUX_SYS_mq_getsetattr
},
921 #ifdef CB_SYS_kexec_load
922 # define TARGET_LINUX_SYS_kexec_load 284
923 { "kexec_load", CB_SYS_kexec_load
, TARGET_LINUX_SYS_kexec_load
},
926 # define TARGET_LINUX_SYS_waitid 285
927 { "waitid", CB_SYS_waitid
, TARGET_LINUX_SYS_waitid
},
929 #ifdef CB_SYS_add_key
930 # define TARGET_LINUX_SYS_add_key 286
931 { "add_key", CB_SYS_add_key
, TARGET_LINUX_SYS_add_key
},
933 #ifdef CB_SYS_request_key
934 # define TARGET_LINUX_SYS_request_key 287
935 { "request_key", CB_SYS_request_key
, TARGET_LINUX_SYS_request_key
},
938 # define TARGET_LINUX_SYS_keyctl 288
939 { "keyctl", CB_SYS_keyctl
, TARGET_LINUX_SYS_keyctl
},
941 #ifdef CB_SYS_ioprio_set
942 # define TARGET_LINUX_SYS_ioprio_set 289
943 { "ioprio_set", CB_SYS_ioprio_set
, TARGET_LINUX_SYS_ioprio_set
},
945 #ifdef CB_SYS_ioprio_get
946 # define TARGET_LINUX_SYS_ioprio_get 290
947 { "ioprio_get", CB_SYS_ioprio_get
, TARGET_LINUX_SYS_ioprio_get
},
949 #ifdef CB_SYS_inotify_init
950 # define TARGET_LINUX_SYS_inotify_init 291
951 { "inotify_init", CB_SYS_inotify_init
, TARGET_LINUX_SYS_inotify_init
},
953 #ifdef CB_SYS_inotify_add_watch
954 # define TARGET_LINUX_SYS_inotify_add_watch 292
955 { "inotify_add_watch", CB_SYS_inotify_add_watch
, TARGET_LINUX_SYS_inotify_add_watch
},
957 #ifdef CB_SYS_inotify_rm_watch
958 # define TARGET_LINUX_SYS_inotify_rm_watch 293
959 { "inotify_rm_watch", CB_SYS_inotify_rm_watch
, TARGET_LINUX_SYS_inotify_rm_watch
},
962 # define TARGET_LINUX_SYS_openat 295
963 { "openat", CB_SYS_openat
, TARGET_LINUX_SYS_openat
},
965 #ifdef CB_SYS_mkdirat
966 # define TARGET_LINUX_SYS_mkdirat 296
967 { "mkdirat", CB_SYS_mkdirat
, TARGET_LINUX_SYS_mkdirat
},
969 #ifdef CB_SYS_mknodat
970 # define TARGET_LINUX_SYS_mknodat 297
971 { "mknodat", CB_SYS_mknodat
, TARGET_LINUX_SYS_mknodat
},
973 #ifdef CB_SYS_fchownat
974 # define TARGET_LINUX_SYS_fchownat 298
975 { "fchownat", CB_SYS_fchownat
, TARGET_LINUX_SYS_fchownat
},
977 #ifdef CB_SYS_futimesat
978 # define TARGET_LINUX_SYS_futimesat 299
979 { "futimesat", CB_SYS_futimesat
, TARGET_LINUX_SYS_futimesat
},
981 #ifdef CB_SYS_fstatat64
982 # define TARGET_LINUX_SYS_fstatat64 300
983 { "fstatat64", CB_SYS_fstatat64
, TARGET_LINUX_SYS_fstatat64
},
985 #ifdef CB_SYS_unlinkat
986 # define TARGET_LINUX_SYS_unlinkat 301
987 { "unlinkat", CB_SYS_unlinkat
, TARGET_LINUX_SYS_unlinkat
},
989 #ifdef CB_SYS_renameat
990 # define TARGET_LINUX_SYS_renameat 302
991 { "renameat", CB_SYS_renameat
, TARGET_LINUX_SYS_renameat
},
994 # define TARGET_LINUX_SYS_linkat 303
995 { "linkat", CB_SYS_linkat
, TARGET_LINUX_SYS_linkat
},
997 #ifdef CB_SYS_symlinkat
998 # define TARGET_LINUX_SYS_symlinkat 304
999 { "symlinkat", CB_SYS_symlinkat
, TARGET_LINUX_SYS_symlinkat
},
1001 #ifdef CB_SYS_readlinkat
1002 # define TARGET_LINUX_SYS_readlinkat 305
1003 { "readlinkat", CB_SYS_readlinkat
, TARGET_LINUX_SYS_readlinkat
},
1005 #ifdef CB_SYS_fchmodat
1006 # define TARGET_LINUX_SYS_fchmodat 306
1007 { "fchmodat", CB_SYS_fchmodat
, TARGET_LINUX_SYS_fchmodat
},
1009 #ifdef CB_SYS_faccessat
1010 # define TARGET_LINUX_SYS_faccessat 307
1011 { "faccessat", CB_SYS_faccessat
, TARGET_LINUX_SYS_faccessat
},
1013 #ifdef CB_SYS_pselect6
1014 # define TARGET_LINUX_SYS_pselect6 308
1015 { "pselect6", CB_SYS_pselect6
, TARGET_LINUX_SYS_pselect6
},
1018 # define TARGET_LINUX_SYS_ppoll 309
1019 { "ppoll", CB_SYS_ppoll
, TARGET_LINUX_SYS_ppoll
},
1021 #ifdef CB_SYS_unshare
1022 # define TARGET_LINUX_SYS_unshare 310
1023 { "unshare", CB_SYS_unshare
, TARGET_LINUX_SYS_unshare
},
1025 #ifdef CB_SYS_sram_alloc
1026 # define TARGET_LINUX_SYS_sram_alloc 311
1027 { "sram_alloc", CB_SYS_sram_alloc
, TARGET_LINUX_SYS_sram_alloc
},
1029 #ifdef CB_SYS_sram_free
1030 # define TARGET_LINUX_SYS_sram_free 312
1031 { "sram_free", CB_SYS_sram_free
, TARGET_LINUX_SYS_sram_free
},
1033 #ifdef CB_SYS_dma_memcpy
1034 # define TARGET_LINUX_SYS_dma_memcpy 313
1035 { "dma_memcpy", CB_SYS_dma_memcpy
, TARGET_LINUX_SYS_dma_memcpy
},
1037 #ifdef CB_SYS_accept
1038 # define TARGET_LINUX_SYS_accept 314
1039 { "accept", CB_SYS_accept
, TARGET_LINUX_SYS_accept
},
1042 # define TARGET_LINUX_SYS_bind 315
1043 { "bind", CB_SYS_bind
, TARGET_LINUX_SYS_bind
},
1045 #ifdef CB_SYS_connect
1046 # define TARGET_LINUX_SYS_connect 316
1047 { "connect", CB_SYS_connect
, TARGET_LINUX_SYS_connect
},
1049 #ifdef CB_SYS_getpeername
1050 # define TARGET_LINUX_SYS_getpeername 317
1051 { "getpeername", CB_SYS_getpeername
, TARGET_LINUX_SYS_getpeername
},
1053 #ifdef CB_SYS_getsockname
1054 # define TARGET_LINUX_SYS_getsockname 318
1055 { "getsockname", CB_SYS_getsockname
, TARGET_LINUX_SYS_getsockname
},
1057 #ifdef CB_SYS_getsockopt
1058 # define TARGET_LINUX_SYS_getsockopt 319
1059 { "getsockopt", CB_SYS_getsockopt
, TARGET_LINUX_SYS_getsockopt
},
1061 #ifdef CB_SYS_listen
1062 # define TARGET_LINUX_SYS_listen 320
1063 { "listen", CB_SYS_listen
, TARGET_LINUX_SYS_listen
},
1066 # define TARGET_LINUX_SYS_recv 321
1067 { "recv", CB_SYS_recv
, TARGET_LINUX_SYS_recv
},
1069 #ifdef CB_SYS_recvfrom
1070 # define TARGET_LINUX_SYS_recvfrom 322
1071 { "recvfrom", CB_SYS_recvfrom
, TARGET_LINUX_SYS_recvfrom
},
1073 #ifdef CB_SYS_recvmsg
1074 # define TARGET_LINUX_SYS_recvmsg 323
1075 { "recvmsg", CB_SYS_recvmsg
, TARGET_LINUX_SYS_recvmsg
},
1078 # define TARGET_LINUX_SYS_send 324
1079 { "send", CB_SYS_send
, TARGET_LINUX_SYS_send
},
1081 #ifdef CB_SYS_sendmsg
1082 # define TARGET_LINUX_SYS_sendmsg 325
1083 { "sendmsg", CB_SYS_sendmsg
, TARGET_LINUX_SYS_sendmsg
},
1085 #ifdef CB_SYS_sendto
1086 # define TARGET_LINUX_SYS_sendto 326
1087 { "sendto", CB_SYS_sendto
, TARGET_LINUX_SYS_sendto
},
1089 #ifdef CB_SYS_setsockopt
1090 # define TARGET_LINUX_SYS_setsockopt 327
1091 { "setsockopt", CB_SYS_setsockopt
, TARGET_LINUX_SYS_setsockopt
},
1093 #ifdef CB_SYS_shutdown
1094 # define TARGET_LINUX_SYS_shutdown 328
1095 { "shutdown", CB_SYS_shutdown
, TARGET_LINUX_SYS_shutdown
},
1097 #ifdef CB_SYS_socket
1098 # define TARGET_LINUX_SYS_socket 329
1099 { "socket", CB_SYS_socket
, TARGET_LINUX_SYS_socket
},
1101 #ifdef CB_SYS_socketpair
1102 # define TARGET_LINUX_SYS_socketpair 330
1103 { "socketpair", CB_SYS_socketpair
, TARGET_LINUX_SYS_socketpair
},
1105 #ifdef CB_SYS_semctl
1106 # define TARGET_LINUX_SYS_semctl 331
1107 { "semctl", CB_SYS_semctl
, TARGET_LINUX_SYS_semctl
},
1109 #ifdef CB_SYS_semget
1110 # define TARGET_LINUX_SYS_semget 332
1111 { "semget", CB_SYS_semget
, TARGET_LINUX_SYS_semget
},
1114 # define TARGET_LINUX_SYS_semop 333
1115 { "semop", CB_SYS_semop
, TARGET_LINUX_SYS_semop
},
1117 #ifdef CB_SYS_msgctl
1118 # define TARGET_LINUX_SYS_msgctl 334
1119 { "msgctl", CB_SYS_msgctl
, TARGET_LINUX_SYS_msgctl
},
1121 #ifdef CB_SYS_msgget
1122 # define TARGET_LINUX_SYS_msgget 335
1123 { "msgget", CB_SYS_msgget
, TARGET_LINUX_SYS_msgget
},
1125 #ifdef CB_SYS_msgrcv
1126 # define TARGET_LINUX_SYS_msgrcv 336
1127 { "msgrcv", CB_SYS_msgrcv
, TARGET_LINUX_SYS_msgrcv
},
1129 #ifdef CB_SYS_msgsnd
1130 # define TARGET_LINUX_SYS_msgsnd 337
1131 { "msgsnd", CB_SYS_msgsnd
, TARGET_LINUX_SYS_msgsnd
},
1134 # define TARGET_LINUX_SYS_shmat 338
1135 { "shmat", CB_SYS_shmat
, TARGET_LINUX_SYS_shmat
},
1137 #ifdef CB_SYS_shmctl
1138 # define TARGET_LINUX_SYS_shmctl 339
1139 { "shmctl", CB_SYS_shmctl
, TARGET_LINUX_SYS_shmctl
},
1142 # define TARGET_LINUX_SYS_shmdt 340
1143 { "shmdt", CB_SYS_shmdt
, TARGET_LINUX_SYS_shmdt
},
1145 #ifdef CB_SYS_shmget
1146 # define TARGET_LINUX_SYS_shmget 341
1147 { "shmget", CB_SYS_shmget
, TARGET_LINUX_SYS_shmget
},
1149 #ifdef CB_SYS_splice
1150 # define TARGET_LINUX_SYS_splice 342
1151 { "splice", CB_SYS_splice
, TARGET_LINUX_SYS_splice
},
1153 #ifdef CB_SYS_sync_file_range
1154 # define TARGET_LINUX_SYS_sync_file_range 343
1155 { "sync_file_range", CB_SYS_sync_file_range
, TARGET_LINUX_SYS_sync_file_range
},
1158 # define TARGET_LINUX_SYS_tee 344
1159 { "tee", CB_SYS_tee
, TARGET_LINUX_SYS_tee
},
1161 #ifdef CB_SYS_vmsplice
1162 # define TARGET_LINUX_SYS_vmsplice 345
1163 { "vmsplice", CB_SYS_vmsplice
, TARGET_LINUX_SYS_vmsplice
},
1165 #ifdef CB_SYS_epoll_pwait
1166 # define TARGET_LINUX_SYS_epoll_pwait 346
1167 { "epoll_pwait", CB_SYS_epoll_pwait
, TARGET_LINUX_SYS_epoll_pwait
},
1169 #ifdef CB_SYS_utimensat
1170 # define TARGET_LINUX_SYS_utimensat 347
1171 { "utimensat", CB_SYS_utimensat
, TARGET_LINUX_SYS_utimensat
},
1173 #ifdef CB_SYS_signalfd
1174 # define TARGET_LINUX_SYS_signalfd 348
1175 { "signalfd", CB_SYS_signalfd
, TARGET_LINUX_SYS_signalfd
},
1177 #ifdef CB_SYS_timerfd_create
1178 # define TARGET_LINUX_SYS_timerfd_create 349
1179 { "timerfd_create", CB_SYS_timerfd_create
, TARGET_LINUX_SYS_timerfd_create
},
1181 #ifdef CB_SYS_eventfd
1182 # define TARGET_LINUX_SYS_eventfd 350
1183 { "eventfd", CB_SYS_eventfd
, TARGET_LINUX_SYS_eventfd
},
1185 #ifdef CB_SYS_pread64
1186 # define TARGET_LINUX_SYS_pread64 351
1187 { "pread64", CB_SYS_pread64
, TARGET_LINUX_SYS_pread64
},
1189 #ifdef CB_SYS_pwrite64
1190 # define TARGET_LINUX_SYS_pwrite64 352
1191 { "pwrite64", CB_SYS_pwrite64
, TARGET_LINUX_SYS_pwrite64
},
1193 #ifdef CB_SYS_fadvise64
1194 # define TARGET_LINUX_SYS_fadvise64 353
1195 { "fadvise64", CB_SYS_fadvise64
, TARGET_LINUX_SYS_fadvise64
},
1197 #ifdef CB_SYS_set_robust_list
1198 # define TARGET_LINUX_SYS_set_robust_list 354
1199 { "set_robust_list", CB_SYS_set_robust_list
, TARGET_LINUX_SYS_set_robust_list
},
1201 #ifdef CB_SYS_get_robust_list
1202 # define TARGET_LINUX_SYS_get_robust_list 355
1203 { "get_robust_list", CB_SYS_get_robust_list
, TARGET_LINUX_SYS_get_robust_list
},
1205 #ifdef CB_SYS_fallocate
1206 # define TARGET_LINUX_SYS_fallocate 356
1207 { "fallocate", CB_SYS_fallocate
, TARGET_LINUX_SYS_fallocate
},
1209 #ifdef CB_SYS_semtimedop
1210 # define TARGET_LINUX_SYS_semtimedop 357
1211 { "semtimedop", CB_SYS_semtimedop
, TARGET_LINUX_SYS_semtimedop
},
1213 #ifdef CB_SYS_timerfd_settime
1214 # define TARGET_LINUX_SYS_timerfd_settime 358
1215 { "timerfd_settime", CB_SYS_timerfd_settime
, TARGET_LINUX_SYS_timerfd_settime
},
1217 #ifdef CB_SYS_timerfd_gettime
1218 # define TARGET_LINUX_SYS_timerfd_gettime 359
1219 { "timerfd_gettime", CB_SYS_timerfd_gettime
, TARGET_LINUX_SYS_timerfd_gettime
},
1221 #ifdef CB_SYS_signalfd4
1222 # define TARGET_LINUX_SYS_signalfd4 360
1223 { "signalfd4", CB_SYS_signalfd4
, TARGET_LINUX_SYS_signalfd4
},
1225 #ifdef CB_SYS_eventfd2
1226 # define TARGET_LINUX_SYS_eventfd2 361
1227 { "eventfd2", CB_SYS_eventfd2
, TARGET_LINUX_SYS_eventfd2
},
1229 #ifdef CB_SYS_epoll_create1
1230 # define TARGET_LINUX_SYS_epoll_create1 362
1231 { "epoll_create1", CB_SYS_epoll_create1
, TARGET_LINUX_SYS_epoll_create1
},
1234 # define TARGET_LINUX_SYS_dup3 363
1235 { "dup3", CB_SYS_dup3
, TARGET_LINUX_SYS_dup3
},
1238 # define TARGET_LINUX_SYS_pipe2 364
1239 { "pipe2", CB_SYS_pipe2
, TARGET_LINUX_SYS_pipe2
},
1241 #ifdef CB_SYS_inotify_init1
1242 # define TARGET_LINUX_SYS_inotify_init1 365
1243 { "inotify_init1", CB_SYS_inotify_init1
, TARGET_LINUX_SYS_inotify_init1
},
1245 #ifdef CB_SYS_preadv
1246 # define TARGET_LINUX_SYS_preadv 366
1247 { "preadv", CB_SYS_preadv
, TARGET_LINUX_SYS_preadv
},
1249 #ifdef CB_SYS_pwritev
1250 # define TARGET_LINUX_SYS_pwritev 367
1251 { "pwritev", CB_SYS_pwritev
, TARGET_LINUX_SYS_pwritev
},
1253 #ifdef CB_SYS_rt_tgsigqueueinfo
1254 # define TARGET_LINUX_SYS_rt_tgsigqueueinfo 368
1255 { "rt_tgsigqueueinfo", CB_SYS_rt_tgsigqueueinfo
, TARGET_LINUX_SYS_rt_tgsigqueueinfo
},
1257 #ifdef CB_SYS_perf_event_open
1258 # define TARGET_LINUX_SYS_perf_event_open 369
1259 { "perf_event_open", CB_SYS_perf_event_open
, TARGET_LINUX_SYS_perf_event_open
},
1261 #ifdef CB_SYS_recvmmsg
1262 # define TARGET_LINUX_SYS_recvmmsg 370
1263 { "recvmmsg", CB_SYS_recvmmsg
, TARGET_LINUX_SYS_recvmmsg
},
1265 #ifdef CB_SYS_fanotify_init
1266 # define TARGET_LINUX_SYS_fanotify_init 371
1267 { "fanotify_init", CB_SYS_fanotify_init
, TARGET_LINUX_SYS_fanotify_init
},
1269 #ifdef CB_SYS_fanotify_mark
1270 # define TARGET_LINUX_SYS_fanotify_mark 372
1271 { "fanotify_mark", CB_SYS_fanotify_mark
, TARGET_LINUX_SYS_fanotify_mark
},
1273 #ifdef CB_SYS_prlimit64
1274 # define TARGET_LINUX_SYS_prlimit64 373
1275 { "prlimit64", CB_SYS_prlimit64
, TARGET_LINUX_SYS_prlimit64
},
1277 #ifdef CB_SYS_cacheflush
1278 # define TARGET_LINUX_SYS_cacheflush 374
1279 { "cacheflush", CB_SYS_cacheflush
, TARGET_LINUX_SYS_cacheflush
},
1281 #ifdef CB_SYS_syscall
1282 # define TARGET_LINUX_SYS_syscall 375
1283 { "syscall", CB_SYS_syscall
, TARGET_LINUX_SYS_syscall
},
1288 static CB_TARGET_DEFS_MAP cb_linux_errno_map
[] =
1291 # define TARGET_LINUX_EPERM 1
1292 { "EPERM", EPERM
, TARGET_LINUX_EPERM
},
1295 # define TARGET_LINUX_ENOENT 2
1296 { "ENOENT", ENOENT
, TARGET_LINUX_ENOENT
},
1299 # define TARGET_LINUX_ESRCH 3
1300 { "ESRCH", ESRCH
, TARGET_LINUX_ESRCH
},
1303 # define TARGET_LINUX_EINTR 4
1304 { "EINTR", EINTR
, TARGET_LINUX_EINTR
},
1307 # define TARGET_LINUX_EIO 5
1308 { "EIO", EIO
, TARGET_LINUX_EIO
},
1311 # define TARGET_LINUX_ENXIO 6
1312 { "ENXIO", ENXIO
, TARGET_LINUX_ENXIO
},
1315 # define TARGET_LINUX_E2BIG 7
1316 { "E2BIG", E2BIG
, TARGET_LINUX_E2BIG
},
1319 # define TARGET_LINUX_ENOEXEC 8
1320 { "ENOEXEC", ENOEXEC
, TARGET_LINUX_ENOEXEC
},
1323 # define TARGET_LINUX_EBADF 9
1324 { "EBADF", EBADF
, TARGET_LINUX_EBADF
},
1327 # define TARGET_LINUX_ECHILD 10
1328 { "ECHILD", ECHILD
, TARGET_LINUX_ECHILD
},
1331 # define TARGET_LINUX_EAGAIN 11
1332 { "EAGAIN", EAGAIN
, TARGET_LINUX_EAGAIN
},
1335 # define TARGET_LINUX_ENOMEM 12
1336 { "ENOMEM", ENOMEM
, TARGET_LINUX_ENOMEM
},
1339 # define TARGET_LINUX_EACCES 13
1340 { "EACCES", EACCES
, TARGET_LINUX_EACCES
},
1343 # define TARGET_LINUX_EFAULT 14
1344 { "EFAULT", EFAULT
, TARGET_LINUX_EFAULT
},
1347 # define TARGET_LINUX_ENOTBLK 15
1348 { "ENOTBLK", ENOTBLK
, TARGET_LINUX_ENOTBLK
},
1351 # define TARGET_LINUX_EBUSY 16
1352 { "EBUSY", EBUSY
, TARGET_LINUX_EBUSY
},
1355 # define TARGET_LINUX_EEXIST 17
1356 { "EEXIST", EEXIST
, TARGET_LINUX_EEXIST
},
1359 # define TARGET_LINUX_EXDEV 18
1360 { "EXDEV", EXDEV
, TARGET_LINUX_EXDEV
},
1363 # define TARGET_LINUX_ENODEV 19
1364 { "ENODEV", ENODEV
, TARGET_LINUX_ENODEV
},
1367 # define TARGET_LINUX_ENOTDIR 20
1368 { "ENOTDIR", ENOTDIR
, TARGET_LINUX_ENOTDIR
},
1371 # define TARGET_LINUX_EISDIR 21
1372 { "EISDIR", EISDIR
, TARGET_LINUX_EISDIR
},
1375 # define TARGET_LINUX_EINVAL 22
1376 { "EINVAL", EINVAL
, TARGET_LINUX_EINVAL
},
1379 # define TARGET_LINUX_ENFILE 23
1380 { "ENFILE", ENFILE
, TARGET_LINUX_ENFILE
},
1383 # define TARGET_LINUX_EMFILE 24
1384 { "EMFILE", EMFILE
, TARGET_LINUX_EMFILE
},
1387 # define TARGET_LINUX_ENOTTY 25
1388 { "ENOTTY", ENOTTY
, TARGET_LINUX_ENOTTY
},
1391 # define TARGET_LINUX_ETXTBSY 26
1392 { "ETXTBSY", ETXTBSY
, TARGET_LINUX_ETXTBSY
},
1395 # define TARGET_LINUX_EFBIG 27
1396 { "EFBIG", EFBIG
, TARGET_LINUX_EFBIG
},
1399 # define TARGET_LINUX_ENOSPC 28
1400 { "ENOSPC", ENOSPC
, TARGET_LINUX_ENOSPC
},
1403 # define TARGET_LINUX_ESPIPE 29
1404 { "ESPIPE", ESPIPE
, TARGET_LINUX_ESPIPE
},
1407 # define TARGET_LINUX_EROFS 30
1408 { "EROFS", EROFS
, TARGET_LINUX_EROFS
},
1411 # define TARGET_LINUX_EMLINK 31
1412 { "EMLINK", EMLINK
, TARGET_LINUX_EMLINK
},
1415 # define TARGET_LINUX_EPIPE 32
1416 { "EPIPE", EPIPE
, TARGET_LINUX_EPIPE
},
1419 # define TARGET_LINUX_EDOM 33
1420 { "EDOM", EDOM
, TARGET_LINUX_EDOM
},
1423 # define TARGET_LINUX_ERANGE 34
1424 { "ERANGE", ERANGE
, TARGET_LINUX_ERANGE
},
1427 # define TARGET_LINUX_EDEADLK 35
1428 { "EDEADLK", EDEADLK
, TARGET_LINUX_EDEADLK
},
1431 # define TARGET_LINUX_ENAMETOOLONG 36
1432 { "ENAMETOOLONG", ENAMETOOLONG
, TARGET_LINUX_ENAMETOOLONG
},
1435 # define TARGET_LINUX_ENOLCK 37
1436 { "ENOLCK", ENOLCK
, TARGET_LINUX_ENOLCK
},
1439 # define TARGET_LINUX_ENOSYS 38
1440 { "ENOSYS", ENOSYS
, TARGET_LINUX_ENOSYS
},
1443 # define TARGET_LINUX_ENOTEMPTY 39
1444 { "ENOTEMPTY", ENOTEMPTY
, TARGET_LINUX_ENOTEMPTY
},
1447 # define TARGET_LINUX_ELOOP 40
1448 { "ELOOP", ELOOP
, TARGET_LINUX_ELOOP
},
1451 # define TARGET_LINUX_ENOMSG 42
1452 { "ENOMSG", ENOMSG
, TARGET_LINUX_ENOMSG
},
1455 # define TARGET_LINUX_EIDRM 43
1456 { "EIDRM", EIDRM
, TARGET_LINUX_EIDRM
},
1459 # define TARGET_LINUX_ECHRNG 44
1460 { "ECHRNG", ECHRNG
, TARGET_LINUX_ECHRNG
},
1463 # define TARGET_LINUX_EL2NSYNC 45
1464 { "EL2NSYNC", EL2NSYNC
, TARGET_LINUX_EL2NSYNC
},
1467 # define TARGET_LINUX_EL3HLT 46
1468 { "EL3HLT", EL3HLT
, TARGET_LINUX_EL3HLT
},
1471 # define TARGET_LINUX_EL3RST 47
1472 { "EL3RST", EL3RST
, TARGET_LINUX_EL3RST
},
1475 # define TARGET_LINUX_ELNRNG 48
1476 { "ELNRNG", ELNRNG
, TARGET_LINUX_ELNRNG
},
1479 # define TARGET_LINUX_EUNATCH 49
1480 { "EUNATCH", EUNATCH
, TARGET_LINUX_EUNATCH
},
1483 # define TARGET_LINUX_ENOCSI 50
1484 { "ENOCSI", ENOCSI
, TARGET_LINUX_ENOCSI
},
1487 # define TARGET_LINUX_EL2HLT 51
1488 { "EL2HLT", EL2HLT
, TARGET_LINUX_EL2HLT
},
1491 # define TARGET_LINUX_EBADE 52
1492 { "EBADE", EBADE
, TARGET_LINUX_EBADE
},
1495 # define TARGET_LINUX_EBADR 53
1496 { "EBADR", EBADR
, TARGET_LINUX_EBADR
},
1499 # define TARGET_LINUX_EXFULL 54
1500 { "EXFULL", EXFULL
, TARGET_LINUX_EXFULL
},
1503 # define TARGET_LINUX_ENOANO 55
1504 { "ENOANO", ENOANO
, TARGET_LINUX_ENOANO
},
1507 # define TARGET_LINUX_EBADRQC 56
1508 { "EBADRQC", EBADRQC
, TARGET_LINUX_EBADRQC
},
1511 # define TARGET_LINUX_EBADSLT 57
1512 { "EBADSLT", EBADSLT
, TARGET_LINUX_EBADSLT
},
1515 # define TARGET_LINUX_EBFONT 59
1516 { "EBFONT", EBFONT
, TARGET_LINUX_EBFONT
},
1519 # define TARGET_LINUX_ENOSTR 60
1520 { "ENOSTR", ENOSTR
, TARGET_LINUX_ENOSTR
},
1523 # define TARGET_LINUX_ENODATA 61
1524 { "ENODATA", ENODATA
, TARGET_LINUX_ENODATA
},
1527 # define TARGET_LINUX_ETIME 62
1528 { "ETIME", ETIME
, TARGET_LINUX_ETIME
},
1531 # define TARGET_LINUX_ENOSR 63
1532 { "ENOSR", ENOSR
, TARGET_LINUX_ENOSR
},
1535 # define TARGET_LINUX_ENONET 64
1536 { "ENONET", ENONET
, TARGET_LINUX_ENONET
},
1539 # define TARGET_LINUX_ENOPKG 65
1540 { "ENOPKG", ENOPKG
, TARGET_LINUX_ENOPKG
},
1543 # define TARGET_LINUX_EREMOTE 66
1544 { "EREMOTE", EREMOTE
, TARGET_LINUX_EREMOTE
},
1547 # define TARGET_LINUX_ENOLINK 67
1548 { "ENOLINK", ENOLINK
, TARGET_LINUX_ENOLINK
},
1551 # define TARGET_LINUX_EADV 68
1552 { "EADV", EADV
, TARGET_LINUX_EADV
},
1555 # define TARGET_LINUX_ESRMNT 69
1556 { "ESRMNT", ESRMNT
, TARGET_LINUX_ESRMNT
},
1559 # define TARGET_LINUX_ECOMM 70
1560 { "ECOMM", ECOMM
, TARGET_LINUX_ECOMM
},
1563 # define TARGET_LINUX_EPROTO 71
1564 { "EPROTO", EPROTO
, TARGET_LINUX_EPROTO
},
1567 # define TARGET_LINUX_EMULTIHOP 72
1568 { "EMULTIHOP", EMULTIHOP
, TARGET_LINUX_EMULTIHOP
},
1571 # define TARGET_LINUX_EDOTDOT 73
1572 { "EDOTDOT", EDOTDOT
, TARGET_LINUX_EDOTDOT
},
1575 # define TARGET_LINUX_EBADMSG 74
1576 { "EBADMSG", EBADMSG
, TARGET_LINUX_EBADMSG
},
1579 # define TARGET_LINUX_EOVERFLOW 75
1580 { "EOVERFLOW", EOVERFLOW
, TARGET_LINUX_EOVERFLOW
},
1583 # define TARGET_LINUX_ENOTUNIQ 76
1584 { "ENOTUNIQ", ENOTUNIQ
, TARGET_LINUX_ENOTUNIQ
},
1587 # define TARGET_LINUX_EBADFD 77
1588 { "EBADFD", EBADFD
, TARGET_LINUX_EBADFD
},
1591 # define TARGET_LINUX_EREMCHG 78
1592 { "EREMCHG", EREMCHG
, TARGET_LINUX_EREMCHG
},
1595 # define TARGET_LINUX_ELIBACC 79
1596 { "ELIBACC", ELIBACC
, TARGET_LINUX_ELIBACC
},
1599 # define TARGET_LINUX_ELIBBAD 80
1600 { "ELIBBAD", ELIBBAD
, TARGET_LINUX_ELIBBAD
},
1603 # define TARGET_LINUX_ELIBSCN 81
1604 { "ELIBSCN", ELIBSCN
, TARGET_LINUX_ELIBSCN
},
1607 # define TARGET_LINUX_ELIBMAX 82
1608 { "ELIBMAX", ELIBMAX
, TARGET_LINUX_ELIBMAX
},
1611 # define TARGET_LINUX_ELIBEXEC 83
1612 { "ELIBEXEC", ELIBEXEC
, TARGET_LINUX_ELIBEXEC
},
1615 # define TARGET_LINUX_EILSEQ 84
1616 { "EILSEQ", EILSEQ
, TARGET_LINUX_EILSEQ
},
1619 # define TARGET_LINUX_ERESTART 85
1620 { "ERESTART", ERESTART
, TARGET_LINUX_ERESTART
},
1623 # define TARGET_LINUX_ESTRPIPE 86
1624 { "ESTRPIPE", ESTRPIPE
, TARGET_LINUX_ESTRPIPE
},
1627 # define TARGET_LINUX_EUSERS 87
1628 { "EUSERS", EUSERS
, TARGET_LINUX_EUSERS
},
1631 # define TARGET_LINUX_ENOTSOCK 88
1632 { "ENOTSOCK", ENOTSOCK
, TARGET_LINUX_ENOTSOCK
},
1635 # define TARGET_LINUX_EDESTADDRREQ 89
1636 { "EDESTADDRREQ", EDESTADDRREQ
, TARGET_LINUX_EDESTADDRREQ
},
1639 # define TARGET_LINUX_EMSGSIZE 90
1640 { "EMSGSIZE", EMSGSIZE
, TARGET_LINUX_EMSGSIZE
},
1643 # define TARGET_LINUX_EPROTOTYPE 91
1644 { "EPROTOTYPE", EPROTOTYPE
, TARGET_LINUX_EPROTOTYPE
},
1647 # define TARGET_LINUX_ENOPROTOOPT 92
1648 { "ENOPROTOOPT", ENOPROTOOPT
, TARGET_LINUX_ENOPROTOOPT
},
1650 #ifdef EPROTONOSUPPORT
1651 # define TARGET_LINUX_EPROTONOSUPPORT 93
1652 { "EPROTONOSUPPORT", EPROTONOSUPPORT
, TARGET_LINUX_EPROTONOSUPPORT
},
1654 #ifdef ESOCKTNOSUPPORT
1655 # define TARGET_LINUX_ESOCKTNOSUPPORT 94
1656 { "ESOCKTNOSUPPORT", ESOCKTNOSUPPORT
, TARGET_LINUX_ESOCKTNOSUPPORT
},
1659 # define TARGET_LINUX_EOPNOTSUPP 95
1660 { "EOPNOTSUPP", EOPNOTSUPP
, TARGET_LINUX_EOPNOTSUPP
},
1663 # define TARGET_LINUX_EPFNOSUPPORT 96
1664 { "EPFNOSUPPORT", EPFNOSUPPORT
, TARGET_LINUX_EPFNOSUPPORT
},
1667 # define TARGET_LINUX_EAFNOSUPPORT 97
1668 { "EAFNOSUPPORT", EAFNOSUPPORT
, TARGET_LINUX_EAFNOSUPPORT
},
1671 # define TARGET_LINUX_EADDRINUSE 98
1672 { "EADDRINUSE", EADDRINUSE
, TARGET_LINUX_EADDRINUSE
},
1674 #ifdef EADDRNOTAVAIL
1675 # define TARGET_LINUX_EADDRNOTAVAIL 99
1676 { "EADDRNOTAVAIL", EADDRNOTAVAIL
, TARGET_LINUX_EADDRNOTAVAIL
},
1679 # define TARGET_LINUX_ENETDOWN 100
1680 { "ENETDOWN", ENETDOWN
, TARGET_LINUX_ENETDOWN
},
1683 # define TARGET_LINUX_ENETUNREACH 101
1684 { "ENETUNREACH", ENETUNREACH
, TARGET_LINUX_ENETUNREACH
},
1687 # define TARGET_LINUX_ENETRESET 102
1688 { "ENETRESET", ENETRESET
, TARGET_LINUX_ENETRESET
},
1691 # define TARGET_LINUX_ECONNABORTED 103
1692 { "ECONNABORTED", ECONNABORTED
, TARGET_LINUX_ECONNABORTED
},
1695 # define TARGET_LINUX_ECONNRESET 104
1696 { "ECONNRESET", ECONNRESET
, TARGET_LINUX_ECONNRESET
},
1699 # define TARGET_LINUX_ENOBUFS 105
1700 { "ENOBUFS", ENOBUFS
, TARGET_LINUX_ENOBUFS
},
1703 # define TARGET_LINUX_EISCONN 106
1704 { "EISCONN", EISCONN
, TARGET_LINUX_EISCONN
},
1707 # define TARGET_LINUX_ENOTCONN 107
1708 { "ENOTCONN", ENOTCONN
, TARGET_LINUX_ENOTCONN
},
1711 # define TARGET_LINUX_ESHUTDOWN 108
1712 { "ESHUTDOWN", ESHUTDOWN
, TARGET_LINUX_ESHUTDOWN
},
1715 # define TARGET_LINUX_ETOOMANYREFS 109
1716 { "ETOOMANYREFS", ETOOMANYREFS
, TARGET_LINUX_ETOOMANYREFS
},
1719 # define TARGET_LINUX_ETIMEDOUT 110
1720 { "ETIMEDOUT", ETIMEDOUT
, TARGET_LINUX_ETIMEDOUT
},
1723 # define TARGET_LINUX_ECONNREFUSED 111
1724 { "ECONNREFUSED", ECONNREFUSED
, TARGET_LINUX_ECONNREFUSED
},
1727 # define TARGET_LINUX_EHOSTDOWN 112
1728 { "EHOSTDOWN", EHOSTDOWN
, TARGET_LINUX_EHOSTDOWN
},
1731 # define TARGET_LINUX_EHOSTUNREACH 113
1732 { "EHOSTUNREACH", EHOSTUNREACH
, TARGET_LINUX_EHOSTUNREACH
},
1735 # define TARGET_LINUX_EALREADY 114
1736 { "EALREADY", EALREADY
, TARGET_LINUX_EALREADY
},
1739 # define TARGET_LINUX_EINPROGRESS 115
1740 { "EINPROGRESS", EINPROGRESS
, TARGET_LINUX_EINPROGRESS
},
1743 # define TARGET_LINUX_ESTALE 116
1744 { "ESTALE", ESTALE
, TARGET_LINUX_ESTALE
},
1747 # define TARGET_LINUX_EUCLEAN 117
1748 { "EUCLEAN", EUCLEAN
, TARGET_LINUX_EUCLEAN
},
1751 # define TARGET_LINUX_ENOTNAM 118
1752 { "ENOTNAM", ENOTNAM
, TARGET_LINUX_ENOTNAM
},
1755 # define TARGET_LINUX_ENAVAIL 119
1756 { "ENAVAIL", ENAVAIL
, TARGET_LINUX_ENAVAIL
},
1759 # define TARGET_LINUX_EISNAM 120
1760 { "EISNAM", EISNAM
, TARGET_LINUX_EISNAM
},
1763 # define TARGET_LINUX_EREMOTEIO 121
1764 { "EREMOTEIO", EREMOTEIO
, TARGET_LINUX_EREMOTEIO
},
1767 # define TARGET_LINUX_EDQUOT 122
1768 { "EDQUOT", EDQUOT
, TARGET_LINUX_EDQUOT
},
1771 # define TARGET_LINUX_ENOMEDIUM 123
1772 { "ENOMEDIUM", ENOMEDIUM
, TARGET_LINUX_ENOMEDIUM
},
1775 # define TARGET_LINUX_EMEDIUMTYPE 124
1776 { "EMEDIUMTYPE", EMEDIUMTYPE
, TARGET_LINUX_EMEDIUMTYPE
},
1779 # define TARGET_LINUX_ECANCELED 125
1780 { "ECANCELED", ECANCELED
, TARGET_LINUX_ECANCELED
},
1783 # define TARGET_LINUX_EOWNERDEAD 130
1784 { "EOWNERDEAD", EOWNERDEAD
, TARGET_LINUX_EOWNERDEAD
},
1786 #ifdef ENOTRECOVERABLE
1787 # define TARGET_LINUX_ENOTRECOVERABLE 131
1788 { "ENOTRECOVERABLE", ENOTRECOVERABLE
, TARGET_LINUX_ENOTRECOVERABLE
},
1793 static CB_TARGET_DEFS_MAP cb_linux_open_map
[] =
1796 # define TARGET_LINUX_O_ACCMODE 0003
1797 { "O_ACCMODE", O_ACCMODE
, TARGET_LINUX_O_ACCMODE
},
1800 # define TARGET_LINUX_O_RDONLY 00
1801 { "O_RDONLY", O_RDONLY
, TARGET_LINUX_O_RDONLY
},
1804 # define TARGET_LINUX_O_WRONLY 01
1805 { "O_WRONLY", O_WRONLY
, TARGET_LINUX_O_WRONLY
},
1808 # define TARGET_LINUX_O_RDWR 02
1809 { "O_RDWR", O_RDWR
, TARGET_LINUX_O_RDWR
},
1812 # define TARGET_LINUX_O_CREAT 0100
1813 { "O_CREAT", O_CREAT
, TARGET_LINUX_O_CREAT
},
1816 # define TARGET_LINUX_O_EXCL 0200
1817 { "O_EXCL", O_EXCL
, TARGET_LINUX_O_EXCL
},
1820 # define TARGET_LINUX_O_NOCTTY 0400
1821 { "O_NOCTTY", O_NOCTTY
, TARGET_LINUX_O_NOCTTY
},
1824 # define TARGET_LINUX_O_TRUNC 01000
1825 { "O_TRUNC", O_TRUNC
, TARGET_LINUX_O_TRUNC
},
1828 # define TARGET_LINUX_O_APPEND 02000
1829 { "O_APPEND", O_APPEND
, TARGET_LINUX_O_APPEND
},
1832 # define TARGET_LINUX_O_NONBLOCK 04000
1833 { "O_NONBLOCK", O_NONBLOCK
, TARGET_LINUX_O_NONBLOCK
},
1836 # define TARGET_LINUX_O_SYNC 010000
1837 { "O_SYNC", O_SYNC
, TARGET_LINUX_O_SYNC
},
1840 # define TARGET_LINUX_O_ASYNC 020000
1841 { "O_ASYNC", O_ASYNC
, TARGET_LINUX_O_ASYNC
},
1846 static CB_TARGET_DEFS_MAP cb_linux_signal_map
[] =
1849 # define TARGET_LINUX_SIGHUP 1
1850 { "SIGHUP", SIGHUP
, TARGET_LINUX_SIGHUP
},
1853 # define TARGET_LINUX_SIGINT 2
1854 { "SIGINT", SIGINT
, TARGET_LINUX_SIGINT
},
1857 # define TARGET_LINUX_SIGQUIT 3
1858 { "SIGQUIT", SIGQUIT
, TARGET_LINUX_SIGQUIT
},
1861 # define TARGET_LINUX_SIGILL 4
1862 { "SIGILL", SIGILL
, TARGET_LINUX_SIGILL
},
1865 # define TARGET_LINUX_SIGTRAP 5
1866 { "SIGTRAP", SIGTRAP
, TARGET_LINUX_SIGTRAP
},
1869 # define TARGET_LINUX_SIGABRT 6
1870 { "SIGABRT", SIGABRT
, TARGET_LINUX_SIGABRT
},
1873 # define TARGET_LINUX_SIGIOT 6
1874 { "SIGIOT", SIGIOT
, TARGET_LINUX_SIGIOT
},
1877 # define TARGET_LINUX_SIGBUS 7
1878 { "SIGBUS", SIGBUS
, TARGET_LINUX_SIGBUS
},
1881 # define TARGET_LINUX_SIGFPE 8
1882 { "SIGFPE", SIGFPE
, TARGET_LINUX_SIGFPE
},
1885 # define TARGET_LINUX_SIGKILL 9
1886 { "SIGKILL", SIGKILL
, TARGET_LINUX_SIGKILL
},
1889 # define TARGET_LINUX_SIGUSR1 10
1890 { "SIGUSR1", SIGUSR1
, TARGET_LINUX_SIGUSR1
},
1893 # define TARGET_LINUX_SIGSEGV 11
1894 { "SIGSEGV", SIGSEGV
, TARGET_LINUX_SIGSEGV
},
1897 # define TARGET_LINUX_SIGUSR2 12
1898 { "SIGUSR2", SIGUSR2
, TARGET_LINUX_SIGUSR2
},
1901 # define TARGET_LINUX_SIGPIPE 13
1902 { "SIGPIPE", SIGPIPE
, TARGET_LINUX_SIGPIPE
},
1905 # define TARGET_LINUX_SIGALRM 14
1906 { "SIGALRM", SIGALRM
, TARGET_LINUX_SIGALRM
},
1909 # define TARGET_LINUX_SIGTERM 15
1910 { "SIGTERM", SIGTERM
, TARGET_LINUX_SIGTERM
},
1913 # define TARGET_LINUX_SIGSTKFLT 16
1914 { "SIGSTKFLT", SIGSTKFLT
, TARGET_LINUX_SIGSTKFLT
},
1917 # define TARGET_LINUX_SIGCHLD 17
1918 { "SIGCHLD", SIGCHLD
, TARGET_LINUX_SIGCHLD
},
1921 # define TARGET_LINUX_SIGCONT 18
1922 { "SIGCONT", SIGCONT
, TARGET_LINUX_SIGCONT
},
1925 # define TARGET_LINUX_SIGSTOP 19
1926 { "SIGSTOP", SIGSTOP
, TARGET_LINUX_SIGSTOP
},
1929 # define TARGET_LINUX_SIGTSTP 20
1930 { "SIGTSTP", SIGTSTP
, TARGET_LINUX_SIGTSTP
},
1933 # define TARGET_LINUX_SIGTTIN 21
1934 { "SIGTTIN", SIGTTIN
, TARGET_LINUX_SIGTTIN
},
1937 # define TARGET_LINUX_SIGTTOU 22
1938 { "SIGTTOU", SIGTTOU
, TARGET_LINUX_SIGTTOU
},
1941 # define TARGET_LINUX_SIGURG 23
1942 { "SIGURG", SIGURG
, TARGET_LINUX_SIGURG
},
1945 # define TARGET_LINUX_SIGXCPU 24
1946 { "SIGXCPU", SIGXCPU
, TARGET_LINUX_SIGXCPU
},
1949 # define TARGET_LINUX_SIGXFSZ 25
1950 { "SIGXFSZ", SIGXFSZ
, TARGET_LINUX_SIGXFSZ
},
1953 # define TARGET_LINUX_SIGVTALRM 26
1954 { "SIGVTALRM", SIGVTALRM
, TARGET_LINUX_SIGVTALRM
},
1957 # define TARGET_LINUX_SIGPROF 27
1958 { "SIGPROF", SIGPROF
, TARGET_LINUX_SIGPROF
},
1961 # define TARGET_LINUX_SIGWINCH 28
1962 { "SIGWINCH", SIGWINCH
, TARGET_LINUX_SIGWINCH
},
1965 # define TARGET_LINUX_SIGIO 29
1966 { "SIGIO", SIGIO
, TARGET_LINUX_SIGIO
},
1969 # define TARGET_LINUX_SIGPWR 30
1970 { "SIGPWR", SIGPWR
, TARGET_LINUX_SIGPWR
},
1973 # define TARGET_LINUX_SIGSYS 31
1974 { "SIGSYS", SIGSYS
, TARGET_LINUX_SIGSYS
},
1977 # define TARGET_LINUX_SIGUNUSED 31
1978 { "SIGUNUSED", SIGUNUSED
, TARGET_LINUX_SIGUNUSED
},
1981 # define TARGET_LINUX_SIG_BLOCK 0
1982 { "SIG_BLOCK", SIG_BLOCK
, TARGET_LINUX_SIG_BLOCK
},
1985 # define TARGET_LINUX_SIG_UNBLOCK 1
1986 { "SIG_UNBLOCK", SIG_UNBLOCK
, TARGET_LINUX_SIG_UNBLOCK
},
1989 # define TARGET_LINUX_SIG_SETMASK 2
1990 { "SIG_SETMASK", SIG_SETMASK
, TARGET_LINUX_SIG_SETMASK
},