Module Name: src
Committed By: christos
Date: Tue Apr 6 23:02:10 UTC 2010
Modified Files:
src/gnu/dist/gdb6/sim/ppc: emul_netbsd.c
Log Message:
update system call table to reflect reality.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 src/gnu/dist/gdb6/sim/ppc/emul_netbsd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/gnu/dist/gdb6/sim/ppc/emul_netbsd.c
diff -u src/gnu/dist/gdb6/sim/ppc/emul_netbsd.c:1.1.1.2 src/gnu/dist/gdb6/sim/ppc/emul_netbsd.c:1.2
--- src/gnu/dist/gdb6/sim/ppc/emul_netbsd.c:1.1.1.2 Sun Jul 2 16:29:05 2006
+++ src/gnu/dist/gdb6/sim/ppc/emul_netbsd.c Tue Apr 6 19:02:10 2010
@@ -1039,21 +1039,21 @@
/* 4 */ { do_write, "write" },
/* 5 */ { do_open, "open" },
/* 6 */ { do_close, "close" },
- /* 7 */ { 0, "wait4" },
+ { 0, }, /* 7 is old wait4 */
{ 0, }, /* 8 is old creat */
/* 9 */ { 0, "link" },
/* 10 */ { 0, "unlink" },
{ 0, }, /* 11 is obsolete execv */
/* 12 */ { 0, "chdir" },
/* 13 */ { 0, "fchdir" },
- /* 14 */ { 0, "mknod" },
+ { 0, }, /* 14 is old mknod */
/* 15 */ { 0, "chmod" },
/* 16 */ { 0, "chown" },
/* 17 */ { do_break, "break" },
- /* 18 */ { 0, "getfsstat" },
+ { 0, }, /* 18 is old getfsstat */
{ 0, }, /* 19 is old lseek */
/* 20 */ { do_getpid, "getpid" },
- /* 21 */ { 0, "mount" },
+ { 0, } /* 21 is old mount */
/* 22 */ { 0, "unmount" },
/* 23 */ { 0, "setuid" },
/* 24 */ { do_getuid, "getuid" },
@@ -1078,16 +1078,16 @@
/* 43 */ { do_getegid, "getegid" },
/* 44 */ { 0, "profil" },
/* 45 */ { 0, "ktrace" },
- /* 46 */ { 0, "sigaction" },
+ { 0, }, /* 46 is old sigaction */
/* 47 */ { do_getgid, "getgid" },
- /* 48 */ { do_sigprocmask, "sigprocmask" },
+ { 0, }, /* 48 is old sigprocmask */
/* 49 */ { 0, "getlogin" },
/* 50 */ { 0, "setlogin" },
/* 51 */ { 0, "acct" },
- /* 52 */ { 0, "sigpending" },
- /* 53 */ { 0, "sigaltstack" },
+ { 0, }, /* 52 is old sigpending */
+ { 0, }, /* 53 is old sigaltstack */
/* 54 */ { do_ioctl, "ioctl" },
- /* 55 */ { 0, "reboot" },
+ { 0, }, /* 55 is old reboot */
/* 56 */ { 0, "revoke" },
/* 57 */ { 0, "symlink" },
/* 58 */ { 0, "readlink" },
@@ -1097,7 +1097,7 @@
{ 0, }, /* 62 is old fstat */
{ 0, }, /* 63 is old getkerninfo */
{ 0, }, /* 64 is old getpagesize */
- /* 65 */ { 0, "msync" },
+ { 0, }, /* 65 is old msync */
/* 66 */ { 0, "vfork" },
{ 0, }, /* 67 is obsolete vread */
{ 0, }, /* 68 is obsolete vwrite */
@@ -1115,27 +1115,27 @@
/* 80 */ { 0, "setgroups" },
/* 81 */ { 0, "getpgrp" },
/* 82 */ { 0, "setpgid" },
- /* 83 */ { 0, "setitimer" },
+ { 0, }, /* 83 is old setitimer */
{ 0, }, /* 84 is old wait */
- /* 85 */ { 0, "swapon" },
- /* 86 */ { 0, "getitimer" },
+ { 0, }, /* 85 is old swapon */
+ { 0, }, /* 86 is old getitimer */
{ 0, }, /* 87 is old gethostname */
{ 0, }, /* 88 is old sethostname */
{ 0, }, /* 89 is old getdtablesize */
{ do_dup2, "dup2" },
{ 0, }, /* 91 */
/* 92 */ { do_fcntl, "fcntl" },
- /* 93 */ { 0, "select" },
+ { 0, }, /* 93 is old select */
{ 0, }, /* 94 */
/* 95 */ { 0, "fsync" },
/* 96 */ { 0, "setpriority" },
- /* 97 */ { 0, "socket" },
- /* 98 */ { 0, "connect" },
+ { 0, }, /* 97 is old socket */
+ { 0, }, /* 98 is old connect */
{ 0, }, /* 99 is old accept */
/* 100 */ { 0, "getpriority" },
{ 0, }, /* 101 is old send */
{ 0, }, /* 102 is old recv */
- /* 103 */ { 0, "sigreturn" },
+ { 0, }, /* 103 is old sigreturn */
/* 104 */ { 0, "bind" },
/* 105 */ { 0, "setsockopt" },
/* 106 */ { 0, "listen" },
@@ -1143,23 +1143,23 @@
{ 0, }, /* 108 is old sigvec */
{ 0, }, /* 109 is old sigblock */
{ 0, }, /* 110 is old sigsetmask */
- /* 111 */ { 0, "sigsuspend" },
+ { 0, }, /* 111 is old sigsuspend */
{ 0, }, /* 112 is old sigstack */
{ 0, }, /* 113 is old recvmsg */
{ 0, }, /* 114 is old sendmsg */
/* - is obsolete vtrace */ { 0, "vtrace 115" },
- /* 116 */ { do_gettimeofday, "gettimeofday" },
- /* 117 */ { do_getrusage, "getrusage" },
+ { 0, }, /* 116 is old gettimeofday */
+ { 0, }, /* 117 is old getrusage */
/* 118 */ { 0, "getsockopt" },
- /* 119 */ { 0, "resuba" },
+ /* - is obsolete resuba */ { 0, "resuba 119" },
/* 120 */ { 0, "readv" },
/* 121 */ { 0, "writev" },
- /* 122 */ { 0, "settimeofday" },
+ { 0, }, /* 122 is old settimeofday */
/* 123 */ { 0, "fchown" },
/* 124 */ { 0, "fchmod" },
{ 0, }, /* 125 is old recvfrom */
- { 0, }, /* 126 is old setreuid */
- { 0, }, /* 127 is old setregid */
+ /* 126 */ { 0, "setreuid" },
+ /* 127 */ { 0, "setregid" },
/* 128 */ { 0, "rename" },
{ 0, }, /* 129 is old truncate */
{ 0, }, /* 130 is old ftruncate */
@@ -1170,9 +1170,9 @@
/* 135 */ { 0, "socketpair" },
/* 136 */ { 0, "mkdir" },
/* 137 */ { 0, "rmdir" },
- /* 138 */ { 0, "utimes" },
+ { 0, }, /* 138 is old utimes */
{ 0, }, /* 139 is obsolete 4.2 sigreturn */
- /* 140 */ { 0, "adjtime" },
+ { 0, }, /* 140 is old adjtime */
{ 0, }, /* 141 is old getpeername */
{ 0, }, /* 142 is old gethostid */
{ 0, }, /* 143 is old sethostid */
@@ -1189,11 +1189,11 @@
{ 0, }, /* 154 */
/* 155 */ { 0, "nfssvc" },
{ 0, }, /* 156 is old getdirentries */
- /* 157 */ { 0, "statfs" },
- /* 158 */ { do_fstatfs, "fstatfs" },
+ { 0, }, /* 157 is old statfs */
+ { 0, }, /* 158 is old fstatfs */
{ 0, }, /* 159 */
{ 0, }, /* 160 */
- /* 161 */ { 0, "getfh" },
+ { 0, }, /* 161 is old getfh */
{ 0, }, /* 162 is old getdomainname */
{ 0, }, /* 163 is old setdomainname */
{ 0, }, /* 164 is old uname */
@@ -1201,14 +1201,14 @@
{ 0, }, /* 166 */
{ 0, }, /* 167 */
{ 0, }, /* 168 */
- /* 169 */ { 0, "semsys" },
- /* 170 */ { 0, "msgsys" },
- /* 171 */ { 0, "shmsys" },
+ { 0, }, /* 169 is old semsys */
+ { 0, }, /* 170 is old msgsys */
+ { 0, }, /* 171 is old shmsys */
{ 0, }, /* 172 */
- { 0, }, /* 173 */
- { 0, }, /* 174 */
- { 0, }, /* 175 */
- { 0, }, /* 176 */
+ /* 173 */ { 0, "pread" },
+ /* 174 */ { 0, "pwrite" },
+ { 0, }, /* 175 is old ntp_gettime */
+ /* 176 */ { 0, "ntp_adjtime" },
{ 0, }, /* 177 */
{ 0, }, /* 178 */
{ 0, }, /* 179 */
@@ -1220,15 +1220,15 @@
/* 185 */ { 0, "lfs_markv" },
/* 186 */ { 0, "lfs_segclean" },
/* 187 */ { 0, "lfs_segwait" },
- /* 188 */ { do_stat, "stat" },
- /* 189 */ { do_fstat, "fstat" },
- /* 190 */ { do_lstat, "lstat" },
+ { 0, }, /* 188 is old stat" */
+ { 0, }, /* 189 is old fstat */
+ { 0, }, /* 190 is old lstat */
/* 191 */ { 0, "pathconf" },
/* 192 */ { 0, "fpathconf" },
{ 0, }, /* 193 */
/* 194 */ { 0, "getrlimit" },
/* 195 */ { 0, "setrlimit" },
- /* 196 */ { do_getdirentries, "getdirentries" },
+ { 0, }, /* 196 is old getdirentries */
/* 197 */ { 0, "mmap" },
/* 198 */ { do___syscall, "__syscall" },
/* 199 */ { do_lseek, "lseek" },
@@ -1237,6 +1237,253 @@
/* 202 */ { do___sysctl, "__sysctl" },
/* 203 */ { 0, "mlock" },
/* 204 */ { 0, "munlock" },
+ /* 205 */ { 0, "undelete" },
+ { 0, }, /* 206 is old futimes */
+ /* 207 */ { 0, "getpgid" },
+ /* 208 */ { 0, "reboot" },
+ /* 209 */ { 0, "poll" },
+ { 0, }, /* 210 */
+ { 0, }, /* 211 */
+ { 0, }, /* 212 */
+ { 0, }, /* 213 */
+ { 0, }, /* 214 */
+ { 0, }, /* 215 */
+ { 0, }, /* 216 */
+ { 0, }, /* 217 */
+ { 0, }, /* 218 */
+ { 0, }, /* 219 */
+ { 0, }, /* 220 is old semctl */
+ /* 221 */ { 0, "semget" },
+ /* 222 */ { 0, "semop" },
+ /* 223 */ { 0, "semconfig" },
+ { 0, }, /* 224 is old msgctl */
+ /* 225 */ { 0, "msgget" },
+ /* 226 */ { 0, "msgsnd" },
+ /* 227 */ { 0, "msgrcv" },
+ /* 228 */ { 0, "shmat" },
+ { 0, }, /* 229 is old shmctl */
+ /* 230 */ { 0, "shmdt" },
+ /* 231 */ { 0, "shmget" },
+ { 0, }, /* 232 is old clock_gettime */
+ { 0, }, /* 233 is old clock_settime */
+ { 0, }, /* 234 is old clock_getres */
+ /* 235 */ { 0, "timer_create" },
+ /* 236 */ { 0, "timer_delete" },
+ { 0, }, /* 237 is old timer_settime */
+ { 0, }, /* 238 is old timer_gettime */
+ /* 239 */ { 0, "timer_getoverrun" },
+ { 0, }, /* 240 is old nanosleep */
+ /* 241 */ { 0, "fdatasync" },
+ /* 242 */ { 0, "mlockall" },
+ /* 243 */ { 0, "munlockall" },
+ { 0, }, /* 244 is old sigtimedwait */
+ { 0, }, /* 245 */
+ /* 246 */ { 0, "modctl" },
+ /* 247 */ { 0, "_ksem_init" },
+ /* 248 */ { 0, "_ksem_open" },
+ /* 249 */ { 0, "_ksem_unlink" },
+ /* 250 */ { 0, "_ksem_close" },
+ /* 251 */ { 0, "_ksem_post" },
+ /* 252 */ { 0, "_ksem_wait" },
+ /* 253 */ { 0, "_ksem_trywait" },
+ /* 254 */ { 0, "_ksem_getvalue" },
+ /* 255 */ { 0, "_ksem_destroy" },
+ { 0, }, /* 256 */
+ /* 257 */ { 0, "mq_open" },
+ /* 258 */ { 0, "mq_close" },
+ /* 259 */ { 0, "mq_unlink" },
+ /* 260 */ { 0, "mq_getattr" },
+ /* 261 */ { 0, "mq_setattr" },
+ /* 262 */ { 0, "mq_notify" },
+ /* 263 */ { 0, "mq_send" },
+ /* 264 */ { 0, "mq_receive" },
+ { 0, }, /* 265 is old mq_timedsend */
+ { 0, }, /* 266 is old mq_timedrecive */
+ { 0, }, /* 267 */
+ { 0, }, /* 268 */
+ { 0, }, /* 269 */
+ /* 270 */ { 0, "__posix_rename" },
+ /* 271 */ { 0, "swapctl" },
+ { 0, }, /* 272 is old getdents */
+ /* 273 */ { 0, "minherit" },
+ /* 274 */ { 0, "lchmod" },
+ /* 275 */ { 0, "lchown" },
+ { 0, }, /* 276 is old lutimes */
+ /* 277 */ { 0, "__msync13" },
+ { 0, }, /* 278 is old stat */
+ { 0, }, /* 279 is old fstat */
+ { 0, }, /* 280 is old lstat */
+ /* 281 */ { 0, "__sigaltstack13" },
+ /* 282 */ { 0, "__vfork14" },
+ /* 283 */ { 0, "__posix_chown" },
+ /* 284 */ { 0, "__posix_fchown" },
+ /* 285 */ { 0, "__posix_lchown" },
+ /* 286 */ { 0, "getsid" },
+ /* 287 */ { 0, "__clone" },
+ /* 288 */ { 0, "fktrace" },
+ /* 289 */ { 0, "preadv" },
+ /* 290 */ { 0, "pwritev" },
+ { 0, }, /* 291 is old sigaction */
+ /* 292 */ { 0, "__sigpending14" },
+ /* 293 */ { do_sigprocmask, "__sigprocmask14" },
+ /* 294 */ { 0, "__sigsuspend14" },
+ /* 295 */ { 0, "__sigreturn14" },
+ /* 296 */ { 0, "__getcwd" },
+ /* 297 */ { 0, "fchroot" },
+ { 0, }, /* 298 is old fhopen */
+ { 0, }, /* 299 is old fhstat */
+ { 0, }, /* 300 is old fhstatfs */
+ { 0, }, /* 301 is old semctl */
+ { 0, }, /* 302 is old msgctl */
+ { 0, }, /* 303 is old shmctl */
+ /* 304 */ { 0, "lchflags" },
+ /* 305 */ { 0, "issetugid" },
+ /* 306 */ { 0, "utrace" },
+ /* 307 */ { 0, "getcontext" },
+ /* 308 */ { 0, "setcontext" },
+ /* 309 */ { 0, "_lwp_create" },
+ /* 310 */ { 0, "_lwp_exit" },
+ /* 311 */ { 0, "_lwp_self" },
+ /* 312 */ { 0, "_lwp_wait" },
+ /* 313 */ { 0, "_lwp_suspend" },
+ /* 314 */ { 0, "_lwp_continue" },
+ /* 315 */ { 0, "_lwp_wakeup" },
+ /* 316 */ { 0, "_lwp_getprivate" },
+ /* 317 */ { 0, "_lwp_setprivate" },
+ /* 318 */ { 0, "_lwp_kill" },
+ /* 319 */ { 0, "_lwp_detach" },
+ { 0, }, /* 320 is old _lwp_park */
+ /* 321 */ { 0, "_lwp_unpark" },
+ /* 322 */ { 0, "_lwp_unpark_all" },
+ /* 323 */ { 0, "_lwp_setname" },
+ /* 324 */ { 0, "_lwp_getname" },
+ /* 325 */ { 0, "_lwp_ctl" },
+ { 0, }, /* 326 */
+ { 0, }, /* 327 */
+ { 0, }, /* 328 */
+ { 0, }, /* 329 */
+ /* 330 */ { 0, "sa_register" },
+ /* 331 */ { 0, "sa_stacks" },
+ /* 332 */ { 0, "sa_enable" },
+ /* 333 */ { 0, "sa_setconcurrency" },
+ /* 334 */ { 0, "sa_yield" },
+ /* 335 */ { 0, "sa_preempt" },
+ { 0, }, /* 336 */
+ { 0, }, /* 337 */
+ { 0, }, /* 338 */
+ { 0, }, /* 339 */
+ /* 340 */ { 0, "__sigaction_sigtramp" },
+ /* 341 */ { 0, "pmc_get_info" },
+ /* 342 */ { 0, "pmc_control" },
+ /* 343 */ { 0, "rasctl" },
+ /* 344 */ { 0, "kqueue" },
+ { 0, }, /* 345 is old kevent */
+ /* 346 */ { 0, "_sched_setparam" },
+ /* 347 */ { 0, "_sched_getparam" },
+ /* 348 */ { 0, "_sched_setaffinity" },
+ /* 349 */ { 0, "_sched_getaffinity" },
+ /* 350 */ { 0, "sched_yield" },
+ { 0, }, /* 351 */
+ { 0, }, /* 352 */
+ { 0, }, /* 353 */
+ /* 354 */ { 0, "fsync_range" },
+ /* 355 */ { 0, "uuidgen" },
+ /* 356 */ { 0, "getvfsstat" },
+ /* 357 */ { 0, "statvfs1" },
+ /* 358 */ { do_fstatvfs, "fstatvfs1" },
+ { 0, }, /* 359 is old fhstatvfs1 */
+ /* 360 */ { 0, "extattrctl" },
+ /* 361 */ { 0, "extattr_set_file" },
+ /* 362 */ { 0, "extattr_get_file" },
+ /* 363 */ { 0, "extattr_delete_file" },
+ /* 364 */ { 0, "extattr_set_fd" },
+ /* 365 */ { 0, "extattr_get_fd" },
+ /* 366 */ { 0, "extattr_delete_fd" },
+ /* 367 */ { 0, "extattr_set_link" },
+ /* 368 */ { 0, "extattr_get_link" },
+ /* 369 */ { 0, "extattr_delete_link" },
+ /* 370 */ { 0, "extattr_list_fd" },
+ /* 371 */ { 0, "extattr_list_file" },
+ /* 372 */ { 0, "extattr_list_link" },
+ { 0, }, /* 373 is old pselect */
+ { 0, }, /* 374 is old pollts */
+ /* 375 */ { 0, "setxattr" },
+ /* 376 */ { 0, "lsetxattr" },
+ /* 377 */ { 0, "fsetxattr" },
+ /* 378 */ { 0, "getxattr" },
+ /* 379 */ { 0, "lgetxattr" },
+ /* 380 */ { 0, "fgetxattr" },
+ /* 381 */ { 0, "listxattr" },
+ /* 382 */ { 0, "llistxattr" },
+ /* 383 */ { 0, "flistxattr" },
+ /* 384 */ { 0, "removexattr" },
+ /* 385 */ { 0, "lremovexattr" },
+ /* 386 */ { 0, "fremovexattr" },
+ { 0, }, /* 387 is old stat */
+ { 0, }, /* 388 is old fstat */
+ { 0, }, /* 389 is old lstat */
+ /* 390 */ { do_getdirentries, "__getdents30" },
+ { 0, }, /* 391 is old posix_fadvise */
+ { 0, }, /* 392 is old fhstat */
+ { 0, }, /* 393 is old ntp_gettime */
+ /* 394 */ { 0, "__socket30" },
+ /* 395 */ { 0, "__getfh30" },
+ /* 396 */ { 0, "__fhopen40" },
+ /* 397 */ { 0, "__fhstatvfs140" },
+ { 0, }, /* 398 is old fhstat */
+ /* 399 */ { 0, "aio_cancel" },
+ /* 400 */ { 0, "aio_error" },
+ /* 401 */ { 0, "aio_fsync" },
+ /* 402 */ { 0, "aio_read" },
+ /* 403 */ { 0, "aio_return" },
+ { 0, }, /* 404 is old aio_suspend */
+ /* 405 */ { 0, "aio_write" },
+ /* 406 */ { 0, "lio_listio" },
+ { 0, }, /* 407 */
+ { 0, }, /* 408 */
+ { 0, }, /* 409 */
+ /* 410 */ { 0, "__mount50" },
+ /* 411 */ { 0, "mremap" },
+ /* 412 */ { 0, "pset_create" },
+ /* 413 */ { 0, "pset_destroy" },
+ /* 414 */ { 0, "pset_assign" },
+ /* 415 */ { 0, "_pset_bind" },
+ /* 416 */ { 0, "__posix_fadvise50" },
+ /* 417 */ { 0, "__select50" },
+ /* 418 */ { do_gettimeofday, "__gettimeofday50" },
+ /* 419 */ { 0, "__settimeofday50" },
+ /* 420 */ { 0, "__utimes50" },
+ /* 421 */ { 0, "__adjtime50" },
+ /* 422 */ { 0, "__lfs_segwait50" },
+ /* 423 */ { 0, "__futimes50" },
+ /* 424 */ { 0, "__lutimes50" },
+ /* 425 */ { 0, "__setitimer50" },
+ /* 426 */ { 0, "__getitimer50" },
+ /* 427 */ { 0, "__clock_gettime50" },
+ /* 428 */ { 0, "__clock_settime50" },
+ /* 429 */ { 0, "__clock_getres50" },
+ /* 430 */ { 0, "__nanosleep50" },
+ /* 431 */ { 0, "____sigtimedwait50" },
+ /* 432 */ { 0, "__mq_timedsend50" },
+ /* 433 */ { 0, "__mq_timedreceive50" },
+ /* 434 */ { 0, "____lwp_park50" },
+ /* 435 */ { 0, "__kevent50" },
+ /* 436 */ { 0, "__pselect50" },
+ /* 437 */ { 0, "__pollts50" },
+ /* 438 */ { 0, "__aio_suspend50" },
+ /* 439 */ { do_stat, "__stat50" },
+ /* 440 */ { do_fstat, "__fstat50" },
+ /* 441 */ { do_lstat, "__lstat50" },
+ /* 442 */ { 0, "____semctl50" },
+ /* 443 */ { 0, "__shmctl50" },
+ /* 444 */ { 0, "__msgctl50" },
+ /* 445 */ { do_getrusage, "__getrusage50" },
+ /* 446 */ { 0, "__timer_settime50" },
+ /* 447 */ { 0, "__timer_gettime50" },
+ /* 448 */ { 0, "__ntp_gettime50" },
+ /* 449 */ { 0, "__wait450" },
+ /* 450 */ { 0, "__mknod50" },
+ /* 451 */ { 0, "__fhstat50" },
};
static char *(netbsd_error_names[]) = {