[binutils, ARM, 5/16] BF insns infrastructure with new global reloc R_ARM_THM_BF16
[binutils-gdb.git] / sim / bfin / linux-targ-map.h
blobe9c8c8f273b5cccd9a0ebf2d56c60123a0add5d2
1 #if 0 /* Auto generated: sh ./targ-linux.h
3 sed -n '1,/^#endif/p' targ-linux.h
4 echo
6 echo '#include <sys/syscall.h>' | \
7 bfin-uclinux-gcc -E -dD -P - | \
8 sed -r -n \
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;}'
12 echo
14 echo '#include <errno.h>' | \
15 bfin-uclinux-gcc -E -dD -P - | \
16 sed -r -n \
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;}'
20 echo
22 echo '#include <fcntl.h>' | \
23 bfin-uclinux-gcc -E -dD -P - | \
24 sed -r -n \
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;}'
28 echo
30 # XXX: nothing uses this ?
31 echo '#include <signal.h>' | \
32 bfin-uclinux-gcc -E -dD -P - | \
33 sed -r -n \
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;}'
38 exit 0
40 #endif
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 },
47 #endif
48 #ifdef CB_SYS_exit
49 # define TARGET_LINUX_SYS_exit 1
50 { "exit", CB_SYS_exit, TARGET_LINUX_SYS_exit },
51 #endif
52 #ifdef CB_SYS_fork
53 # define TARGET_LINUX_SYS_fork 2
54 { "fork", CB_SYS_fork, TARGET_LINUX_SYS_fork },
55 #endif
56 #ifdef CB_SYS_read
57 # define TARGET_LINUX_SYS_read 3
58 { "read", CB_SYS_read, TARGET_LINUX_SYS_read },
59 #endif
60 #ifdef CB_SYS_write
61 # define TARGET_LINUX_SYS_write 4
62 { "write", CB_SYS_write, TARGET_LINUX_SYS_write },
63 #endif
64 #ifdef CB_SYS_open
65 # define TARGET_LINUX_SYS_open 5
66 { "open", CB_SYS_open, TARGET_LINUX_SYS_open },
67 #endif
68 #ifdef CB_SYS_close
69 # define TARGET_LINUX_SYS_close 6
70 { "close", CB_SYS_close, TARGET_LINUX_SYS_close },
71 #endif
72 #ifdef CB_SYS_creat
73 # define TARGET_LINUX_SYS_creat 8
74 { "creat", CB_SYS_creat, TARGET_LINUX_SYS_creat },
75 #endif
76 #ifdef CB_SYS_link
77 # define TARGET_LINUX_SYS_link 9
78 { "link", CB_SYS_link, TARGET_LINUX_SYS_link },
79 #endif
80 #ifdef CB_SYS_unlink
81 # define TARGET_LINUX_SYS_unlink 10
82 { "unlink", CB_SYS_unlink, TARGET_LINUX_SYS_unlink },
83 #endif
84 #ifdef CB_SYS_execve
85 # define TARGET_LINUX_SYS_execve 11
86 { "execve", CB_SYS_execve, TARGET_LINUX_SYS_execve },
87 #endif
88 #ifdef CB_SYS_chdir
89 # define TARGET_LINUX_SYS_chdir 12
90 { "chdir", CB_SYS_chdir, TARGET_LINUX_SYS_chdir },
91 #endif
92 #ifdef CB_SYS_time
93 # define TARGET_LINUX_SYS_time 13
94 { "time", CB_SYS_time, TARGET_LINUX_SYS_time },
95 #endif
96 #ifdef CB_SYS_mknod
97 # define TARGET_LINUX_SYS_mknod 14
98 { "mknod", CB_SYS_mknod, TARGET_LINUX_SYS_mknod },
99 #endif
100 #ifdef CB_SYS_chmod
101 # define TARGET_LINUX_SYS_chmod 15
102 { "chmod", CB_SYS_chmod, TARGET_LINUX_SYS_chmod },
103 #endif
104 #ifdef CB_SYS_chown
105 # define TARGET_LINUX_SYS_chown 16
106 { "chown", CB_SYS_chown, TARGET_LINUX_SYS_chown },
107 #endif
108 #ifdef CB_SYS_lseek
109 # define TARGET_LINUX_SYS_lseek 19
110 { "lseek", CB_SYS_lseek, TARGET_LINUX_SYS_lseek },
111 #endif
112 #ifdef CB_SYS_getpid
113 # define TARGET_LINUX_SYS_getpid 20
114 { "getpid", CB_SYS_getpid, TARGET_LINUX_SYS_getpid },
115 #endif
116 #ifdef CB_SYS_mount
117 # define TARGET_LINUX_SYS_mount 21
118 { "mount", CB_SYS_mount, TARGET_LINUX_SYS_mount },
119 #endif
120 #ifdef CB_SYS_setuid
121 # define TARGET_LINUX_SYS_setuid 23
122 { "setuid", CB_SYS_setuid, TARGET_LINUX_SYS_setuid },
123 #endif
124 #ifdef CB_SYS_getuid
125 # define TARGET_LINUX_SYS_getuid 24
126 { "getuid", CB_SYS_getuid, TARGET_LINUX_SYS_getuid },
127 #endif
128 #ifdef CB_SYS_stime
129 # define TARGET_LINUX_SYS_stime 25
130 { "stime", CB_SYS_stime, TARGET_LINUX_SYS_stime },
131 #endif
132 #ifdef CB_SYS_ptrace
133 # define TARGET_LINUX_SYS_ptrace 26
134 { "ptrace", CB_SYS_ptrace, TARGET_LINUX_SYS_ptrace },
135 #endif
136 #ifdef CB_SYS_alarm
137 # define TARGET_LINUX_SYS_alarm 27
138 { "alarm", CB_SYS_alarm, TARGET_LINUX_SYS_alarm },
139 #endif
140 #ifdef CB_SYS_pause
141 # define TARGET_LINUX_SYS_pause 29
142 { "pause", CB_SYS_pause, TARGET_LINUX_SYS_pause },
143 #endif
144 #ifdef CB_SYS_access
145 # define TARGET_LINUX_SYS_access 33
146 { "access", CB_SYS_access, TARGET_LINUX_SYS_access },
147 #endif
148 #ifdef CB_SYS_nice
149 # define TARGET_LINUX_SYS_nice 34
150 { "nice", CB_SYS_nice, TARGET_LINUX_SYS_nice },
151 #endif
152 #ifdef CB_SYS_sync
153 # define TARGET_LINUX_SYS_sync 36
154 { "sync", CB_SYS_sync, TARGET_LINUX_SYS_sync },
155 #endif
156 #ifdef CB_SYS_kill
157 # define TARGET_LINUX_SYS_kill 37
158 { "kill", CB_SYS_kill, TARGET_LINUX_SYS_kill },
159 #endif
160 #ifdef CB_SYS_rename
161 # define TARGET_LINUX_SYS_rename 38
162 { "rename", CB_SYS_rename, TARGET_LINUX_SYS_rename },
163 #endif
164 #ifdef CB_SYS_mkdir
165 # define TARGET_LINUX_SYS_mkdir 39
166 { "mkdir", CB_SYS_mkdir, TARGET_LINUX_SYS_mkdir },
167 #endif
168 #ifdef CB_SYS_rmdir
169 # define TARGET_LINUX_SYS_rmdir 40
170 { "rmdir", CB_SYS_rmdir, TARGET_LINUX_SYS_rmdir },
171 #endif
172 #ifdef CB_SYS_dup
173 # define TARGET_LINUX_SYS_dup 41
174 { "dup", CB_SYS_dup, TARGET_LINUX_SYS_dup },
175 #endif
176 #ifdef CB_SYS_pipe
177 # define TARGET_LINUX_SYS_pipe 42
178 { "pipe", CB_SYS_pipe, TARGET_LINUX_SYS_pipe },
179 #endif
180 #ifdef CB_SYS_times
181 # define TARGET_LINUX_SYS_times 43
182 { "times", CB_SYS_times, TARGET_LINUX_SYS_times },
183 #endif
184 #ifdef CB_SYS_brk
185 # define TARGET_LINUX_SYS_brk 45
186 { "brk", CB_SYS_brk, TARGET_LINUX_SYS_brk },
187 #endif
188 #ifdef CB_SYS_setgid
189 # define TARGET_LINUX_SYS_setgid 46
190 { "setgid", CB_SYS_setgid, TARGET_LINUX_SYS_setgid },
191 #endif
192 #ifdef CB_SYS_getgid
193 # define TARGET_LINUX_SYS_getgid 47
194 { "getgid", CB_SYS_getgid, TARGET_LINUX_SYS_getgid },
195 #endif
196 #ifdef CB_SYS_geteuid
197 # define TARGET_LINUX_SYS_geteuid 49
198 { "geteuid", CB_SYS_geteuid, TARGET_LINUX_SYS_geteuid },
199 #endif
200 #ifdef CB_SYS_getegid
201 # define TARGET_LINUX_SYS_getegid 50
202 { "getegid", CB_SYS_getegid, TARGET_LINUX_SYS_getegid },
203 #endif
204 #ifdef CB_SYS_acct
205 # define TARGET_LINUX_SYS_acct 51
206 { "acct", CB_SYS_acct, TARGET_LINUX_SYS_acct },
207 #endif
208 #ifdef CB_SYS_umount2
209 # define TARGET_LINUX_SYS_umount2 52
210 { "umount2", CB_SYS_umount2, TARGET_LINUX_SYS_umount2 },
211 #endif
212 #ifdef CB_SYS_ioctl
213 # define TARGET_LINUX_SYS_ioctl 54
214 { "ioctl", CB_SYS_ioctl, TARGET_LINUX_SYS_ioctl },
215 #endif
216 #ifdef CB_SYS_fcntl
217 # define TARGET_LINUX_SYS_fcntl 55
218 { "fcntl", CB_SYS_fcntl, TARGET_LINUX_SYS_fcntl },
219 #endif
220 #ifdef CB_SYS_setpgid
221 # define TARGET_LINUX_SYS_setpgid 57
222 { "setpgid", CB_SYS_setpgid, TARGET_LINUX_SYS_setpgid },
223 #endif
224 #ifdef CB_SYS_umask
225 # define TARGET_LINUX_SYS_umask 60
226 { "umask", CB_SYS_umask, TARGET_LINUX_SYS_umask },
227 #endif
228 #ifdef CB_SYS_chroot
229 # define TARGET_LINUX_SYS_chroot 61
230 { "chroot", CB_SYS_chroot, TARGET_LINUX_SYS_chroot },
231 #endif
232 #ifdef CB_SYS_ustat
233 # define TARGET_LINUX_SYS_ustat 62
234 { "ustat", CB_SYS_ustat, TARGET_LINUX_SYS_ustat },
235 #endif
236 #ifdef CB_SYS_dup2
237 # define TARGET_LINUX_SYS_dup2 63
238 { "dup2", CB_SYS_dup2, TARGET_LINUX_SYS_dup2 },
239 #endif
240 #ifdef CB_SYS_getppid
241 # define TARGET_LINUX_SYS_getppid 64
242 { "getppid", CB_SYS_getppid, TARGET_LINUX_SYS_getppid },
243 #endif
244 #ifdef CB_SYS_getpgrp
245 # define TARGET_LINUX_SYS_getpgrp 65
246 { "getpgrp", CB_SYS_getpgrp, TARGET_LINUX_SYS_getpgrp },
247 #endif
248 #ifdef CB_SYS_setsid
249 # define TARGET_LINUX_SYS_setsid 66
250 { "setsid", CB_SYS_setsid, TARGET_LINUX_SYS_setsid },
251 #endif
252 #ifdef CB_SYS_sgetmask
253 # define TARGET_LINUX_SYS_sgetmask 68
254 { "sgetmask", CB_SYS_sgetmask, TARGET_LINUX_SYS_sgetmask },
255 #endif
256 #ifdef CB_SYS_ssetmask
257 # define TARGET_LINUX_SYS_ssetmask 69
258 { "ssetmask", CB_SYS_ssetmask, TARGET_LINUX_SYS_ssetmask },
259 #endif
260 #ifdef CB_SYS_setreuid
261 # define TARGET_LINUX_SYS_setreuid 70
262 { "setreuid", CB_SYS_setreuid, TARGET_LINUX_SYS_setreuid },
263 #endif
264 #ifdef CB_SYS_setregid
265 # define TARGET_LINUX_SYS_setregid 71
266 { "setregid", CB_SYS_setregid, TARGET_LINUX_SYS_setregid },
267 #endif
268 #ifdef CB_SYS_sethostname
269 # define TARGET_LINUX_SYS_sethostname 74
270 { "sethostname", CB_SYS_sethostname, TARGET_LINUX_SYS_sethostname },
271 #endif
272 #ifdef CB_SYS_setrlimit
273 # define TARGET_LINUX_SYS_setrlimit 75
274 { "setrlimit", CB_SYS_setrlimit, TARGET_LINUX_SYS_setrlimit },
275 #endif
276 #ifdef CB_SYS_getrusage
277 # define TARGET_LINUX_SYS_getrusage 77
278 { "getrusage", CB_SYS_getrusage, TARGET_LINUX_SYS_getrusage },
279 #endif
280 #ifdef CB_SYS_gettimeofday
281 # define TARGET_LINUX_SYS_gettimeofday 78
282 { "gettimeofday", CB_SYS_gettimeofday, TARGET_LINUX_SYS_gettimeofday },
283 #endif
284 #ifdef CB_SYS_settimeofday
285 # define TARGET_LINUX_SYS_settimeofday 79
286 { "settimeofday", CB_SYS_settimeofday, TARGET_LINUX_SYS_settimeofday },
287 #endif
288 #ifdef CB_SYS_getgroups
289 # define TARGET_LINUX_SYS_getgroups 80
290 { "getgroups", CB_SYS_getgroups, TARGET_LINUX_SYS_getgroups },
291 #endif
292 #ifdef CB_SYS_setgroups
293 # define TARGET_LINUX_SYS_setgroups 81
294 { "setgroups", CB_SYS_setgroups, TARGET_LINUX_SYS_setgroups },
295 #endif
296 #ifdef CB_SYS_symlink
297 # define TARGET_LINUX_SYS_symlink 83
298 { "symlink", CB_SYS_symlink, TARGET_LINUX_SYS_symlink },
299 #endif
300 #ifdef CB_SYS_readlink
301 # define TARGET_LINUX_SYS_readlink 85
302 { "readlink", CB_SYS_readlink, TARGET_LINUX_SYS_readlink },
303 #endif
304 #ifdef CB_SYS_reboot
305 # define TARGET_LINUX_SYS_reboot 88
306 { "reboot", CB_SYS_reboot, TARGET_LINUX_SYS_reboot },
307 #endif
308 #ifdef CB_SYS_munmap
309 # define TARGET_LINUX_SYS_munmap 91
310 { "munmap", CB_SYS_munmap, TARGET_LINUX_SYS_munmap },
311 #endif
312 #ifdef CB_SYS_truncate
313 # define TARGET_LINUX_SYS_truncate 92
314 { "truncate", CB_SYS_truncate, TARGET_LINUX_SYS_truncate },
315 #endif
316 #ifdef CB_SYS_ftruncate
317 # define TARGET_LINUX_SYS_ftruncate 93
318 { "ftruncate", CB_SYS_ftruncate, TARGET_LINUX_SYS_ftruncate },
319 #endif
320 #ifdef CB_SYS_fchmod
321 # define TARGET_LINUX_SYS_fchmod 94
322 { "fchmod", CB_SYS_fchmod, TARGET_LINUX_SYS_fchmod },
323 #endif
324 #ifdef CB_SYS_fchown
325 # define TARGET_LINUX_SYS_fchown 95
326 { "fchown", CB_SYS_fchown, TARGET_LINUX_SYS_fchown },
327 #endif
328 #ifdef CB_SYS_getpriority
329 # define TARGET_LINUX_SYS_getpriority 96
330 { "getpriority", CB_SYS_getpriority, TARGET_LINUX_SYS_getpriority },
331 #endif
332 #ifdef CB_SYS_setpriority
333 # define TARGET_LINUX_SYS_setpriority 97
334 { "setpriority", CB_SYS_setpriority, TARGET_LINUX_SYS_setpriority },
335 #endif
336 #ifdef CB_SYS_statfs
337 # define TARGET_LINUX_SYS_statfs 99
338 { "statfs", CB_SYS_statfs, TARGET_LINUX_SYS_statfs },
339 #endif
340 #ifdef CB_SYS_fstatfs
341 # define TARGET_LINUX_SYS_fstatfs 100
342 { "fstatfs", CB_SYS_fstatfs, TARGET_LINUX_SYS_fstatfs },
343 #endif
344 #ifdef CB_SYS_syslog
345 # define TARGET_LINUX_SYS_syslog 103
346 { "syslog", CB_SYS_syslog, TARGET_LINUX_SYS_syslog },
347 #endif
348 #ifdef CB_SYS_setitimer
349 # define TARGET_LINUX_SYS_setitimer 104
350 { "setitimer", CB_SYS_setitimer, TARGET_LINUX_SYS_setitimer },
351 #endif
352 #ifdef CB_SYS_getitimer
353 # define TARGET_LINUX_SYS_getitimer 105
354 { "getitimer", CB_SYS_getitimer, TARGET_LINUX_SYS_getitimer },
355 #endif
356 #ifdef CB_SYS_stat
357 # define TARGET_LINUX_SYS_stat 106
358 { "stat", CB_SYS_stat, TARGET_LINUX_SYS_stat },
359 #endif
360 #ifdef CB_SYS_lstat
361 # define TARGET_LINUX_SYS_lstat 107
362 { "lstat", CB_SYS_lstat, TARGET_LINUX_SYS_lstat },
363 #endif
364 #ifdef CB_SYS_fstat
365 # define TARGET_LINUX_SYS_fstat 108
366 { "fstat", CB_SYS_fstat, TARGET_LINUX_SYS_fstat },
367 #endif
368 #ifdef CB_SYS_vhangup
369 # define TARGET_LINUX_SYS_vhangup 111
370 { "vhangup", CB_SYS_vhangup, TARGET_LINUX_SYS_vhangup },
371 #endif
372 #ifdef CB_SYS_wait4
373 # define TARGET_LINUX_SYS_wait4 114
374 { "wait4", CB_SYS_wait4, TARGET_LINUX_SYS_wait4 },
375 #endif
376 #ifdef CB_SYS_sysinfo
377 # define TARGET_LINUX_SYS_sysinfo 116
378 { "sysinfo", CB_SYS_sysinfo, TARGET_LINUX_SYS_sysinfo },
379 #endif
380 #ifdef CB_SYS_fsync
381 # define TARGET_LINUX_SYS_fsync 118
382 { "fsync", CB_SYS_fsync, TARGET_LINUX_SYS_fsync },
383 #endif
384 #ifdef CB_SYS_clone
385 # define TARGET_LINUX_SYS_clone 120
386 { "clone", CB_SYS_clone, TARGET_LINUX_SYS_clone },
387 #endif
388 #ifdef CB_SYS_setdomainname
389 # define TARGET_LINUX_SYS_setdomainname 121
390 { "setdomainname", CB_SYS_setdomainname, TARGET_LINUX_SYS_setdomainname },
391 #endif
392 #ifdef CB_SYS_uname
393 # define TARGET_LINUX_SYS_uname 122
394 { "uname", CB_SYS_uname, TARGET_LINUX_SYS_uname },
395 #endif
396 #ifdef CB_SYS_adjtimex
397 # define TARGET_LINUX_SYS_adjtimex 124
398 { "adjtimex", CB_SYS_adjtimex, TARGET_LINUX_SYS_adjtimex },
399 #endif
400 #ifdef CB_SYS_mprotect
401 # define TARGET_LINUX_SYS_mprotect 125
402 { "mprotect", CB_SYS_mprotect, TARGET_LINUX_SYS_mprotect },
403 #endif
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 },
407 #endif
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 },
411 #endif
412 #ifdef CB_SYS_quotactl
413 # define TARGET_LINUX_SYS_quotactl 131
414 { "quotactl", CB_SYS_quotactl, TARGET_LINUX_SYS_quotactl },
415 #endif
416 #ifdef CB_SYS_getpgid
417 # define TARGET_LINUX_SYS_getpgid 132
418 { "getpgid", CB_SYS_getpgid, TARGET_LINUX_SYS_getpgid },
419 #endif
420 #ifdef CB_SYS_fchdir
421 # define TARGET_LINUX_SYS_fchdir 133
422 { "fchdir", CB_SYS_fchdir, TARGET_LINUX_SYS_fchdir },
423 #endif
424 #ifdef CB_SYS_bdflush
425 # define TARGET_LINUX_SYS_bdflush 134
426 { "bdflush", CB_SYS_bdflush, TARGET_LINUX_SYS_bdflush },
427 #endif
428 #ifdef CB_SYS_personality
429 # define TARGET_LINUX_SYS_personality 136
430 { "personality", CB_SYS_personality, TARGET_LINUX_SYS_personality },
431 #endif
432 #ifdef CB_SYS_setfsuid
433 # define TARGET_LINUX_SYS_setfsuid 138
434 { "setfsuid", CB_SYS_setfsuid, TARGET_LINUX_SYS_setfsuid },
435 #endif
436 #ifdef CB_SYS_setfsgid
437 # define TARGET_LINUX_SYS_setfsgid 139
438 { "setfsgid", CB_SYS_setfsgid, TARGET_LINUX_SYS_setfsgid },
439 #endif
440 #ifdef CB_SYS__llseek
441 # define TARGET_LINUX_SYS__llseek 140
442 { "_llseek", CB_SYS__llseek, TARGET_LINUX_SYS__llseek },
443 #endif
444 #ifdef CB_SYS_getdents
445 # define TARGET_LINUX_SYS_getdents 141
446 { "getdents", CB_SYS_getdents, TARGET_LINUX_SYS_getdents },
447 #endif
448 #ifdef CB_SYS_flock
449 # define TARGET_LINUX_SYS_flock 143
450 { "flock", CB_SYS_flock, TARGET_LINUX_SYS_flock },
451 #endif
452 #ifdef CB_SYS_readv
453 # define TARGET_LINUX_SYS_readv 145
454 { "readv", CB_SYS_readv, TARGET_LINUX_SYS_readv },
455 #endif
456 #ifdef CB_SYS_writev
457 # define TARGET_LINUX_SYS_writev 146
458 { "writev", CB_SYS_writev, TARGET_LINUX_SYS_writev },
459 #endif
460 #ifdef CB_SYS_getsid
461 # define TARGET_LINUX_SYS_getsid 147
462 { "getsid", CB_SYS_getsid, TARGET_LINUX_SYS_getsid },
463 #endif
464 #ifdef CB_SYS_fdatasync
465 # define TARGET_LINUX_SYS_fdatasync 148
466 { "fdatasync", CB_SYS_fdatasync, TARGET_LINUX_SYS_fdatasync },
467 #endif
468 #ifdef CB_SYS__sysctl
469 # define TARGET_LINUX_SYS__sysctl 149
470 { "_sysctl", CB_SYS__sysctl, TARGET_LINUX_SYS__sysctl },
471 #endif
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 },
475 #endif
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 },
479 #endif
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 },
483 #endif
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 },
487 #endif
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 },
491 #endif
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 },
495 #endif
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 },
499 #endif
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 },
503 #endif
504 #ifdef CB_SYS_nanosleep
505 # define TARGET_LINUX_SYS_nanosleep 162
506 { "nanosleep", CB_SYS_nanosleep, TARGET_LINUX_SYS_nanosleep },
507 #endif
508 #ifdef CB_SYS_mremap
509 # define TARGET_LINUX_SYS_mremap 163
510 { "mremap", CB_SYS_mremap, TARGET_LINUX_SYS_mremap },
511 #endif
512 #ifdef CB_SYS_setresuid
513 # define TARGET_LINUX_SYS_setresuid 164
514 { "setresuid", CB_SYS_setresuid, TARGET_LINUX_SYS_setresuid },
515 #endif
516 #ifdef CB_SYS_getresuid
517 # define TARGET_LINUX_SYS_getresuid 165
518 { "getresuid", CB_SYS_getresuid, TARGET_LINUX_SYS_getresuid },
519 #endif
520 #ifdef CB_SYS_nfsservctl
521 # define TARGET_LINUX_SYS_nfsservctl 169
522 { "nfsservctl", CB_SYS_nfsservctl, TARGET_LINUX_SYS_nfsservctl },
523 #endif
524 #ifdef CB_SYS_setresgid
525 # define TARGET_LINUX_SYS_setresgid 170
526 { "setresgid", CB_SYS_setresgid, TARGET_LINUX_SYS_setresgid },
527 #endif
528 #ifdef CB_SYS_getresgid
529 # define TARGET_LINUX_SYS_getresgid 171
530 { "getresgid", CB_SYS_getresgid, TARGET_LINUX_SYS_getresgid },
531 #endif
532 #ifdef CB_SYS_prctl
533 # define TARGET_LINUX_SYS_prctl 172
534 { "prctl", CB_SYS_prctl, TARGET_LINUX_SYS_prctl },
535 #endif
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 },
539 #endif
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 },
543 #endif
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 },
547 #endif
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 },
551 #endif
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 },
555 #endif
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 },
559 #endif
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 },
563 #endif
564 #ifdef CB_SYS_pread
565 # define TARGET_LINUX_SYS_pread 180
566 { "pread", CB_SYS_pread, TARGET_LINUX_SYS_pread },
567 #endif
568 #ifdef CB_SYS_pwrite
569 # define TARGET_LINUX_SYS_pwrite 181
570 { "pwrite", CB_SYS_pwrite, TARGET_LINUX_SYS_pwrite },
571 #endif
572 #ifdef CB_SYS_lchown
573 # define TARGET_LINUX_SYS_lchown 182
574 { "lchown", CB_SYS_lchown, TARGET_LINUX_SYS_lchown },
575 #endif
576 #ifdef CB_SYS_getcwd
577 # define TARGET_LINUX_SYS_getcwd 183
578 { "getcwd", CB_SYS_getcwd, TARGET_LINUX_SYS_getcwd },
579 #endif
580 #ifdef CB_SYS_capget
581 # define TARGET_LINUX_SYS_capget 184
582 { "capget", CB_SYS_capget, TARGET_LINUX_SYS_capget },
583 #endif
584 #ifdef CB_SYS_capset
585 # define TARGET_LINUX_SYS_capset 185
586 { "capset", CB_SYS_capset, TARGET_LINUX_SYS_capset },
587 #endif
588 #ifdef CB_SYS_sigaltstack
589 # define TARGET_LINUX_SYS_sigaltstack 186
590 { "sigaltstack", CB_SYS_sigaltstack, TARGET_LINUX_SYS_sigaltstack },
591 #endif
592 #ifdef CB_SYS_sendfile
593 # define TARGET_LINUX_SYS_sendfile 187
594 { "sendfile", CB_SYS_sendfile, TARGET_LINUX_SYS_sendfile },
595 #endif
596 #ifdef CB_SYS_vfork
597 # define TARGET_LINUX_SYS_vfork 190
598 { "vfork", CB_SYS_vfork, TARGET_LINUX_SYS_vfork },
599 #endif
600 #ifdef CB_SYS_getrlimit
601 # define TARGET_LINUX_SYS_getrlimit 191
602 { "getrlimit", CB_SYS_getrlimit, TARGET_LINUX_SYS_getrlimit },
603 #endif
604 #ifdef CB_SYS_mmap2
605 # define TARGET_LINUX_SYS_mmap2 192
606 { "mmap2", CB_SYS_mmap2, TARGET_LINUX_SYS_mmap2 },
607 #endif
608 #ifdef CB_SYS_truncate64
609 # define TARGET_LINUX_SYS_truncate64 193
610 { "truncate64", CB_SYS_truncate64, TARGET_LINUX_SYS_truncate64 },
611 #endif
612 #ifdef CB_SYS_ftruncate64
613 # define TARGET_LINUX_SYS_ftruncate64 194
614 { "ftruncate64", CB_SYS_ftruncate64, TARGET_LINUX_SYS_ftruncate64 },
615 #endif
616 #ifdef CB_SYS_stat64
617 # define TARGET_LINUX_SYS_stat64 195
618 { "stat64", CB_SYS_stat64, TARGET_LINUX_SYS_stat64 },
619 #endif
620 #ifdef CB_SYS_lstat64
621 # define TARGET_LINUX_SYS_lstat64 196
622 { "lstat64", CB_SYS_lstat64, TARGET_LINUX_SYS_lstat64 },
623 #endif
624 #ifdef CB_SYS_fstat64
625 # define TARGET_LINUX_SYS_fstat64 197
626 { "fstat64", CB_SYS_fstat64, TARGET_LINUX_SYS_fstat64 },
627 #endif
628 #ifdef CB_SYS_chown32
629 # define TARGET_LINUX_SYS_chown32 198
630 { "chown32", CB_SYS_chown32, TARGET_LINUX_SYS_chown32 },
631 #endif
632 #ifdef CB_SYS_getuid32
633 # define TARGET_LINUX_SYS_getuid32 199
634 { "getuid32", CB_SYS_getuid32, TARGET_LINUX_SYS_getuid32 },
635 #endif
636 #ifdef CB_SYS_getgid32
637 # define TARGET_LINUX_SYS_getgid32 200
638 { "getgid32", CB_SYS_getgid32, TARGET_LINUX_SYS_getgid32 },
639 #endif
640 #ifdef CB_SYS_geteuid32
641 # define TARGET_LINUX_SYS_geteuid32 201
642 { "geteuid32", CB_SYS_geteuid32, TARGET_LINUX_SYS_geteuid32 },
643 #endif
644 #ifdef CB_SYS_getegid32
645 # define TARGET_LINUX_SYS_getegid32 202
646 { "getegid32", CB_SYS_getegid32, TARGET_LINUX_SYS_getegid32 },
647 #endif
648 #ifdef CB_SYS_setreuid32
649 # define TARGET_LINUX_SYS_setreuid32 203
650 { "setreuid32", CB_SYS_setreuid32, TARGET_LINUX_SYS_setreuid32 },
651 #endif
652 #ifdef CB_SYS_setregid32
653 # define TARGET_LINUX_SYS_setregid32 204
654 { "setregid32", CB_SYS_setregid32, TARGET_LINUX_SYS_setregid32 },
655 #endif
656 #ifdef CB_SYS_getgroups32
657 # define TARGET_LINUX_SYS_getgroups32 205
658 { "getgroups32", CB_SYS_getgroups32, TARGET_LINUX_SYS_getgroups32 },
659 #endif
660 #ifdef CB_SYS_setgroups32
661 # define TARGET_LINUX_SYS_setgroups32 206
662 { "setgroups32", CB_SYS_setgroups32, TARGET_LINUX_SYS_setgroups32 },
663 #endif
664 #ifdef CB_SYS_fchown32
665 # define TARGET_LINUX_SYS_fchown32 207
666 { "fchown32", CB_SYS_fchown32, TARGET_LINUX_SYS_fchown32 },
667 #endif
668 #ifdef CB_SYS_setresuid32
669 # define TARGET_LINUX_SYS_setresuid32 208
670 { "setresuid32", CB_SYS_setresuid32, TARGET_LINUX_SYS_setresuid32 },
671 #endif
672 #ifdef CB_SYS_getresuid32
673 # define TARGET_LINUX_SYS_getresuid32 209
674 { "getresuid32", CB_SYS_getresuid32, TARGET_LINUX_SYS_getresuid32 },
675 #endif
676 #ifdef CB_SYS_setresgid32
677 # define TARGET_LINUX_SYS_setresgid32 210
678 { "setresgid32", CB_SYS_setresgid32, TARGET_LINUX_SYS_setresgid32 },
679 #endif
680 #ifdef CB_SYS_getresgid32
681 # define TARGET_LINUX_SYS_getresgid32 211
682 { "getresgid32", CB_SYS_getresgid32, TARGET_LINUX_SYS_getresgid32 },
683 #endif
684 #ifdef CB_SYS_lchown32
685 # define TARGET_LINUX_SYS_lchown32 212
686 { "lchown32", CB_SYS_lchown32, TARGET_LINUX_SYS_lchown32 },
687 #endif
688 #ifdef CB_SYS_setuid32
689 # define TARGET_LINUX_SYS_setuid32 213
690 { "setuid32", CB_SYS_setuid32, TARGET_LINUX_SYS_setuid32 },
691 #endif
692 #ifdef CB_SYS_setgid32
693 # define TARGET_LINUX_SYS_setgid32 214
694 { "setgid32", CB_SYS_setgid32, TARGET_LINUX_SYS_setgid32 },
695 #endif
696 #ifdef CB_SYS_setfsuid32
697 # define TARGET_LINUX_SYS_setfsuid32 215
698 { "setfsuid32", CB_SYS_setfsuid32, TARGET_LINUX_SYS_setfsuid32 },
699 #endif
700 #ifdef CB_SYS_setfsgid32
701 # define TARGET_LINUX_SYS_setfsgid32 216
702 { "setfsgid32", CB_SYS_setfsgid32, TARGET_LINUX_SYS_setfsgid32 },
703 #endif
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 },
707 #endif
708 #ifdef CB_SYS_getdents64
709 # define TARGET_LINUX_SYS_getdents64 220
710 { "getdents64", CB_SYS_getdents64, TARGET_LINUX_SYS_getdents64 },
711 #endif
712 #ifdef CB_SYS_fcntl64
713 # define TARGET_LINUX_SYS_fcntl64 221
714 { "fcntl64", CB_SYS_fcntl64, TARGET_LINUX_SYS_fcntl64 },
715 #endif
716 #ifdef CB_SYS_gettid
717 # define TARGET_LINUX_SYS_gettid 224
718 { "gettid", CB_SYS_gettid, TARGET_LINUX_SYS_gettid },
719 #endif
720 #ifdef CB_SYS_readahead
721 # define TARGET_LINUX_SYS_readahead 225
722 { "readahead", CB_SYS_readahead, TARGET_LINUX_SYS_readahead },
723 #endif
724 #ifdef CB_SYS_setxattr
725 # define TARGET_LINUX_SYS_setxattr 226
726 { "setxattr", CB_SYS_setxattr, TARGET_LINUX_SYS_setxattr },
727 #endif
728 #ifdef CB_SYS_lsetxattr
729 # define TARGET_LINUX_SYS_lsetxattr 227
730 { "lsetxattr", CB_SYS_lsetxattr, TARGET_LINUX_SYS_lsetxattr },
731 #endif
732 #ifdef CB_SYS_fsetxattr
733 # define TARGET_LINUX_SYS_fsetxattr 228
734 { "fsetxattr", CB_SYS_fsetxattr, TARGET_LINUX_SYS_fsetxattr },
735 #endif
736 #ifdef CB_SYS_getxattr
737 # define TARGET_LINUX_SYS_getxattr 229
738 { "getxattr", CB_SYS_getxattr, TARGET_LINUX_SYS_getxattr },
739 #endif
740 #ifdef CB_SYS_lgetxattr
741 # define TARGET_LINUX_SYS_lgetxattr 230
742 { "lgetxattr", CB_SYS_lgetxattr, TARGET_LINUX_SYS_lgetxattr },
743 #endif
744 #ifdef CB_SYS_fgetxattr
745 # define TARGET_LINUX_SYS_fgetxattr 231
746 { "fgetxattr", CB_SYS_fgetxattr, TARGET_LINUX_SYS_fgetxattr },
747 #endif
748 #ifdef CB_SYS_listxattr
749 # define TARGET_LINUX_SYS_listxattr 232
750 { "listxattr", CB_SYS_listxattr, TARGET_LINUX_SYS_listxattr },
751 #endif
752 #ifdef CB_SYS_llistxattr
753 # define TARGET_LINUX_SYS_llistxattr 233
754 { "llistxattr", CB_SYS_llistxattr, TARGET_LINUX_SYS_llistxattr },
755 #endif
756 #ifdef CB_SYS_flistxattr
757 # define TARGET_LINUX_SYS_flistxattr 234
758 { "flistxattr", CB_SYS_flistxattr, TARGET_LINUX_SYS_flistxattr },
759 #endif
760 #ifdef CB_SYS_removexattr
761 # define TARGET_LINUX_SYS_removexattr 235
762 { "removexattr", CB_SYS_removexattr, TARGET_LINUX_SYS_removexattr },
763 #endif
764 #ifdef CB_SYS_lremovexattr
765 # define TARGET_LINUX_SYS_lremovexattr 236
766 { "lremovexattr", CB_SYS_lremovexattr, TARGET_LINUX_SYS_lremovexattr },
767 #endif
768 #ifdef CB_SYS_fremovexattr
769 # define TARGET_LINUX_SYS_fremovexattr 237
770 { "fremovexattr", CB_SYS_fremovexattr, TARGET_LINUX_SYS_fremovexattr },
771 #endif
772 #ifdef CB_SYS_tkill
773 # define TARGET_LINUX_SYS_tkill 238
774 { "tkill", CB_SYS_tkill, TARGET_LINUX_SYS_tkill },
775 #endif
776 #ifdef CB_SYS_sendfile64
777 # define TARGET_LINUX_SYS_sendfile64 239
778 { "sendfile64", CB_SYS_sendfile64, TARGET_LINUX_SYS_sendfile64 },
779 #endif
780 #ifdef CB_SYS_futex
781 # define TARGET_LINUX_SYS_futex 240
782 { "futex", CB_SYS_futex, TARGET_LINUX_SYS_futex },
783 #endif
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 },
787 #endif
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 },
791 #endif
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 },
795 #endif
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 },
799 #endif
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 },
803 #endif
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 },
807 #endif
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 },
811 #endif
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 },
815 #endif
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 },
819 #endif
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 },
823 #endif
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 },
827 #endif
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 },
831 #endif
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 },
835 #endif
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 },
839 #endif
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 },
843 #endif
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 },
847 #endif
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 },
851 #endif
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 },
855 #endif
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 },
859 #endif
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 },
863 #endif
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 },
867 #endif
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 },
871 #endif
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 },
875 #endif
876 #ifdef CB_SYS_statfs64
877 # define TARGET_LINUX_SYS_statfs64 269
878 { "statfs64", CB_SYS_statfs64, TARGET_LINUX_SYS_statfs64 },
879 #endif
880 #ifdef CB_SYS_fstatfs64
881 # define TARGET_LINUX_SYS_fstatfs64 270
882 { "fstatfs64", CB_SYS_fstatfs64, TARGET_LINUX_SYS_fstatfs64 },
883 #endif
884 #ifdef CB_SYS_tgkill
885 # define TARGET_LINUX_SYS_tgkill 271
886 { "tgkill", CB_SYS_tgkill, TARGET_LINUX_SYS_tgkill },
887 #endif
888 #ifdef CB_SYS_utimes
889 # define TARGET_LINUX_SYS_utimes 272
890 { "utimes", CB_SYS_utimes, TARGET_LINUX_SYS_utimes },
891 #endif
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 },
895 #endif
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 },
899 #endif
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 },
903 #endif
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 },
907 #endif
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 },
911 #endif
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 },
915 #endif
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 },
919 #endif
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 },
923 #endif
924 #ifdef CB_SYS_waitid
925 # define TARGET_LINUX_SYS_waitid 285
926 { "waitid", CB_SYS_waitid, TARGET_LINUX_SYS_waitid },
927 #endif
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 },
931 #endif
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 },
935 #endif
936 #ifdef CB_SYS_keyctl
937 # define TARGET_LINUX_SYS_keyctl 288
938 { "keyctl", CB_SYS_keyctl, TARGET_LINUX_SYS_keyctl },
939 #endif
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 },
943 #endif
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 },
947 #endif
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 },
951 #endif
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 },
955 #endif
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 },
959 #endif
960 #ifdef CB_SYS_openat
961 # define TARGET_LINUX_SYS_openat 295
962 { "openat", CB_SYS_openat, TARGET_LINUX_SYS_openat },
963 #endif
964 #ifdef CB_SYS_mkdirat
965 # define TARGET_LINUX_SYS_mkdirat 296
966 { "mkdirat", CB_SYS_mkdirat, TARGET_LINUX_SYS_mkdirat },
967 #endif
968 #ifdef CB_SYS_mknodat
969 # define TARGET_LINUX_SYS_mknodat 297
970 { "mknodat", CB_SYS_mknodat, TARGET_LINUX_SYS_mknodat },
971 #endif
972 #ifdef CB_SYS_fchownat
973 # define TARGET_LINUX_SYS_fchownat 298
974 { "fchownat", CB_SYS_fchownat, TARGET_LINUX_SYS_fchownat },
975 #endif
976 #ifdef CB_SYS_futimesat
977 # define TARGET_LINUX_SYS_futimesat 299
978 { "futimesat", CB_SYS_futimesat, TARGET_LINUX_SYS_futimesat },
979 #endif
980 #ifdef CB_SYS_fstatat64
981 # define TARGET_LINUX_SYS_fstatat64 300
982 { "fstatat64", CB_SYS_fstatat64, TARGET_LINUX_SYS_fstatat64 },
983 #endif
984 #ifdef CB_SYS_unlinkat
985 # define TARGET_LINUX_SYS_unlinkat 301
986 { "unlinkat", CB_SYS_unlinkat, TARGET_LINUX_SYS_unlinkat },
987 #endif
988 #ifdef CB_SYS_renameat
989 # define TARGET_LINUX_SYS_renameat 302
990 { "renameat", CB_SYS_renameat, TARGET_LINUX_SYS_renameat },
991 #endif
992 #ifdef CB_SYS_linkat
993 # define TARGET_LINUX_SYS_linkat 303
994 { "linkat", CB_SYS_linkat, TARGET_LINUX_SYS_linkat },
995 #endif
996 #ifdef CB_SYS_symlinkat
997 # define TARGET_LINUX_SYS_symlinkat 304
998 { "symlinkat", CB_SYS_symlinkat, TARGET_LINUX_SYS_symlinkat },
999 #endif
1000 #ifdef CB_SYS_readlinkat
1001 # define TARGET_LINUX_SYS_readlinkat 305
1002 { "readlinkat", CB_SYS_readlinkat, TARGET_LINUX_SYS_readlinkat },
1003 #endif
1004 #ifdef CB_SYS_fchmodat
1005 # define TARGET_LINUX_SYS_fchmodat 306
1006 { "fchmodat", CB_SYS_fchmodat, TARGET_LINUX_SYS_fchmodat },
1007 #endif
1008 #ifdef CB_SYS_faccessat
1009 # define TARGET_LINUX_SYS_faccessat 307
1010 { "faccessat", CB_SYS_faccessat, TARGET_LINUX_SYS_faccessat },
1011 #endif
1012 #ifdef CB_SYS_pselect6
1013 # define TARGET_LINUX_SYS_pselect6 308
1014 { "pselect6", CB_SYS_pselect6, TARGET_LINUX_SYS_pselect6 },
1015 #endif
1016 #ifdef CB_SYS_ppoll
1017 # define TARGET_LINUX_SYS_ppoll 309
1018 { "ppoll", CB_SYS_ppoll, TARGET_LINUX_SYS_ppoll },
1019 #endif
1020 #ifdef CB_SYS_unshare
1021 # define TARGET_LINUX_SYS_unshare 310
1022 { "unshare", CB_SYS_unshare, TARGET_LINUX_SYS_unshare },
1023 #endif
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 },
1027 #endif
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 },
1031 #endif
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 },
1035 #endif
1036 #ifdef CB_SYS_accept
1037 # define TARGET_LINUX_SYS_accept 314
1038 { "accept", CB_SYS_accept, TARGET_LINUX_SYS_accept },
1039 #endif
1040 #ifdef CB_SYS_bind
1041 # define TARGET_LINUX_SYS_bind 315
1042 { "bind", CB_SYS_bind, TARGET_LINUX_SYS_bind },
1043 #endif
1044 #ifdef CB_SYS_connect
1045 # define TARGET_LINUX_SYS_connect 316
1046 { "connect", CB_SYS_connect, TARGET_LINUX_SYS_connect },
1047 #endif
1048 #ifdef CB_SYS_getpeername
1049 # define TARGET_LINUX_SYS_getpeername 317
1050 { "getpeername", CB_SYS_getpeername, TARGET_LINUX_SYS_getpeername },
1051 #endif
1052 #ifdef CB_SYS_getsockname
1053 # define TARGET_LINUX_SYS_getsockname 318
1054 { "getsockname", CB_SYS_getsockname, TARGET_LINUX_SYS_getsockname },
1055 #endif
1056 #ifdef CB_SYS_getsockopt
1057 # define TARGET_LINUX_SYS_getsockopt 319
1058 { "getsockopt", CB_SYS_getsockopt, TARGET_LINUX_SYS_getsockopt },
1059 #endif
1060 #ifdef CB_SYS_listen
1061 # define TARGET_LINUX_SYS_listen 320
1062 { "listen", CB_SYS_listen, TARGET_LINUX_SYS_listen },
1063 #endif
1064 #ifdef CB_SYS_recv
1065 # define TARGET_LINUX_SYS_recv 321
1066 { "recv", CB_SYS_recv, TARGET_LINUX_SYS_recv },
1067 #endif
1068 #ifdef CB_SYS_recvfrom
1069 # define TARGET_LINUX_SYS_recvfrom 322
1070 { "recvfrom", CB_SYS_recvfrom, TARGET_LINUX_SYS_recvfrom },
1071 #endif
1072 #ifdef CB_SYS_recvmsg
1073 # define TARGET_LINUX_SYS_recvmsg 323
1074 { "recvmsg", CB_SYS_recvmsg, TARGET_LINUX_SYS_recvmsg },
1075 #endif
1076 #ifdef CB_SYS_send
1077 # define TARGET_LINUX_SYS_send 324
1078 { "send", CB_SYS_send, TARGET_LINUX_SYS_send },
1079 #endif
1080 #ifdef CB_SYS_sendmsg
1081 # define TARGET_LINUX_SYS_sendmsg 325
1082 { "sendmsg", CB_SYS_sendmsg, TARGET_LINUX_SYS_sendmsg },
1083 #endif
1084 #ifdef CB_SYS_sendto
1085 # define TARGET_LINUX_SYS_sendto 326
1086 { "sendto", CB_SYS_sendto, TARGET_LINUX_SYS_sendto },
1087 #endif
1088 #ifdef CB_SYS_setsockopt
1089 # define TARGET_LINUX_SYS_setsockopt 327
1090 { "setsockopt", CB_SYS_setsockopt, TARGET_LINUX_SYS_setsockopt },
1091 #endif
1092 #ifdef CB_SYS_shutdown
1093 # define TARGET_LINUX_SYS_shutdown 328
1094 { "shutdown", CB_SYS_shutdown, TARGET_LINUX_SYS_shutdown },
1095 #endif
1096 #ifdef CB_SYS_socket
1097 # define TARGET_LINUX_SYS_socket 329
1098 { "socket", CB_SYS_socket, TARGET_LINUX_SYS_socket },
1099 #endif
1100 #ifdef CB_SYS_socketpair
1101 # define TARGET_LINUX_SYS_socketpair 330
1102 { "socketpair", CB_SYS_socketpair, TARGET_LINUX_SYS_socketpair },
1103 #endif
1104 #ifdef CB_SYS_semctl
1105 # define TARGET_LINUX_SYS_semctl 331
1106 { "semctl", CB_SYS_semctl, TARGET_LINUX_SYS_semctl },
1107 #endif
1108 #ifdef CB_SYS_semget
1109 # define TARGET_LINUX_SYS_semget 332
1110 { "semget", CB_SYS_semget, TARGET_LINUX_SYS_semget },
1111 #endif
1112 #ifdef CB_SYS_semop
1113 # define TARGET_LINUX_SYS_semop 333
1114 { "semop", CB_SYS_semop, TARGET_LINUX_SYS_semop },
1115 #endif
1116 #ifdef CB_SYS_msgctl
1117 # define TARGET_LINUX_SYS_msgctl 334
1118 { "msgctl", CB_SYS_msgctl, TARGET_LINUX_SYS_msgctl },
1119 #endif
1120 #ifdef CB_SYS_msgget
1121 # define TARGET_LINUX_SYS_msgget 335
1122 { "msgget", CB_SYS_msgget, TARGET_LINUX_SYS_msgget },
1123 #endif
1124 #ifdef CB_SYS_msgrcv
1125 # define TARGET_LINUX_SYS_msgrcv 336
1126 { "msgrcv", CB_SYS_msgrcv, TARGET_LINUX_SYS_msgrcv },
1127 #endif
1128 #ifdef CB_SYS_msgsnd
1129 # define TARGET_LINUX_SYS_msgsnd 337
1130 { "msgsnd", CB_SYS_msgsnd, TARGET_LINUX_SYS_msgsnd },
1131 #endif
1132 #ifdef CB_SYS_shmat
1133 # define TARGET_LINUX_SYS_shmat 338
1134 { "shmat", CB_SYS_shmat, TARGET_LINUX_SYS_shmat },
1135 #endif
1136 #ifdef CB_SYS_shmctl
1137 # define TARGET_LINUX_SYS_shmctl 339
1138 { "shmctl", CB_SYS_shmctl, TARGET_LINUX_SYS_shmctl },
1139 #endif
1140 #ifdef CB_SYS_shmdt
1141 # define TARGET_LINUX_SYS_shmdt 340
1142 { "shmdt", CB_SYS_shmdt, TARGET_LINUX_SYS_shmdt },
1143 #endif
1144 #ifdef CB_SYS_shmget
1145 # define TARGET_LINUX_SYS_shmget 341
1146 { "shmget", CB_SYS_shmget, TARGET_LINUX_SYS_shmget },
1147 #endif
1148 #ifdef CB_SYS_splice
1149 # define TARGET_LINUX_SYS_splice 342
1150 { "splice", CB_SYS_splice, TARGET_LINUX_SYS_splice },
1151 #endif
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 },
1155 #endif
1156 #ifdef CB_SYS_tee
1157 # define TARGET_LINUX_SYS_tee 344
1158 { "tee", CB_SYS_tee, TARGET_LINUX_SYS_tee },
1159 #endif
1160 #ifdef CB_SYS_vmsplice
1161 # define TARGET_LINUX_SYS_vmsplice 345
1162 { "vmsplice", CB_SYS_vmsplice, TARGET_LINUX_SYS_vmsplice },
1163 #endif
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 },
1167 #endif
1168 #ifdef CB_SYS_utimensat
1169 # define TARGET_LINUX_SYS_utimensat 347
1170 { "utimensat", CB_SYS_utimensat, TARGET_LINUX_SYS_utimensat },
1171 #endif
1172 #ifdef CB_SYS_signalfd
1173 # define TARGET_LINUX_SYS_signalfd 348
1174 { "signalfd", CB_SYS_signalfd, TARGET_LINUX_SYS_signalfd },
1175 #endif
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 },
1179 #endif
1180 #ifdef CB_SYS_eventfd
1181 # define TARGET_LINUX_SYS_eventfd 350
1182 { "eventfd", CB_SYS_eventfd, TARGET_LINUX_SYS_eventfd },
1183 #endif
1184 #ifdef CB_SYS_pread64
1185 # define TARGET_LINUX_SYS_pread64 351
1186 { "pread64", CB_SYS_pread64, TARGET_LINUX_SYS_pread64 },
1187 #endif
1188 #ifdef CB_SYS_pwrite64
1189 # define TARGET_LINUX_SYS_pwrite64 352
1190 { "pwrite64", CB_SYS_pwrite64, TARGET_LINUX_SYS_pwrite64 },
1191 #endif
1192 #ifdef CB_SYS_fadvise64
1193 # define TARGET_LINUX_SYS_fadvise64 353
1194 { "fadvise64", CB_SYS_fadvise64, TARGET_LINUX_SYS_fadvise64 },
1195 #endif
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 },
1199 #endif
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 },
1203 #endif
1204 #ifdef CB_SYS_fallocate
1205 # define TARGET_LINUX_SYS_fallocate 356
1206 { "fallocate", CB_SYS_fallocate, TARGET_LINUX_SYS_fallocate },
1207 #endif
1208 #ifdef CB_SYS_semtimedop
1209 # define TARGET_LINUX_SYS_semtimedop 357
1210 { "semtimedop", CB_SYS_semtimedop, TARGET_LINUX_SYS_semtimedop },
1211 #endif
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 },
1215 #endif
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 },
1219 #endif
1220 #ifdef CB_SYS_signalfd4
1221 # define TARGET_LINUX_SYS_signalfd4 360
1222 { "signalfd4", CB_SYS_signalfd4, TARGET_LINUX_SYS_signalfd4 },
1223 #endif
1224 #ifdef CB_SYS_eventfd2
1225 # define TARGET_LINUX_SYS_eventfd2 361
1226 { "eventfd2", CB_SYS_eventfd2, TARGET_LINUX_SYS_eventfd2 },
1227 #endif
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 },
1231 #endif
1232 #ifdef CB_SYS_dup3
1233 # define TARGET_LINUX_SYS_dup3 363
1234 { "dup3", CB_SYS_dup3, TARGET_LINUX_SYS_dup3 },
1235 #endif
1236 #ifdef CB_SYS_pipe2
1237 # define TARGET_LINUX_SYS_pipe2 364
1238 { "pipe2", CB_SYS_pipe2, TARGET_LINUX_SYS_pipe2 },
1239 #endif
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 },
1243 #endif
1244 #ifdef CB_SYS_preadv
1245 # define TARGET_LINUX_SYS_preadv 366
1246 { "preadv", CB_SYS_preadv, TARGET_LINUX_SYS_preadv },
1247 #endif
1248 #ifdef CB_SYS_pwritev
1249 # define TARGET_LINUX_SYS_pwritev 367
1250 { "pwritev", CB_SYS_pwritev, TARGET_LINUX_SYS_pwritev },
1251 #endif
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 },
1255 #endif
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 },
1259 #endif
1260 #ifdef CB_SYS_recvmmsg
1261 # define TARGET_LINUX_SYS_recvmmsg 370
1262 { "recvmmsg", CB_SYS_recvmmsg, TARGET_LINUX_SYS_recvmmsg },
1263 #endif
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 },
1267 #endif
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 },
1271 #endif
1272 #ifdef CB_SYS_prlimit64
1273 # define TARGET_LINUX_SYS_prlimit64 373
1274 { "prlimit64", CB_SYS_prlimit64, TARGET_LINUX_SYS_prlimit64 },
1275 #endif
1276 #ifdef CB_SYS_cacheflush
1277 # define TARGET_LINUX_SYS_cacheflush 374
1278 { "cacheflush", CB_SYS_cacheflush, TARGET_LINUX_SYS_cacheflush },
1279 #endif
1280 #ifdef CB_SYS_syscall
1281 # define TARGET_LINUX_SYS_syscall 375
1282 { "syscall", CB_SYS_syscall, TARGET_LINUX_SYS_syscall },
1283 #endif
1284 { 0, -1, -1 }
1287 static CB_TARGET_DEFS_MAP cb_linux_errno_map[] =
1289 #ifdef EPERM
1290 # define TARGET_LINUX_EPERM 1
1291 { "EPERM", EPERM, TARGET_LINUX_EPERM },
1292 #endif
1293 #ifdef ENOENT
1294 # define TARGET_LINUX_ENOENT 2
1295 { "ENOENT", ENOENT, TARGET_LINUX_ENOENT },
1296 #endif
1297 #ifdef ESRCH
1298 # define TARGET_LINUX_ESRCH 3
1299 { "ESRCH", ESRCH, TARGET_LINUX_ESRCH },
1300 #endif
1301 #ifdef EINTR
1302 # define TARGET_LINUX_EINTR 4
1303 { "EINTR", EINTR, TARGET_LINUX_EINTR },
1304 #endif
1305 #ifdef EIO
1306 # define TARGET_LINUX_EIO 5
1307 { "EIO", EIO, TARGET_LINUX_EIO },
1308 #endif
1309 #ifdef ENXIO
1310 # define TARGET_LINUX_ENXIO 6
1311 { "ENXIO", ENXIO, TARGET_LINUX_ENXIO },
1312 #endif
1313 #ifdef E2BIG
1314 # define TARGET_LINUX_E2BIG 7
1315 { "E2BIG", E2BIG, TARGET_LINUX_E2BIG },
1316 #endif
1317 #ifdef ENOEXEC
1318 # define TARGET_LINUX_ENOEXEC 8
1319 { "ENOEXEC", ENOEXEC, TARGET_LINUX_ENOEXEC },
1320 #endif
1321 #ifdef EBADF
1322 # define TARGET_LINUX_EBADF 9
1323 { "EBADF", EBADF, TARGET_LINUX_EBADF },
1324 #endif
1325 #ifdef ECHILD
1326 # define TARGET_LINUX_ECHILD 10
1327 { "ECHILD", ECHILD, TARGET_LINUX_ECHILD },
1328 #endif
1329 #ifdef EAGAIN
1330 # define TARGET_LINUX_EAGAIN 11
1331 { "EAGAIN", EAGAIN, TARGET_LINUX_EAGAIN },
1332 #endif
1333 #ifdef ENOMEM
1334 # define TARGET_LINUX_ENOMEM 12
1335 { "ENOMEM", ENOMEM, TARGET_LINUX_ENOMEM },
1336 #endif
1337 #ifdef EACCES
1338 # define TARGET_LINUX_EACCES 13
1339 { "EACCES", EACCES, TARGET_LINUX_EACCES },
1340 #endif
1341 #ifdef EFAULT
1342 # define TARGET_LINUX_EFAULT 14
1343 { "EFAULT", EFAULT, TARGET_LINUX_EFAULT },
1344 #endif
1345 #ifdef ENOTBLK
1346 # define TARGET_LINUX_ENOTBLK 15
1347 { "ENOTBLK", ENOTBLK, TARGET_LINUX_ENOTBLK },
1348 #endif
1349 #ifdef EBUSY
1350 # define TARGET_LINUX_EBUSY 16
1351 { "EBUSY", EBUSY, TARGET_LINUX_EBUSY },
1352 #endif
1353 #ifdef EEXIST
1354 # define TARGET_LINUX_EEXIST 17
1355 { "EEXIST", EEXIST, TARGET_LINUX_EEXIST },
1356 #endif
1357 #ifdef EXDEV
1358 # define TARGET_LINUX_EXDEV 18
1359 { "EXDEV", EXDEV, TARGET_LINUX_EXDEV },
1360 #endif
1361 #ifdef ENODEV
1362 # define TARGET_LINUX_ENODEV 19
1363 { "ENODEV", ENODEV, TARGET_LINUX_ENODEV },
1364 #endif
1365 #ifdef ENOTDIR
1366 # define TARGET_LINUX_ENOTDIR 20
1367 { "ENOTDIR", ENOTDIR, TARGET_LINUX_ENOTDIR },
1368 #endif
1369 #ifdef EISDIR
1370 # define TARGET_LINUX_EISDIR 21
1371 { "EISDIR", EISDIR, TARGET_LINUX_EISDIR },
1372 #endif
1373 #ifdef EINVAL
1374 # define TARGET_LINUX_EINVAL 22
1375 { "EINVAL", EINVAL, TARGET_LINUX_EINVAL },
1376 #endif
1377 #ifdef ENFILE
1378 # define TARGET_LINUX_ENFILE 23
1379 { "ENFILE", ENFILE, TARGET_LINUX_ENFILE },
1380 #endif
1381 #ifdef EMFILE
1382 # define TARGET_LINUX_EMFILE 24
1383 { "EMFILE", EMFILE, TARGET_LINUX_EMFILE },
1384 #endif
1385 #ifdef ENOTTY
1386 # define TARGET_LINUX_ENOTTY 25
1387 { "ENOTTY", ENOTTY, TARGET_LINUX_ENOTTY },
1388 #endif
1389 #ifdef ETXTBSY
1390 # define TARGET_LINUX_ETXTBSY 26
1391 { "ETXTBSY", ETXTBSY, TARGET_LINUX_ETXTBSY },
1392 #endif
1393 #ifdef EFBIG
1394 # define TARGET_LINUX_EFBIG 27
1395 { "EFBIG", EFBIG, TARGET_LINUX_EFBIG },
1396 #endif
1397 #ifdef ENOSPC
1398 # define TARGET_LINUX_ENOSPC 28
1399 { "ENOSPC", ENOSPC, TARGET_LINUX_ENOSPC },
1400 #endif
1401 #ifdef ESPIPE
1402 # define TARGET_LINUX_ESPIPE 29
1403 { "ESPIPE", ESPIPE, TARGET_LINUX_ESPIPE },
1404 #endif
1405 #ifdef EROFS
1406 # define TARGET_LINUX_EROFS 30
1407 { "EROFS", EROFS, TARGET_LINUX_EROFS },
1408 #endif
1409 #ifdef EMLINK
1410 # define TARGET_LINUX_EMLINK 31
1411 { "EMLINK", EMLINK, TARGET_LINUX_EMLINK },
1412 #endif
1413 #ifdef EPIPE
1414 # define TARGET_LINUX_EPIPE 32
1415 { "EPIPE", EPIPE, TARGET_LINUX_EPIPE },
1416 #endif
1417 #ifdef EDOM
1418 # define TARGET_LINUX_EDOM 33
1419 { "EDOM", EDOM, TARGET_LINUX_EDOM },
1420 #endif
1421 #ifdef ERANGE
1422 # define TARGET_LINUX_ERANGE 34
1423 { "ERANGE", ERANGE, TARGET_LINUX_ERANGE },
1424 #endif
1425 #ifdef EDEADLK
1426 # define TARGET_LINUX_EDEADLK 35
1427 { "EDEADLK", EDEADLK, TARGET_LINUX_EDEADLK },
1428 #endif
1429 #ifdef ENAMETOOLONG
1430 # define TARGET_LINUX_ENAMETOOLONG 36
1431 { "ENAMETOOLONG", ENAMETOOLONG, TARGET_LINUX_ENAMETOOLONG },
1432 #endif
1433 #ifdef ENOLCK
1434 # define TARGET_LINUX_ENOLCK 37
1435 { "ENOLCK", ENOLCK, TARGET_LINUX_ENOLCK },
1436 #endif
1437 #ifdef ENOSYS
1438 # define TARGET_LINUX_ENOSYS 38
1439 { "ENOSYS", ENOSYS, TARGET_LINUX_ENOSYS },
1440 #endif
1441 #ifdef ENOTEMPTY
1442 # define TARGET_LINUX_ENOTEMPTY 39
1443 { "ENOTEMPTY", ENOTEMPTY, TARGET_LINUX_ENOTEMPTY },
1444 #endif
1445 #ifdef ELOOP
1446 # define TARGET_LINUX_ELOOP 40
1447 { "ELOOP", ELOOP, TARGET_LINUX_ELOOP },
1448 #endif
1449 #ifdef ENOMSG
1450 # define TARGET_LINUX_ENOMSG 42
1451 { "ENOMSG", ENOMSG, TARGET_LINUX_ENOMSG },
1452 #endif
1453 #ifdef EIDRM
1454 # define TARGET_LINUX_EIDRM 43
1455 { "EIDRM", EIDRM, TARGET_LINUX_EIDRM },
1456 #endif
1457 #ifdef ECHRNG
1458 # define TARGET_LINUX_ECHRNG 44
1459 { "ECHRNG", ECHRNG, TARGET_LINUX_ECHRNG },
1460 #endif
1461 #ifdef EL2NSYNC
1462 # define TARGET_LINUX_EL2NSYNC 45
1463 { "EL2NSYNC", EL2NSYNC, TARGET_LINUX_EL2NSYNC },
1464 #endif
1465 #ifdef EL3HLT
1466 # define TARGET_LINUX_EL3HLT 46
1467 { "EL3HLT", EL3HLT, TARGET_LINUX_EL3HLT },
1468 #endif
1469 #ifdef EL3RST
1470 # define TARGET_LINUX_EL3RST 47
1471 { "EL3RST", EL3RST, TARGET_LINUX_EL3RST },
1472 #endif
1473 #ifdef ELNRNG
1474 # define TARGET_LINUX_ELNRNG 48
1475 { "ELNRNG", ELNRNG, TARGET_LINUX_ELNRNG },
1476 #endif
1477 #ifdef EUNATCH
1478 # define TARGET_LINUX_EUNATCH 49
1479 { "EUNATCH", EUNATCH, TARGET_LINUX_EUNATCH },
1480 #endif
1481 #ifdef ENOCSI
1482 # define TARGET_LINUX_ENOCSI 50
1483 { "ENOCSI", ENOCSI, TARGET_LINUX_ENOCSI },
1484 #endif
1485 #ifdef EL2HLT
1486 # define TARGET_LINUX_EL2HLT 51
1487 { "EL2HLT", EL2HLT, TARGET_LINUX_EL2HLT },
1488 #endif
1489 #ifdef EBADE
1490 # define TARGET_LINUX_EBADE 52
1491 { "EBADE", EBADE, TARGET_LINUX_EBADE },
1492 #endif
1493 #ifdef EBADR
1494 # define TARGET_LINUX_EBADR 53
1495 { "EBADR", EBADR, TARGET_LINUX_EBADR },
1496 #endif
1497 #ifdef EXFULL
1498 # define TARGET_LINUX_EXFULL 54
1499 { "EXFULL", EXFULL, TARGET_LINUX_EXFULL },
1500 #endif
1501 #ifdef ENOANO
1502 # define TARGET_LINUX_ENOANO 55
1503 { "ENOANO", ENOANO, TARGET_LINUX_ENOANO },
1504 #endif
1505 #ifdef EBADRQC
1506 # define TARGET_LINUX_EBADRQC 56
1507 { "EBADRQC", EBADRQC, TARGET_LINUX_EBADRQC },
1508 #endif
1509 #ifdef EBADSLT
1510 # define TARGET_LINUX_EBADSLT 57
1511 { "EBADSLT", EBADSLT, TARGET_LINUX_EBADSLT },
1512 #endif
1513 #ifdef EBFONT
1514 # define TARGET_LINUX_EBFONT 59
1515 { "EBFONT", EBFONT, TARGET_LINUX_EBFONT },
1516 #endif
1517 #ifdef ENOSTR
1518 # define TARGET_LINUX_ENOSTR 60
1519 { "ENOSTR", ENOSTR, TARGET_LINUX_ENOSTR },
1520 #endif
1521 #ifdef ENODATA
1522 # define TARGET_LINUX_ENODATA 61
1523 { "ENODATA", ENODATA, TARGET_LINUX_ENODATA },
1524 #endif
1525 #ifdef ETIME
1526 # define TARGET_LINUX_ETIME 62
1527 { "ETIME", ETIME, TARGET_LINUX_ETIME },
1528 #endif
1529 #ifdef ENOSR
1530 # define TARGET_LINUX_ENOSR 63
1531 { "ENOSR", ENOSR, TARGET_LINUX_ENOSR },
1532 #endif
1533 #ifdef ENONET
1534 # define TARGET_LINUX_ENONET 64
1535 { "ENONET", ENONET, TARGET_LINUX_ENONET },
1536 #endif
1537 #ifdef ENOPKG
1538 # define TARGET_LINUX_ENOPKG 65
1539 { "ENOPKG", ENOPKG, TARGET_LINUX_ENOPKG },
1540 #endif
1541 #ifdef EREMOTE
1542 # define TARGET_LINUX_EREMOTE 66
1543 { "EREMOTE", EREMOTE, TARGET_LINUX_EREMOTE },
1544 #endif
1545 #ifdef ENOLINK
1546 # define TARGET_LINUX_ENOLINK 67
1547 { "ENOLINK", ENOLINK, TARGET_LINUX_ENOLINK },
1548 #endif
1549 #ifdef EADV
1550 # define TARGET_LINUX_EADV 68
1551 { "EADV", EADV, TARGET_LINUX_EADV },
1552 #endif
1553 #ifdef ESRMNT
1554 # define TARGET_LINUX_ESRMNT 69
1555 { "ESRMNT", ESRMNT, TARGET_LINUX_ESRMNT },
1556 #endif
1557 #ifdef ECOMM
1558 # define TARGET_LINUX_ECOMM 70
1559 { "ECOMM", ECOMM, TARGET_LINUX_ECOMM },
1560 #endif
1561 #ifdef EPROTO
1562 # define TARGET_LINUX_EPROTO 71
1563 { "EPROTO", EPROTO, TARGET_LINUX_EPROTO },
1564 #endif
1565 #ifdef EMULTIHOP
1566 # define TARGET_LINUX_EMULTIHOP 72
1567 { "EMULTIHOP", EMULTIHOP, TARGET_LINUX_EMULTIHOP },
1568 #endif
1569 #ifdef EDOTDOT
1570 # define TARGET_LINUX_EDOTDOT 73
1571 { "EDOTDOT", EDOTDOT, TARGET_LINUX_EDOTDOT },
1572 #endif
1573 #ifdef EBADMSG
1574 # define TARGET_LINUX_EBADMSG 74
1575 { "EBADMSG", EBADMSG, TARGET_LINUX_EBADMSG },
1576 #endif
1577 #ifdef EOVERFLOW
1578 # define TARGET_LINUX_EOVERFLOW 75
1579 { "EOVERFLOW", EOVERFLOW, TARGET_LINUX_EOVERFLOW },
1580 #endif
1581 #ifdef ENOTUNIQ
1582 # define TARGET_LINUX_ENOTUNIQ 76
1583 { "ENOTUNIQ", ENOTUNIQ, TARGET_LINUX_ENOTUNIQ },
1584 #endif
1585 #ifdef EBADFD
1586 # define TARGET_LINUX_EBADFD 77
1587 { "EBADFD", EBADFD, TARGET_LINUX_EBADFD },
1588 #endif
1589 #ifdef EREMCHG
1590 # define TARGET_LINUX_EREMCHG 78
1591 { "EREMCHG", EREMCHG, TARGET_LINUX_EREMCHG },
1592 #endif
1593 #ifdef ELIBACC
1594 # define TARGET_LINUX_ELIBACC 79
1595 { "ELIBACC", ELIBACC, TARGET_LINUX_ELIBACC },
1596 #endif
1597 #ifdef ELIBBAD
1598 # define TARGET_LINUX_ELIBBAD 80
1599 { "ELIBBAD", ELIBBAD, TARGET_LINUX_ELIBBAD },
1600 #endif
1601 #ifdef ELIBSCN
1602 # define TARGET_LINUX_ELIBSCN 81
1603 { "ELIBSCN", ELIBSCN, TARGET_LINUX_ELIBSCN },
1604 #endif
1605 #ifdef ELIBMAX
1606 # define TARGET_LINUX_ELIBMAX 82
1607 { "ELIBMAX", ELIBMAX, TARGET_LINUX_ELIBMAX },
1608 #endif
1609 #ifdef ELIBEXEC
1610 # define TARGET_LINUX_ELIBEXEC 83
1611 { "ELIBEXEC", ELIBEXEC, TARGET_LINUX_ELIBEXEC },
1612 #endif
1613 #ifdef EILSEQ
1614 # define TARGET_LINUX_EILSEQ 84
1615 { "EILSEQ", EILSEQ, TARGET_LINUX_EILSEQ },
1616 #endif
1617 #ifdef ERESTART
1618 # define TARGET_LINUX_ERESTART 85
1619 { "ERESTART", ERESTART, TARGET_LINUX_ERESTART },
1620 #endif
1621 #ifdef ESTRPIPE
1622 # define TARGET_LINUX_ESTRPIPE 86
1623 { "ESTRPIPE", ESTRPIPE, TARGET_LINUX_ESTRPIPE },
1624 #endif
1625 #ifdef EUSERS
1626 # define TARGET_LINUX_EUSERS 87
1627 { "EUSERS", EUSERS, TARGET_LINUX_EUSERS },
1628 #endif
1629 #ifdef ENOTSOCK
1630 # define TARGET_LINUX_ENOTSOCK 88
1631 { "ENOTSOCK", ENOTSOCK, TARGET_LINUX_ENOTSOCK },
1632 #endif
1633 #ifdef EDESTADDRREQ
1634 # define TARGET_LINUX_EDESTADDRREQ 89
1635 { "EDESTADDRREQ", EDESTADDRREQ, TARGET_LINUX_EDESTADDRREQ },
1636 #endif
1637 #ifdef EMSGSIZE
1638 # define TARGET_LINUX_EMSGSIZE 90
1639 { "EMSGSIZE", EMSGSIZE, TARGET_LINUX_EMSGSIZE },
1640 #endif
1641 #ifdef EPROTOTYPE
1642 # define TARGET_LINUX_EPROTOTYPE 91
1643 { "EPROTOTYPE", EPROTOTYPE, TARGET_LINUX_EPROTOTYPE },
1644 #endif
1645 #ifdef ENOPROTOOPT
1646 # define TARGET_LINUX_ENOPROTOOPT 92
1647 { "ENOPROTOOPT", ENOPROTOOPT, TARGET_LINUX_ENOPROTOOPT },
1648 #endif
1649 #ifdef EPROTONOSUPPORT
1650 # define TARGET_LINUX_EPROTONOSUPPORT 93
1651 { "EPROTONOSUPPORT", EPROTONOSUPPORT, TARGET_LINUX_EPROTONOSUPPORT },
1652 #endif
1653 #ifdef ESOCKTNOSUPPORT
1654 # define TARGET_LINUX_ESOCKTNOSUPPORT 94
1655 { "ESOCKTNOSUPPORT", ESOCKTNOSUPPORT, TARGET_LINUX_ESOCKTNOSUPPORT },
1656 #endif
1657 #ifdef EOPNOTSUPP
1658 # define TARGET_LINUX_EOPNOTSUPP 95
1659 { "EOPNOTSUPP", EOPNOTSUPP, TARGET_LINUX_EOPNOTSUPP },
1660 #endif
1661 #ifdef EPFNOSUPPORT
1662 # define TARGET_LINUX_EPFNOSUPPORT 96
1663 { "EPFNOSUPPORT", EPFNOSUPPORT, TARGET_LINUX_EPFNOSUPPORT },
1664 #endif
1665 #ifdef EAFNOSUPPORT
1666 # define TARGET_LINUX_EAFNOSUPPORT 97
1667 { "EAFNOSUPPORT", EAFNOSUPPORT, TARGET_LINUX_EAFNOSUPPORT },
1668 #endif
1669 #ifdef EADDRINUSE
1670 # define TARGET_LINUX_EADDRINUSE 98
1671 { "EADDRINUSE", EADDRINUSE, TARGET_LINUX_EADDRINUSE },
1672 #endif
1673 #ifdef EADDRNOTAVAIL
1674 # define TARGET_LINUX_EADDRNOTAVAIL 99
1675 { "EADDRNOTAVAIL", EADDRNOTAVAIL, TARGET_LINUX_EADDRNOTAVAIL },
1676 #endif
1677 #ifdef ENETDOWN
1678 # define TARGET_LINUX_ENETDOWN 100
1679 { "ENETDOWN", ENETDOWN, TARGET_LINUX_ENETDOWN },
1680 #endif
1681 #ifdef ENETUNREACH
1682 # define TARGET_LINUX_ENETUNREACH 101
1683 { "ENETUNREACH", ENETUNREACH, TARGET_LINUX_ENETUNREACH },
1684 #endif
1685 #ifdef ENETRESET
1686 # define TARGET_LINUX_ENETRESET 102
1687 { "ENETRESET", ENETRESET, TARGET_LINUX_ENETRESET },
1688 #endif
1689 #ifdef ECONNABORTED
1690 # define TARGET_LINUX_ECONNABORTED 103
1691 { "ECONNABORTED", ECONNABORTED, TARGET_LINUX_ECONNABORTED },
1692 #endif
1693 #ifdef ECONNRESET
1694 # define TARGET_LINUX_ECONNRESET 104
1695 { "ECONNRESET", ECONNRESET, TARGET_LINUX_ECONNRESET },
1696 #endif
1697 #ifdef ENOBUFS
1698 # define TARGET_LINUX_ENOBUFS 105
1699 { "ENOBUFS", ENOBUFS, TARGET_LINUX_ENOBUFS },
1700 #endif
1701 #ifdef EISCONN
1702 # define TARGET_LINUX_EISCONN 106
1703 { "EISCONN", EISCONN, TARGET_LINUX_EISCONN },
1704 #endif
1705 #ifdef ENOTCONN
1706 # define TARGET_LINUX_ENOTCONN 107
1707 { "ENOTCONN", ENOTCONN, TARGET_LINUX_ENOTCONN },
1708 #endif
1709 #ifdef ESHUTDOWN
1710 # define TARGET_LINUX_ESHUTDOWN 108
1711 { "ESHUTDOWN", ESHUTDOWN, TARGET_LINUX_ESHUTDOWN },
1712 #endif
1713 #ifdef ETOOMANYREFS
1714 # define TARGET_LINUX_ETOOMANYREFS 109
1715 { "ETOOMANYREFS", ETOOMANYREFS, TARGET_LINUX_ETOOMANYREFS },
1716 #endif
1717 #ifdef ETIMEDOUT
1718 # define TARGET_LINUX_ETIMEDOUT 110
1719 { "ETIMEDOUT", ETIMEDOUT, TARGET_LINUX_ETIMEDOUT },
1720 #endif
1721 #ifdef ECONNREFUSED
1722 # define TARGET_LINUX_ECONNREFUSED 111
1723 { "ECONNREFUSED", ECONNREFUSED, TARGET_LINUX_ECONNREFUSED },
1724 #endif
1725 #ifdef EHOSTDOWN
1726 # define TARGET_LINUX_EHOSTDOWN 112
1727 { "EHOSTDOWN", EHOSTDOWN, TARGET_LINUX_EHOSTDOWN },
1728 #endif
1729 #ifdef EHOSTUNREACH
1730 # define TARGET_LINUX_EHOSTUNREACH 113
1731 { "EHOSTUNREACH", EHOSTUNREACH, TARGET_LINUX_EHOSTUNREACH },
1732 #endif
1733 #ifdef EALREADY
1734 # define TARGET_LINUX_EALREADY 114
1735 { "EALREADY", EALREADY, TARGET_LINUX_EALREADY },
1736 #endif
1737 #ifdef EINPROGRESS
1738 # define TARGET_LINUX_EINPROGRESS 115
1739 { "EINPROGRESS", EINPROGRESS, TARGET_LINUX_EINPROGRESS },
1740 #endif
1741 #ifdef ESTALE
1742 # define TARGET_LINUX_ESTALE 116
1743 { "ESTALE", ESTALE, TARGET_LINUX_ESTALE },
1744 #endif
1745 #ifdef EUCLEAN
1746 # define TARGET_LINUX_EUCLEAN 117
1747 { "EUCLEAN", EUCLEAN, TARGET_LINUX_EUCLEAN },
1748 #endif
1749 #ifdef ENOTNAM
1750 # define TARGET_LINUX_ENOTNAM 118
1751 { "ENOTNAM", ENOTNAM, TARGET_LINUX_ENOTNAM },
1752 #endif
1753 #ifdef ENAVAIL
1754 # define TARGET_LINUX_ENAVAIL 119
1755 { "ENAVAIL", ENAVAIL, TARGET_LINUX_ENAVAIL },
1756 #endif
1757 #ifdef EISNAM
1758 # define TARGET_LINUX_EISNAM 120
1759 { "EISNAM", EISNAM, TARGET_LINUX_EISNAM },
1760 #endif
1761 #ifdef EREMOTEIO
1762 # define TARGET_LINUX_EREMOTEIO 121
1763 { "EREMOTEIO", EREMOTEIO, TARGET_LINUX_EREMOTEIO },
1764 #endif
1765 #ifdef EDQUOT
1766 # define TARGET_LINUX_EDQUOT 122
1767 { "EDQUOT", EDQUOT, TARGET_LINUX_EDQUOT },
1768 #endif
1769 #ifdef ENOMEDIUM
1770 # define TARGET_LINUX_ENOMEDIUM 123
1771 { "ENOMEDIUM", ENOMEDIUM, TARGET_LINUX_ENOMEDIUM },
1772 #endif
1773 #ifdef EMEDIUMTYPE
1774 # define TARGET_LINUX_EMEDIUMTYPE 124
1775 { "EMEDIUMTYPE", EMEDIUMTYPE, TARGET_LINUX_EMEDIUMTYPE },
1776 #endif
1777 #ifdef ECANCELED
1778 # define TARGET_LINUX_ECANCELED 125
1779 { "ECANCELED", ECANCELED, TARGET_LINUX_ECANCELED },
1780 #endif
1781 #ifdef EOWNERDEAD
1782 # define TARGET_LINUX_EOWNERDEAD 130
1783 { "EOWNERDEAD", EOWNERDEAD, TARGET_LINUX_EOWNERDEAD },
1784 #endif
1785 #ifdef ENOTRECOVERABLE
1786 # define TARGET_LINUX_ENOTRECOVERABLE 131
1787 { "ENOTRECOVERABLE", ENOTRECOVERABLE, TARGET_LINUX_ENOTRECOVERABLE },
1788 #endif
1789 { 0, 0, 0 }
1792 static CB_TARGET_DEFS_MAP cb_linux_open_map[] =
1794 #ifdef O_ACCMODE
1795 # define TARGET_LINUX_O_ACCMODE 0003
1796 { "O_ACCMODE", O_ACCMODE, TARGET_LINUX_O_ACCMODE },
1797 #endif
1798 #ifdef O_RDONLY
1799 # define TARGET_LINUX_O_RDONLY 00
1800 { "O_RDONLY", O_RDONLY, TARGET_LINUX_O_RDONLY },
1801 #endif
1802 #ifdef O_WRONLY
1803 # define TARGET_LINUX_O_WRONLY 01
1804 { "O_WRONLY", O_WRONLY, TARGET_LINUX_O_WRONLY },
1805 #endif
1806 #ifdef O_RDWR
1807 # define TARGET_LINUX_O_RDWR 02
1808 { "O_RDWR", O_RDWR, TARGET_LINUX_O_RDWR },
1809 #endif
1810 #ifdef O_CREAT
1811 # define TARGET_LINUX_O_CREAT 0100
1812 { "O_CREAT", O_CREAT, TARGET_LINUX_O_CREAT },
1813 #endif
1814 #ifdef O_EXCL
1815 # define TARGET_LINUX_O_EXCL 0200
1816 { "O_EXCL", O_EXCL, TARGET_LINUX_O_EXCL },
1817 #endif
1818 #ifdef O_NOCTTY
1819 # define TARGET_LINUX_O_NOCTTY 0400
1820 { "O_NOCTTY", O_NOCTTY, TARGET_LINUX_O_NOCTTY },
1821 #endif
1822 #ifdef O_TRUNC
1823 # define TARGET_LINUX_O_TRUNC 01000
1824 { "O_TRUNC", O_TRUNC, TARGET_LINUX_O_TRUNC },
1825 #endif
1826 #ifdef O_APPEND
1827 # define TARGET_LINUX_O_APPEND 02000
1828 { "O_APPEND", O_APPEND, TARGET_LINUX_O_APPEND },
1829 #endif
1830 #ifdef O_NONBLOCK
1831 # define TARGET_LINUX_O_NONBLOCK 04000
1832 { "O_NONBLOCK", O_NONBLOCK, TARGET_LINUX_O_NONBLOCK },
1833 #endif
1834 #ifdef O_SYNC
1835 # define TARGET_LINUX_O_SYNC 010000
1836 { "O_SYNC", O_SYNC, TARGET_LINUX_O_SYNC },
1837 #endif
1838 #ifdef O_ASYNC
1839 # define TARGET_LINUX_O_ASYNC 020000
1840 { "O_ASYNC", O_ASYNC, TARGET_LINUX_O_ASYNC },
1841 #endif
1842 { 0, -1, -1 }
1845 static CB_TARGET_DEFS_MAP cb_linux_signal_map[] =
1847 #ifdef SIGHUP
1848 # define TARGET_LINUX_SIGHUP 1
1849 { "SIGHUP", SIGHUP, TARGET_LINUX_SIGHUP },
1850 #endif
1851 #ifdef SIGINT
1852 # define TARGET_LINUX_SIGINT 2
1853 { "SIGINT", SIGINT, TARGET_LINUX_SIGINT },
1854 #endif
1855 #ifdef SIGQUIT
1856 # define TARGET_LINUX_SIGQUIT 3
1857 { "SIGQUIT", SIGQUIT, TARGET_LINUX_SIGQUIT },
1858 #endif
1859 #ifdef SIGILL
1860 # define TARGET_LINUX_SIGILL 4
1861 { "SIGILL", SIGILL, TARGET_LINUX_SIGILL },
1862 #endif
1863 #ifdef SIGTRAP
1864 # define TARGET_LINUX_SIGTRAP 5
1865 { "SIGTRAP", SIGTRAP, TARGET_LINUX_SIGTRAP },
1866 #endif
1867 #ifdef SIGABRT
1868 # define TARGET_LINUX_SIGABRT 6
1869 { "SIGABRT", SIGABRT, TARGET_LINUX_SIGABRT },
1870 #endif
1871 #ifdef SIGIOT
1872 # define TARGET_LINUX_SIGIOT 6
1873 { "SIGIOT", SIGIOT, TARGET_LINUX_SIGIOT },
1874 #endif
1875 #ifdef SIGBUS
1876 # define TARGET_LINUX_SIGBUS 7
1877 { "SIGBUS", SIGBUS, TARGET_LINUX_SIGBUS },
1878 #endif
1879 #ifdef SIGFPE
1880 # define TARGET_LINUX_SIGFPE 8
1881 { "SIGFPE", SIGFPE, TARGET_LINUX_SIGFPE },
1882 #endif
1883 #ifdef SIGKILL
1884 # define TARGET_LINUX_SIGKILL 9
1885 { "SIGKILL", SIGKILL, TARGET_LINUX_SIGKILL },
1886 #endif
1887 #ifdef SIGUSR1
1888 # define TARGET_LINUX_SIGUSR1 10
1889 { "SIGUSR1", SIGUSR1, TARGET_LINUX_SIGUSR1 },
1890 #endif
1891 #ifdef SIGSEGV
1892 # define TARGET_LINUX_SIGSEGV 11
1893 { "SIGSEGV", SIGSEGV, TARGET_LINUX_SIGSEGV },
1894 #endif
1895 #ifdef SIGUSR2
1896 # define TARGET_LINUX_SIGUSR2 12
1897 { "SIGUSR2", SIGUSR2, TARGET_LINUX_SIGUSR2 },
1898 #endif
1899 #ifdef SIGPIPE
1900 # define TARGET_LINUX_SIGPIPE 13
1901 { "SIGPIPE", SIGPIPE, TARGET_LINUX_SIGPIPE },
1902 #endif
1903 #ifdef SIGALRM
1904 # define TARGET_LINUX_SIGALRM 14
1905 { "SIGALRM", SIGALRM, TARGET_LINUX_SIGALRM },
1906 #endif
1907 #ifdef SIGTERM
1908 # define TARGET_LINUX_SIGTERM 15
1909 { "SIGTERM", SIGTERM, TARGET_LINUX_SIGTERM },
1910 #endif
1911 #ifdef SIGSTKFLT
1912 # define TARGET_LINUX_SIGSTKFLT 16
1913 { "SIGSTKFLT", SIGSTKFLT, TARGET_LINUX_SIGSTKFLT },
1914 #endif
1915 #ifdef SIGCHLD
1916 # define TARGET_LINUX_SIGCHLD 17
1917 { "SIGCHLD", SIGCHLD, TARGET_LINUX_SIGCHLD },
1918 #endif
1919 #ifdef SIGCONT
1920 # define TARGET_LINUX_SIGCONT 18
1921 { "SIGCONT", SIGCONT, TARGET_LINUX_SIGCONT },
1922 #endif
1923 #ifdef SIGSTOP
1924 # define TARGET_LINUX_SIGSTOP 19
1925 { "SIGSTOP", SIGSTOP, TARGET_LINUX_SIGSTOP },
1926 #endif
1927 #ifdef SIGTSTP
1928 # define TARGET_LINUX_SIGTSTP 20
1929 { "SIGTSTP", SIGTSTP, TARGET_LINUX_SIGTSTP },
1930 #endif
1931 #ifdef SIGTTIN
1932 # define TARGET_LINUX_SIGTTIN 21
1933 { "SIGTTIN", SIGTTIN, TARGET_LINUX_SIGTTIN },
1934 #endif
1935 #ifdef SIGTTOU
1936 # define TARGET_LINUX_SIGTTOU 22
1937 { "SIGTTOU", SIGTTOU, TARGET_LINUX_SIGTTOU },
1938 #endif
1939 #ifdef SIGURG
1940 # define TARGET_LINUX_SIGURG 23
1941 { "SIGURG", SIGURG, TARGET_LINUX_SIGURG },
1942 #endif
1943 #ifdef SIGXCPU
1944 # define TARGET_LINUX_SIGXCPU 24
1945 { "SIGXCPU", SIGXCPU, TARGET_LINUX_SIGXCPU },
1946 #endif
1947 #ifdef SIGXFSZ
1948 # define TARGET_LINUX_SIGXFSZ 25
1949 { "SIGXFSZ", SIGXFSZ, TARGET_LINUX_SIGXFSZ },
1950 #endif
1951 #ifdef SIGVTALRM
1952 # define TARGET_LINUX_SIGVTALRM 26
1953 { "SIGVTALRM", SIGVTALRM, TARGET_LINUX_SIGVTALRM },
1954 #endif
1955 #ifdef SIGPROF
1956 # define TARGET_LINUX_SIGPROF 27
1957 { "SIGPROF", SIGPROF, TARGET_LINUX_SIGPROF },
1958 #endif
1959 #ifdef SIGWINCH
1960 # define TARGET_LINUX_SIGWINCH 28
1961 { "SIGWINCH", SIGWINCH, TARGET_LINUX_SIGWINCH },
1962 #endif
1963 #ifdef SIGIO
1964 # define TARGET_LINUX_SIGIO 29
1965 { "SIGIO", SIGIO, TARGET_LINUX_SIGIO },
1966 #endif
1967 #ifdef SIGPWR
1968 # define TARGET_LINUX_SIGPWR 30
1969 { "SIGPWR", SIGPWR, TARGET_LINUX_SIGPWR },
1970 #endif
1971 #ifdef SIGSYS
1972 # define TARGET_LINUX_SIGSYS 31
1973 { "SIGSYS", SIGSYS, TARGET_LINUX_SIGSYS },
1974 #endif
1975 #ifdef SIGUNUSED
1976 # define TARGET_LINUX_SIGUNUSED 31
1977 { "SIGUNUSED", SIGUNUSED, TARGET_LINUX_SIGUNUSED },
1978 #endif
1979 #ifdef SIG_BLOCK
1980 # define TARGET_LINUX_SIG_BLOCK 0
1981 { "SIG_BLOCK", SIG_BLOCK, TARGET_LINUX_SIG_BLOCK },
1982 #endif
1983 #ifdef SIG_UNBLOCK
1984 # define TARGET_LINUX_SIG_UNBLOCK 1
1985 { "SIG_UNBLOCK", SIG_UNBLOCK, TARGET_LINUX_SIG_UNBLOCK },
1986 #endif
1987 #ifdef SIG_SETMASK
1988 # define TARGET_LINUX_SIG_SETMASK 2
1989 { "SIG_SETMASK", SIG_SETMASK, TARGET_LINUX_SIG_SETMASK },
1990 #endif
1991 #ifdef SIGSTKSZ
1992 # define TARGET_LINUX_SIGSTKSZ 8192
1993 { "SIGSTKSZ", SIGSTKSZ, TARGET_LINUX_SIGSTKSZ },
1994 #endif
1995 { 0, -1, -1 }