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