bsd-user: regenerate FreeBSD's system call numbers
Recreate the FreeBSD system call numbers from current sys/syscall.h. Since this isn't guaranteed to be on all systems, continue the practice of generating it with some variation on: sed -e s/SYS_/TARGET_NR_/ < $FREEBSD_SRC/sys/syscall.h > syscall_nr.h until a more comprehensive system can be put in place. Signed-off-by: Warner Losh <imp@FreeBSD.org> Message-Id: <20201218205451.10559-2-imp@freebsd.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
4cc5752303
commit
4d306e59cb
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* System call numbers.
|
||||
*
|
||||
* created from FreeBSD: releng/9.1/sys/kern/syscalls.master 229723
|
||||
* 2012-01-06 19:29:16Z jhb
|
||||
* DO NOT EDIT-- this file is automatically @generated.
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#define TARGET_FREEBSD_NR_syscall 0
|
||||
|
@ -19,11 +19,11 @@
|
|||
/* 11 is obsolete execv */
|
||||
#define TARGET_FREEBSD_NR_chdir 12
|
||||
#define TARGET_FREEBSD_NR_fchdir 13
|
||||
#define TARGET_FREEBSD_NR_mknod 14
|
||||
#define TARGET_FREEBSD_NR_freebsd11_mknod 14
|
||||
#define TARGET_FREEBSD_NR_chmod 15
|
||||
#define TARGET_FREEBSD_NR_chown 16
|
||||
#define TARGET_FREEBSD_NR_break 17
|
||||
#define TARGET_FREEBSD_NR_freebsd4_getfsstat 18
|
||||
/* 18 is freebsd4 getfsstat */
|
||||
/* 19 is old lseek */
|
||||
#define TARGET_FREEBSD_NR_getpid 20
|
||||
#define TARGET_FREEBSD_NR_mount 21
|
||||
|
@ -47,7 +47,7 @@
|
|||
#define TARGET_FREEBSD_NR_getppid 39
|
||||
/* 40 is old lstat */
|
||||
#define TARGET_FREEBSD_NR_dup 41
|
||||
#define TARGET_FREEBSD_NR_pipe 42
|
||||
#define TARGET_FREEBSD_NR_freebsd10_pipe 42
|
||||
#define TARGET_FREEBSD_NR_getegid 43
|
||||
#define TARGET_FREEBSD_NR_profil 44
|
||||
#define TARGET_FREEBSD_NR_ktrace 45
|
||||
|
@ -77,7 +77,7 @@
|
|||
#define TARGET_FREEBSD_NR_sbrk 69
|
||||
#define TARGET_FREEBSD_NR_sstk 70
|
||||
/* 71 is old mmap */
|
||||
#define TARGET_FREEBSD_NR_vadvise 72
|
||||
#define TARGET_FREEBSD_NR_freebsd11_vadvise 72
|
||||
#define TARGET_FREEBSD_NR_munmap 73
|
||||
#define TARGET_FREEBSD_NR_mprotect 74
|
||||
#define TARGET_FREEBSD_NR_madvise 75
|
||||
|
@ -149,7 +149,6 @@
|
|||
/* 144 is old getrlimit */
|
||||
/* 145 is old setrlimit */
|
||||
/* 146 is old killpg */
|
||||
#define TARGET_FREEBSD_NR_killpg 146 /* COMPAT */
|
||||
#define TARGET_FREEBSD_NR_setsid 147
|
||||
#define TARGET_FREEBSD_NR_quotactl 148
|
||||
/* 149 is old quota */
|
||||
|
@ -157,38 +156,42 @@
|
|||
#define TARGET_FREEBSD_NR_nlm_syscall 154
|
||||
#define TARGET_FREEBSD_NR_nfssvc 155
|
||||
/* 156 is old getdirentries */
|
||||
#define TARGET_FREEBSD_NR_freebsd4_statfs 157
|
||||
#define TARGET_FREEBSD_NR_freebsd4_fstatfs 158
|
||||
/* 157 is freebsd4 statfs */
|
||||
/* 158 is freebsd4 fstatfs */
|
||||
#define TARGET_FREEBSD_NR_lgetfh 160
|
||||
#define TARGET_FREEBSD_NR_getfh 161
|
||||
#define TARGET_FREEBSD_NR_freebsd4_getdomainname 162
|
||||
#define TARGET_FREEBSD_NR_freebsd4_setdomainname 163
|
||||
#define TARGET_FREEBSD_NR_freebsd4_uname 164
|
||||
/* 162 is freebsd4 getdomainname */
|
||||
/* 163 is freebsd4 setdomainname */
|
||||
/* 164 is freebsd4 uname */
|
||||
#define TARGET_FREEBSD_NR_sysarch 165
|
||||
#define TARGET_FREEBSD_NR_rtprio 166
|
||||
#define TARGET_FREEBSD_NR_semsys 169
|
||||
#define TARGET_FREEBSD_NR_msgsys 170
|
||||
#define TARGET_FREEBSD_NR_shmsys 171
|
||||
#define TARGET_FREEBSD_NR_freebsd6_pread 173
|
||||
#define TARGET_FREEBSD_NR_freebsd6_pwrite 174
|
||||
/* 173 is freebsd6 pread */
|
||||
/* 174 is freebsd6 pwrite */
|
||||
#define TARGET_FREEBSD_NR_setfib 175
|
||||
#define TARGET_FREEBSD_NR_ntp_adjtime 176
|
||||
#define TARGET_FREEBSD_NR_setgid 181
|
||||
#define TARGET_FREEBSD_NR_setegid 182
|
||||
#define TARGET_FREEBSD_NR_seteuid 183
|
||||
#define TARGET_FREEBSD_NR_stat 188
|
||||
#define TARGET_FREEBSD_NR_fstat 189
|
||||
#define TARGET_FREEBSD_NR_lstat 190
|
||||
/* 184 is obsolete lfs_bmapv */
|
||||
/* 185 is obsolete lfs_markv */
|
||||
/* 186 is obsolete lfs_segclean */
|
||||
/* 187 is obsolete lfs_segwait */
|
||||
#define TARGET_FREEBSD_NR_freebsd11_stat 188
|
||||
#define TARGET_FREEBSD_NR_freebsd11_fstat 189
|
||||
#define TARGET_FREEBSD_NR_freebsd11_lstat 190
|
||||
#define TARGET_FREEBSD_NR_pathconf 191
|
||||
#define TARGET_FREEBSD_NR_fpathconf 192
|
||||
#define TARGET_FREEBSD_NR_getrlimit 194
|
||||
#define TARGET_FREEBSD_NR_setrlimit 195
|
||||
#define TARGET_FREEBSD_NR_getdirentries 196
|
||||
#define TARGET_FREEBSD_NR_freebsd6_mmap 197
|
||||
#define TARGET_FREEBSD_NR_freebsd11_getdirentries 196
|
||||
/* 197 is freebsd6 mmap */
|
||||
#define TARGET_FREEBSD_NR___syscall 198
|
||||
#define TARGET_FREEBSD_NR_freebsd6_lseek 199
|
||||
#define TARGET_FREEBSD_NR_freebsd6_truncate 200
|
||||
#define TARGET_FREEBSD_NR_freebsd6_ftruncate 201
|
||||
/* 199 is freebsd6 lseek */
|
||||
/* 200 is freebsd6 truncate */
|
||||
/* 201 is freebsd6 ftruncate */
|
||||
#define TARGET_FREEBSD_NR___sysctl 202
|
||||
#define TARGET_FREEBSD_NR_mlock 203
|
||||
#define TARGET_FREEBSD_NR_munlock 204
|
||||
|
@ -199,6 +202,7 @@
|
|||
#define TARGET_FREEBSD_NR_freebsd7___semctl 220
|
||||
#define TARGET_FREEBSD_NR_semget 221
|
||||
#define TARGET_FREEBSD_NR_semop 222
|
||||
/* 223 is obsolete semconfig */
|
||||
#define TARGET_FREEBSD_NR_freebsd7_msgctl 224
|
||||
#define TARGET_FREEBSD_NR_msgget 225
|
||||
#define TARGET_FREEBSD_NR_msgsnd 226
|
||||
|
@ -216,28 +220,33 @@
|
|||
#define TARGET_FREEBSD_NR_ktimer_gettime 238
|
||||
#define TARGET_FREEBSD_NR_ktimer_getoverrun 239
|
||||
#define TARGET_FREEBSD_NR_nanosleep 240
|
||||
#define TARGET_FREEBSD_NR_ffclock_getcounter 241
|
||||
#define TARGET_FREEBSD_NR_ffclock_setestimate 242
|
||||
#define TARGET_FREEBSD_NR_ffclock_getestimate 243
|
||||
#define TARGET_FREEBSD_NR_clock_nanosleep 244
|
||||
#define TARGET_FREEBSD_NR_clock_getcpuclockid2 247
|
||||
#define TARGET_FREEBSD_NR_ntp_gettime 248
|
||||
#define TARGET_FREEBSD_NR_minherit 250
|
||||
#define TARGET_FREEBSD_NR_rfork 251
|
||||
#define TARGET_FREEBSD_NR_openbsd_poll 252
|
||||
/* 252 is obsolete openbsd_poll */
|
||||
#define TARGET_FREEBSD_NR_issetugid 253
|
||||
#define TARGET_FREEBSD_NR_lchown 254
|
||||
#define TARGET_FREEBSD_NR_aio_read 255
|
||||
#define TARGET_FREEBSD_NR_aio_write 256
|
||||
#define TARGET_FREEBSD_NR_lio_listio 257
|
||||
#define TARGET_FREEBSD_NR_getdents 272
|
||||
#define TARGET_FREEBSD_NR_freebsd11_getdents 272
|
||||
#define TARGET_FREEBSD_NR_lchmod 274
|
||||
#define TARGET_FREEBSD_NR_netbsd_lchown 275
|
||||
/* 275 is obsolete netbsd_lchown */
|
||||
#define TARGET_FREEBSD_NR_lutimes 276
|
||||
#define TARGET_FREEBSD_NR_netbsd_msync 277
|
||||
#define TARGET_FREEBSD_NR_nstat 278
|
||||
#define TARGET_FREEBSD_NR_nfstat 279
|
||||
#define TARGET_FREEBSD_NR_nlstat 280
|
||||
/* 277 is obsolete netbsd_msync */
|
||||
#define TARGET_FREEBSD_NR_freebsd11_nstat 278
|
||||
#define TARGET_FREEBSD_NR_freebsd11_nfstat 279
|
||||
#define TARGET_FREEBSD_NR_freebsd11_nlstat 280
|
||||
#define TARGET_FREEBSD_NR_preadv 289
|
||||
#define TARGET_FREEBSD_NR_pwritev 290
|
||||
#define TARGET_FREEBSD_NR_freebsd4_fhstatfs 297
|
||||
/* 297 is freebsd4 fhstatfs */
|
||||
#define TARGET_FREEBSD_NR_fhopen 298
|
||||
#define TARGET_FREEBSD_NR_fhstat 299
|
||||
#define TARGET_FREEBSD_NR_freebsd11_fhstat 299
|
||||
#define TARGET_FREEBSD_NR_modnext 300
|
||||
#define TARGET_FREEBSD_NR_modstat 301
|
||||
#define TARGET_FREEBSD_NR_modfnext 302
|
||||
|
@ -256,9 +265,9 @@
|
|||
#define TARGET_FREEBSD_NR_aio_suspend 315
|
||||
#define TARGET_FREEBSD_NR_aio_cancel 316
|
||||
#define TARGET_FREEBSD_NR_aio_error 317
|
||||
#define TARGET_FREEBSD_NR_oaio_read 318
|
||||
#define TARGET_FREEBSD_NR_oaio_write 319
|
||||
#define TARGET_FREEBSD_NR_olio_listio 320
|
||||
/* 318 is freebsd6 aio_read */
|
||||
/* 319 is freebsd6 aio_write */
|
||||
/* 320 is freebsd6 lio_listio */
|
||||
#define TARGET_FREEBSD_NR_yield 321
|
||||
/* 322 is obsolete thr_sleep */
|
||||
/* 323 is obsolete thr_wakeup */
|
||||
|
@ -274,15 +283,15 @@
|
|||
#define TARGET_FREEBSD_NR_sched_get_priority_min 333
|
||||
#define TARGET_FREEBSD_NR_sched_rr_get_interval 334
|
||||
#define TARGET_FREEBSD_NR_utrace 335
|
||||
#define TARGET_FREEBSD_NR_freebsd4_sendfile 336
|
||||
/* 336 is freebsd4 sendfile */
|
||||
#define TARGET_FREEBSD_NR_kldsym 337
|
||||
#define TARGET_FREEBSD_NR_jail 338
|
||||
#define TARGET_FREEBSD_NR_nnpfs_syscall 339
|
||||
#define TARGET_FREEBSD_NR_sigprocmask 340
|
||||
#define TARGET_FREEBSD_NR_sigsuspend 341
|
||||
#define TARGET_FREEBSD_NR_freebsd4_sigaction 342
|
||||
/* 342 is freebsd4 sigaction */
|
||||
#define TARGET_FREEBSD_NR_sigpending 343
|
||||
#define TARGET_FREEBSD_NR_freebsd4_sigreturn 344
|
||||
/* 344 is freebsd4 sigreturn */
|
||||
#define TARGET_FREEBSD_NR_sigtimedwait 345
|
||||
#define TARGET_FREEBSD_NR_sigwaitinfo 346
|
||||
#define TARGET_FREEBSD_NR___acl_get_file 347
|
||||
|
@ -301,14 +310,26 @@
|
|||
#define TARGET_FREEBSD_NR_getresuid 360
|
||||
#define TARGET_FREEBSD_NR_getresgid 361
|
||||
#define TARGET_FREEBSD_NR_kqueue 362
|
||||
#define TARGET_FREEBSD_NR_kevent 363
|
||||
#define TARGET_FREEBSD_NR_freebsd11_kevent 363
|
||||
/* 364 is obsolete __cap_get_proc */
|
||||
/* 365 is obsolete __cap_set_proc */
|
||||
/* 366 is obsolete __cap_get_fd */
|
||||
/* 367 is obsolete __cap_get_file */
|
||||
/* 368 is obsolete __cap_set_fd */
|
||||
/* 369 is obsolete __cap_set_file */
|
||||
#define TARGET_FREEBSD_NR_extattr_set_fd 371
|
||||
#define TARGET_FREEBSD_NR_extattr_get_fd 372
|
||||
#define TARGET_FREEBSD_NR_extattr_delete_fd 373
|
||||
#define TARGET_FREEBSD_NR___setugid 374
|
||||
/* 375 is obsolete nfsclnt */
|
||||
#define TARGET_FREEBSD_NR_eaccess 376
|
||||
#define TARGET_FREEBSD_NR_afs3_syscall 377
|
||||
#define TARGET_FREEBSD_NR_nmount 378
|
||||
/* 379 is obsolete kse_exit */
|
||||
/* 380 is obsolete kse_wakeup */
|
||||
/* 381 is obsolete kse_create */
|
||||
/* 382 is obsolete kse_thr_interrupt */
|
||||
/* 383 is obsolete kse_release */
|
||||
#define TARGET_FREEBSD_NR___mac_get_proc 384
|
||||
#define TARGET_FREEBSD_NR___mac_set_proc 385
|
||||
#define TARGET_FREEBSD_NR___mac_get_fd 386
|
||||
|
@ -320,10 +341,10 @@
|
|||
#define TARGET_FREEBSD_NR_uuidgen 392
|
||||
#define TARGET_FREEBSD_NR_sendfile 393
|
||||
#define TARGET_FREEBSD_NR_mac_syscall 394
|
||||
#define TARGET_FREEBSD_NR_getfsstat 395
|
||||
#define TARGET_FREEBSD_NR_statfs 396
|
||||
#define TARGET_FREEBSD_NR_fstatfs 397
|
||||
#define TARGET_FREEBSD_NR_fhstatfs 398
|
||||
#define TARGET_FREEBSD_NR_freebsd11_getfsstat 395
|
||||
#define TARGET_FREEBSD_NR_freebsd11_statfs 396
|
||||
#define TARGET_FREEBSD_NR_freebsd11_fstatfs 397
|
||||
#define TARGET_FREEBSD_NR_freebsd11_fhstatfs 398
|
||||
#define TARGET_FREEBSD_NR_ksem_close 400
|
||||
#define TARGET_FREEBSD_NR_ksem_post 401
|
||||
#define TARGET_FREEBSD_NR_ksem_wait 402
|
||||
|
@ -355,12 +376,11 @@
|
|||
#define TARGET_FREEBSD_NR_thr_exit 431
|
||||
#define TARGET_FREEBSD_NR_thr_self 432
|
||||
#define TARGET_FREEBSD_NR_thr_kill 433
|
||||
#define TARGET_FREEBSD_NR__umtx_lock 434
|
||||
#define TARGET_FREEBSD_NR__umtx_unlock 435
|
||||
#define TARGET_FREEBSD_NR_jail_attach 436
|
||||
#define TARGET_FREEBSD_NR_extattr_list_fd 437
|
||||
#define TARGET_FREEBSD_NR_extattr_list_file 438
|
||||
#define TARGET_FREEBSD_NR_extattr_list_link 439
|
||||
/* 440 is obsolete kse_switchin */
|
||||
#define TARGET_FREEBSD_NR_ksem_timedwait 441
|
||||
#define TARGET_FREEBSD_NR_thr_suspend 442
|
||||
#define TARGET_FREEBSD_NR_thr_wake 443
|
||||
|
@ -398,7 +418,7 @@
|
|||
#define TARGET_FREEBSD_NR_truncate 479
|
||||
#define TARGET_FREEBSD_NR_ftruncate 480
|
||||
#define TARGET_FREEBSD_NR_thr_kill2 481
|
||||
#define TARGET_FREEBSD_NR_shm_open 482
|
||||
#define TARGET_FREEBSD_NR_freebsd12_shm_open 482
|
||||
#define TARGET_FREEBSD_NR_shm_unlink 483
|
||||
#define TARGET_FREEBSD_NR_cpuset 484
|
||||
#define TARGET_FREEBSD_NR_cpuset_setid 485
|
||||
|
@ -409,12 +429,12 @@
|
|||
#define TARGET_FREEBSD_NR_fchmodat 490
|
||||
#define TARGET_FREEBSD_NR_fchownat 491
|
||||
#define TARGET_FREEBSD_NR_fexecve 492
|
||||
#define TARGET_FREEBSD_NR_fstatat 493
|
||||
#define TARGET_FREEBSD_NR_freebsd11_fstatat 493
|
||||
#define TARGET_FREEBSD_NR_futimesat 494
|
||||
#define TARGET_FREEBSD_NR_linkat 495
|
||||
#define TARGET_FREEBSD_NR_mkdirat 496
|
||||
#define TARGET_FREEBSD_NR_mkfifoat 497
|
||||
#define TARGET_FREEBSD_NR_mknodat 498
|
||||
#define TARGET_FREEBSD_NR_freebsd11_mknodat 498
|
||||
#define TARGET_FREEBSD_NR_openat 499
|
||||
#define TARGET_FREEBSD_NR_readlinkat 500
|
||||
#define TARGET_FREEBSD_NR_renameat 501
|
||||
|
@ -425,13 +445,13 @@
|
|||
#define TARGET_FREEBSD_NR_jail_get 506
|
||||
#define TARGET_FREEBSD_NR_jail_set 507
|
||||
#define TARGET_FREEBSD_NR_jail_remove 508
|
||||
#define TARGET_FREEBSD_NR_closefrom 509
|
||||
#define TARGET_FREEBSD_NR_freebsd12_closefrom 509
|
||||
#define TARGET_FREEBSD_NR___semctl 510
|
||||
#define TARGET_FREEBSD_NR_msgctl 511
|
||||
#define TARGET_FREEBSD_NR_shmctl 512
|
||||
#define TARGET_FREEBSD_NR_lpathconf 513
|
||||
#define TARGET_FREEBSD_NR_cap_new 514
|
||||
#define TARGET_FREEBSD_NR_cap_getrights 515
|
||||
/* 514 is obsolete cap_new */
|
||||
#define TARGET_FREEBSD_NR___cap_rights_get 515
|
||||
#define TARGET_FREEBSD_NR_cap_enter 516
|
||||
#define TARGET_FREEBSD_NR_cap_getmode 517
|
||||
#define TARGET_FREEBSD_NR_pdfork 518
|
||||
|
@ -447,4 +467,49 @@
|
|||
#define TARGET_FREEBSD_NR_rctl_remove_rule 529
|
||||
#define TARGET_FREEBSD_NR_posix_fallocate 530
|
||||
#define TARGET_FREEBSD_NR_posix_fadvise 531
|
||||
#define TARGET_FREEBSD_NR_MAXSYSCALL 532
|
||||
#define TARGET_FREEBSD_NR_wait6 532
|
||||
#define TARGET_FREEBSD_NR_cap_rights_limit 533
|
||||
#define TARGET_FREEBSD_NR_cap_ioctls_limit 534
|
||||
#define TARGET_FREEBSD_NR_cap_ioctls_get 535
|
||||
#define TARGET_FREEBSD_NR_cap_fcntls_limit 536
|
||||
#define TARGET_FREEBSD_NR_cap_fcntls_get 537
|
||||
#define TARGET_FREEBSD_NR_bindat 538
|
||||
#define TARGET_FREEBSD_NR_connectat 539
|
||||
#define TARGET_FREEBSD_NR_chflagsat 540
|
||||
#define TARGET_FREEBSD_NR_accept4 541
|
||||
#define TARGET_FREEBSD_NR_pipe2 542
|
||||
#define TARGET_FREEBSD_NR_aio_mlock 543
|
||||
#define TARGET_FREEBSD_NR_procctl 544
|
||||
#define TARGET_FREEBSD_NR_ppoll 545
|
||||
#define TARGET_FREEBSD_NR_futimens 546
|
||||
#define TARGET_FREEBSD_NR_utimensat 547
|
||||
/* 548 is obsolete numa_getaffinity */
|
||||
/* 549 is obsolete numa_setaffinity */
|
||||
#define TARGET_FREEBSD_NR_fdatasync 550
|
||||
#define TARGET_FREEBSD_NR_fstat 551
|
||||
#define TARGET_FREEBSD_NR_fstatat 552
|
||||
#define TARGET_FREEBSD_NR_fhstat 553
|
||||
#define TARGET_FREEBSD_NR_getdirentries 554
|
||||
#define TARGET_FREEBSD_NR_statfs 555
|
||||
#define TARGET_FREEBSD_NR_fstatfs 556
|
||||
#define TARGET_FREEBSD_NR_getfsstat 557
|
||||
#define TARGET_FREEBSD_NR_fhstatfs 558
|
||||
#define TARGET_FREEBSD_NR_mknodat 559
|
||||
#define TARGET_FREEBSD_NR_kevent 560
|
||||
#define TARGET_FREEBSD_NR_cpuset_getdomain 561
|
||||
#define TARGET_FREEBSD_NR_cpuset_setdomain 562
|
||||
#define TARGET_FREEBSD_NR_getrandom 563
|
||||
#define TARGET_FREEBSD_NR_getfhat 564
|
||||
#define TARGET_FREEBSD_NR_fhlink 565
|
||||
#define TARGET_FREEBSD_NR_fhlinkat 566
|
||||
#define TARGET_FREEBSD_NR_fhreadlink 567
|
||||
#define TARGET_FREEBSD_NR_funlinkat 568
|
||||
#define TARGET_FREEBSD_NR_copy_file_range 569
|
||||
#define TARGET_FREEBSD_NR___sysctlbyname 570
|
||||
#define TARGET_FREEBSD_NR_shm_open2 571
|
||||
#define TARGET_FREEBSD_NR_shm_rename 572
|
||||
#define TARGET_FREEBSD_NR_sigfastblock 573
|
||||
#define TARGET_FREEBSD_NR___realpathat 574
|
||||
#define TARGET_FREEBSD_NR_close_range 575
|
||||
#define TARGET_FREEBSD_NR_rpctls_syscall 576
|
||||
#define TARGET_FREEBSD_NR_MAXSYSCALL 577
|
||||
|
|
Loading…
Reference in New Issue