Initial support for executing IA-32 binaries. This will not compile

without a few patches for the rest of the kernel to allow the image
activator to override exec_copyout_strings and setregs.

None of the syscall argument translation has been done. Possibly, this
translation layer can be shared with any platform that wants to support
running ILP32 binaries on an LP64 host (e.g. sparc32 binaries?)
This commit is contained in:
Doug Rabson 2002-04-10 19:34:51 +00:00
parent f2697d4d75
commit 5eb29d9b90
20 changed files with 10074 additions and 0 deletions

15
sys/amd64/ia32/Makefile Normal file
View File

@ -0,0 +1,15 @@
# Makefile for syscall tables
#
# $FreeBSD$
all:
@echo "make sysent only"
sysent: ia32_sysent.c ia32_syscall.h ia32_proto.h
ia32_sysent.c ia32_syscall.h ia32_proto.h: ../../kern/makesyscalls.sh \
syscalls.master syscalls.conf
-mv -f ia32_sysent.c ia32_sysent.c.bak
-mv -f ia32_syscall.h ia32_syscall.h.bak
-mv -f ia32_proto.h ia32_proto.h.bak
sh ../../kern/makesyscalls.sh syscalls.master syscalls.conf

1529
sys/amd64/ia32/ia32_proto.h Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,306 @@
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD
*/
#define IA32_SYS_syscall 0
#define IA32_SYS_exit 1
#define IA32_SYS_fork 2
#define IA32_SYS_read 3
#define IA32_SYS_write 4
#define IA32_SYS_open 5
#define IA32_SYS_close 6
#define IA32_SYS_wait4 7
/* 8 is old creat */
#define IA32_SYS_link 9
#define IA32_SYS_unlink 10
/* 11 is obsolete execv */
#define IA32_SYS_chdir 12
#define IA32_SYS_fchdir 13
#define IA32_SYS_mknod 14
#define IA32_SYS_chmod 15
#define IA32_SYS_chown 16
#define IA32_SYS_break 17
#define IA32_SYS_getfsstat 18
/* 19 is old lseek */
#define IA32_SYS_getpid 20
#define IA32_SYS_mount 21
#define IA32_SYS_unmount 22
#define IA32_SYS_setuid 23
#define IA32_SYS_getuid 24
#define IA32_SYS_geteuid 25
#define IA32_SYS_ptrace 26
#define IA32_SYS_recvmsg 27
#define IA32_SYS_sendmsg 28
#define IA32_SYS_recvfrom 29
#define IA32_SYS_accept 30
#define IA32_SYS_getpeername 31
#define IA32_SYS_getsockname 32
#define IA32_SYS_access 33
#define IA32_SYS_chflags 34
#define IA32_SYS_fchflags 35
#define IA32_SYS_sync 36
#define IA32_SYS_kill 37
/* 38 is old stat */
#define IA32_SYS_getppid 39
/* 40 is old lstat */
#define IA32_SYS_dup 41
#define IA32_SYS_pipe 42
#define IA32_SYS_getegid 43
#define IA32_SYS_profil 44
#define IA32_SYS_ktrace 45
/* 46 is old sigaction */
#define IA32_SYS_getgid 47
/* 48 is old sigprocmask */
#define IA32_SYS_getlogin 49
#define IA32_SYS_setlogin 50
#define IA32_SYS_acct 51
/* 52 is old sigpending */
#define IA32_SYS_sigaltstack 53
#define IA32_SYS_ioctl 54
#define IA32_SYS_reboot 55
#define IA32_SYS_revoke 56
#define IA32_SYS_symlink 57
#define IA32_SYS_readlink 58
#define IA32_SYS_execve 59
#define IA32_SYS_umask 60
#define IA32_SYS_chroot 61
/* 62 is old fstat */
/* 63 is old getkerninfo */
/* 64 is old getpagesize */
#define IA32_SYS_msync 65
#define IA32_SYS_vfork 66
/* 67 is obsolete vread */
/* 68 is obsolete vwrite */
#define IA32_SYS_sbrk 69
#define IA32_SYS_sstk 70
/* 71 is old mmap */
#define IA32_SYS_vadvise 72
#define IA32_SYS_munmap 73
#define IA32_SYS_mprotect 74
#define IA32_SYS_madvise 75
/* 76 is obsolete vhangup */
/* 77 is obsolete vlimit */
#define IA32_SYS_mincore 78
#define IA32_SYS_getgroups 79
#define IA32_SYS_setgroups 80
#define IA32_SYS_getpgrp 81
#define IA32_SYS_setpgid 82
#define IA32_SYS_setitimer 83
/* 84 is old wait */
#define IA32_SYS_swapon 85
#define IA32_SYS_getitimer 86
/* 87 is old gethostname */
/* 88 is old sethostname */
#define IA32_SYS_getdtablesize 89
#define IA32_SYS_dup2 90
#define IA32_SYS_fcntl 92
#define IA32_SYS_select 93
#define IA32_SYS_fsync 95
#define IA32_SYS_setpriority 96
#define IA32_SYS_socket 97
#define IA32_SYS_connect 98
/* 99 is old accept */
#define IA32_SYS_getpriority 100
/* 101 is old send */
/* 102 is old recv */
#define IA32_SYS_osigreturn 103
#define IA32_SYS_bind 104
#define IA32_SYS_setsockopt 105
#define IA32_SYS_listen 106
/* 107 is obsolete vtimes */
/* 108 is old sigvec */
/* 109 is old sigblock */
/* 110 is old sigsetmask */
/* 111 is old sigsuspend */
/* 112 is old sigstack */
/* 113 is old recvmsg */
/* 114 is old sendmsg */
/* 115 is obsolete vtrace */
#define IA32_SYS_gettimeofday 116
#define IA32_SYS_getrusage 117
#define IA32_SYS_getsockopt 118
#define IA32_SYS_readv 120
#define IA32_SYS_writev 121
#define IA32_SYS_settimeofday 122
#define IA32_SYS_fchown 123
#define IA32_SYS_fchmod 124
/* 125 is old recvfrom */
#define IA32_SYS_setreuid 126
#define IA32_SYS_setregid 127
#define IA32_SYS_rename 128
/* 129 is old truncate */
/* 130 is old ftruncate */
#define IA32_SYS_flock 131
#define IA32_SYS_mkfifo 132
#define IA32_SYS_sendto 133
#define IA32_SYS_shutdown 134
#define IA32_SYS_socketpair 135
#define IA32_SYS_mkdir 136
#define IA32_SYS_rmdir 137
#define IA32_SYS_utimes 138
/* 139 is obsolete 4.2 sigreturn */
#define IA32_SYS_adjtime 140
/* 141 is old getpeername */
/* 142 is old gethostid */
/* 143 is old sethostid */
/* 144 is old getrlimit */
/* 145 is old setrlimit */
/* 146 is old killpg */
#define IA32_SYS_setsid 147
#define IA32_SYS_quotactl 148
/* 149 is old quota */
/* 150 is old getsockname */
#define IA32_SYS_nfssvc 155
/* 156 is old getdirentries */
#define IA32_SYS_statfs 157
#define IA32_SYS_fstatfs 158
#define IA32_SYS_getfh 161
#define IA32_SYS_getdomainname 162
#define IA32_SYS_setdomainname 163
#define IA32_SYS_uname 164
#define IA32_SYS_sysarch 165
#define IA32_SYS_rtprio 166
#define IA32_SYS_semsys 169
#define IA32_SYS_msgsys 170
#define IA32_SYS_shmsys 171
#define IA32_SYS_pread 173
#define IA32_SYS_pwrite 174
#define IA32_SYS_ntp_adjtime 176
#define IA32_SYS_setgid 181
#define IA32_SYS_setegid 182
#define IA32_SYS_seteuid 183
#define IA32_SYS_stat 188
#define IA32_SYS_fstat 189
#define IA32_SYS_lstat 190
#define IA32_SYS_pathconf 191
#define IA32_SYS_fpathconf 192
#define IA32_SYS_getrlimit 194
#define IA32_SYS_setrlimit 195
#define IA32_SYS_getdirentries 196
#define IA32_SYS_mmap 197
#define IA32_SYS___syscall 198
#define IA32_SYS_lseek 199
#define IA32_SYS_truncate 200
#define IA32_SYS_ftruncate 201
#define IA32_SYS___sysctl 202
#define IA32_SYS_mlock 203
#define IA32_SYS_munlock 204
#define IA32_SYS_undelete 205
#define IA32_SYS_futimes 206
#define IA32_SYS_getpgid 207
#define IA32_SYS_poll 209
#define IA32_SYS___semctl 220
#define IA32_SYS_semget 221
#define IA32_SYS_semop 222
#define IA32_SYS_msgctl 224
#define IA32_SYS_msgget 225
#define IA32_SYS_msgsnd 226
#define IA32_SYS_msgrcv 227
#define IA32_SYS_shmat 228
#define IA32_SYS_shmctl 229
#define IA32_SYS_shmdt 230
#define IA32_SYS_shmget 231
#define IA32_SYS_clock_gettime 232
#define IA32_SYS_clock_settime 233
#define IA32_SYS_clock_getres 234
#define IA32_SYS_nanosleep 240
#define IA32_SYS_minherit 250
#define IA32_SYS_rfork 251
#define IA32_SYS_openbsd_poll 252
#define IA32_SYS_issetugid 253
#define IA32_SYS_lchown 254
#define IA32_SYS_getdents 272
#define IA32_SYS_lchmod 274
#define IA32_SYS_netbsd_lchown 275
#define IA32_SYS_lutimes 276
#define IA32_SYS_netbsd_msync 277
#define IA32_SYS_nstat 278
#define IA32_SYS_nfstat 279
#define IA32_SYS_nlstat 280
#define IA32_SYS_fhstatfs 297
#define IA32_SYS_fhopen 298
#define IA32_SYS_fhstat 299
#define IA32_SYS_modnext 300
#define IA32_SYS_modstat 301
#define IA32_SYS_modfnext 302
#define IA32_SYS_modfind 303
#define IA32_SYS_kldload 304
#define IA32_SYS_kldunload 305
#define IA32_SYS_kldfind 306
#define IA32_SYS_kldnext 307
#define IA32_SYS_kldstat 308
#define IA32_SYS_kldfirstmod 309
#define IA32_SYS_getsid 310
#define IA32_SYS_setresuid 311
#define IA32_SYS_setresgid 312
/* 313 is obsolete signanosleep */
#define IA32_SYS_aio_return 314
#define IA32_SYS_aio_suspend 315
#define IA32_SYS_aio_cancel 316
#define IA32_SYS_aio_error 317
#define IA32_SYS_aio_read 318
#define IA32_SYS_aio_write 319
#define IA32_SYS_lio_listio 320
#define IA32_SYS_yield 321
/* 322 is obsolete thr_sleep */
/* 323 is obsolete thr_wakeup */
#define IA32_SYS_mlockall 324
#define IA32_SYS_munlockall 325
#define IA32_SYS___getcwd 326
#define IA32_SYS_sched_setparam 327
#define IA32_SYS_sched_getparam 328
#define IA32_SYS_sched_setscheduler 329
#define IA32_SYS_sched_getscheduler 330
#define IA32_SYS_sched_yield 331
#define IA32_SYS_sched_get_priority_max 332
#define IA32_SYS_sched_get_priority_min 333
#define IA32_SYS_sched_rr_get_interval 334
#define IA32_SYS_utrace 335
#define IA32_SYS_sendfile 336
#define IA32_SYS_kldsym 337
#define IA32_SYS_jail 338
#define IA32_SYS_sigprocmask 340
#define IA32_SYS_sigsuspend 341
#define IA32_SYS_sigaction 342
#define IA32_SYS_sigpending 343
#define IA32_SYS_sigreturn 344
#define IA32_SYS___acl_get_file 347
#define IA32_SYS___acl_set_file 348
#define IA32_SYS___acl_get_fd 349
#define IA32_SYS___acl_set_fd 350
#define IA32_SYS___acl_delete_file 351
#define IA32_SYS___acl_delete_fd 352
#define IA32_SYS___acl_aclcheck_file 353
#define IA32_SYS___acl_aclcheck_fd 354
#define IA32_SYS_extattrctl 355
#define IA32_SYS_extattr_set_file 356
#define IA32_SYS_extattr_get_file 357
#define IA32_SYS_extattr_delete_file 358
#define IA32_SYS_aio_waitcomplete 359
#define IA32_SYS_getresuid 360
#define IA32_SYS_getresgid 361
#define IA32_SYS_kqueue 362
#define IA32_SYS_kevent 363
#define IA32_SYS___cap_get_proc 364
#define IA32_SYS___cap_set_proc 365
#define IA32_SYS___cap_get_fd 366
#define IA32_SYS___cap_get_file 367
#define IA32_SYS___cap_set_fd 368
#define IA32_SYS___cap_set_file 369
#define IA32_SYS_extattr_set_fd 371
#define IA32_SYS_extattr_get_fd 372
#define IA32_SYS_extattr_delete_fd 373
#define IA32_SYS___setugid 374
#define IA32_SYS_nfsclnt 375
#define IA32_SYS_eaccess 376
#define IA32_SYS_nmount 378
#define IA32_SYS_kse_exit 379
#define IA32_SYS_kse_wakeup 380
#define IA32_SYS_kse_new 381
#define IA32_SYS_thread_wakeup 382
#define IA32_SYS_kse_yield 383
#define IA32_SYS_MAXSYSCALL 390

View File

@ -0,0 +1,415 @@
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD
*/
#include "opt_compat.h"
#include <sys/param.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>
#define AS(name) (sizeof(struct name) / sizeof(register_t))
#ifdef COMPAT_43
#define compat(n, name) n, (sy_call_t *)__CONCAT(o,name)
#else
#define compat(n, name) 0, (sy_call_t *)nosys
#endif
/* The casts are bogus but will do for now. */
struct sysent ia32_sysent[] = {
{ 0, (sy_call_t *)nosys }, /* 0 = syscall */
{ SYF_MPSAFE | AS(sys_exit_args), (sy_call_t *)sys_exit }, /* 1 = exit */
{ SYF_MPSAFE | 0, (sy_call_t *)fork }, /* 2 = fork */
{ SYF_MPSAFE | AS(read_args), (sy_call_t *)read }, /* 3 = read */
{ SYF_MPSAFE | AS(write_args), (sy_call_t *)write }, /* 4 = write */
{ AS(open_args), (sy_call_t *)open }, /* 5 = open */
{ SYF_MPSAFE | AS(close_args), (sy_call_t *)close }, /* 6 = close */
{ SYF_MPSAFE | AS(wait_args), (sy_call_t *)wait4 }, /* 7 = wait4 */
{ compat(AS(ocreat_args),creat) }, /* 8 = old creat */
{ AS(link_args), (sy_call_t *)link }, /* 9 = link */
{ AS(unlink_args), (sy_call_t *)unlink }, /* 10 = unlink */
{ 0, (sy_call_t *)nosys }, /* 11 = obsolete execv */
{ AS(chdir_args), (sy_call_t *)chdir }, /* 12 = chdir */
{ AS(fchdir_args), (sy_call_t *)fchdir }, /* 13 = fchdir */
{ AS(mknod_args), (sy_call_t *)mknod }, /* 14 = mknod */
{ AS(chmod_args), (sy_call_t *)chmod }, /* 15 = chmod */
{ AS(chown_args), (sy_call_t *)chown }, /* 16 = chown */
{ SYF_MPSAFE | AS(obreak_args), (sy_call_t *)obreak }, /* 17 = break */
{ AS(getfsstat_args), (sy_call_t *)getfsstat }, /* 18 = getfsstat */
{ compat(AS(olseek_args),lseek) }, /* 19 = old lseek */
{ SYF_MPSAFE | 0, (sy_call_t *)getpid }, /* 20 = getpid */
{ AS(mount_args), (sy_call_t *)mount }, /* 21 = mount */
{ AS(unmount_args), (sy_call_t *)unmount }, /* 22 = unmount */
{ SYF_MPSAFE | AS(setuid_args), (sy_call_t *)setuid }, /* 23 = setuid */
{ SYF_MPSAFE | 0, (sy_call_t *)getuid }, /* 24 = getuid */
{ SYF_MPSAFE | 0, (sy_call_t *)geteuid }, /* 25 = geteuid */
{ AS(ptrace_args), (sy_call_t *)ptrace }, /* 26 = ptrace */
{ SYF_MPSAFE | AS(recvmsg_args), (sy_call_t *)recvmsg }, /* 27 = recvmsg */
{ SYF_MPSAFE | AS(sendmsg_args), (sy_call_t *)sendmsg }, /* 28 = sendmsg */
{ SYF_MPSAFE | AS(recvfrom_args), (sy_call_t *)recvfrom }, /* 29 = recvfrom */
{ SYF_MPSAFE | AS(accept_args), (sy_call_t *)accept }, /* 30 = accept */
{ SYF_MPSAFE | AS(getpeername_args), (sy_call_t *)getpeername }, /* 31 = getpeername */
{ SYF_MPSAFE | AS(getsockname_args), (sy_call_t *)getsockname }, /* 32 = getsockname */
{ AS(access_args), (sy_call_t *)access }, /* 33 = access */
{ AS(chflags_args), (sy_call_t *)chflags }, /* 34 = chflags */
{ AS(fchflags_args), (sy_call_t *)fchflags }, /* 35 = fchflags */
{ 0, (sy_call_t *)sync }, /* 36 = sync */
{ SYF_MPSAFE | AS(kill_args), (sy_call_t *)kill }, /* 37 = kill */
{ compat(AS(ostat_args),stat) }, /* 38 = old stat */
{ SYF_MPSAFE | 0, (sy_call_t *)getppid }, /* 39 = getppid */
{ compat(AS(olstat_args),lstat) }, /* 40 = old lstat */
{ AS(dup_args), (sy_call_t *)dup }, /* 41 = dup */
{ 0, (sy_call_t *)pipe }, /* 42 = pipe */
{ SYF_MPSAFE | 0, (sy_call_t *)getegid }, /* 43 = getegid */
{ SYF_MPSAFE | AS(profil_args), (sy_call_t *)profil }, /* 44 = profil */
{ AS(ktrace_args), (sy_call_t *)ktrace }, /* 45 = ktrace */
{ compat(SYF_MPSAFE | AS(osigaction_args),sigaction) }, /* 46 = old sigaction */
{ SYF_MPSAFE | 0, (sy_call_t *)getgid }, /* 47 = getgid */
{ compat(SYF_MPSAFE | AS(osigprocmask_args),sigprocmask) }, /* 48 = old sigprocmask */
{ SYF_MPSAFE | AS(getlogin_args), (sy_call_t *)getlogin }, /* 49 = getlogin */
{ SYF_MPSAFE | AS(setlogin_args), (sy_call_t *)setlogin }, /* 50 = setlogin */
{ SYF_MPSAFE | AS(acct_args), (sy_call_t *)acct }, /* 51 = acct */
{ compat(SYF_MPSAFE | 0,sigpending) }, /* 52 = old sigpending */
{ SYF_MPSAFE | AS(sigaltstack_args), (sy_call_t *)sigaltstack }, /* 53 = sigaltstack */
{ SYF_MPSAFE | AS(ioctl_args), (sy_call_t *)ioctl }, /* 54 = ioctl */
{ SYF_MPSAFE | AS(reboot_args), (sy_call_t *)reboot }, /* 55 = reboot */
{ AS(revoke_args), (sy_call_t *)revoke }, /* 56 = revoke */
{ AS(symlink_args), (sy_call_t *)symlink }, /* 57 = symlink */
{ AS(readlink_args), (sy_call_t *)readlink }, /* 58 = readlink */
{ SYF_MPSAFE | AS(execve_args), (sy_call_t *)execve }, /* 59 = execve */
{ SYF_MPSAFE | AS(umask_args), (sy_call_t *)umask }, /* 60 = umask */
{ AS(chroot_args), (sy_call_t *)chroot }, /* 61 = chroot */
{ compat(SYF_MPSAFE | AS(ofstat_args),fstat) }, /* 62 = old fstat */
{ compat(SYF_MPSAFE | AS(getkerninfo_args),getkerninfo) }, /* 63 = old getkerninfo */
{ compat(SYF_MPSAFE | 0,getpagesize) }, /* 64 = old getpagesize */
{ AS(msync_args), (sy_call_t *)msync }, /* 65 = msync */
{ SYF_MPSAFE | 0, (sy_call_t *)vfork }, /* 66 = vfork */
{ 0, (sy_call_t *)nosys }, /* 67 = obsolete vread */
{ 0, (sy_call_t *)nosys }, /* 68 = obsolete vwrite */
{ SYF_MPSAFE | AS(sbrk_args), (sy_call_t *)sbrk }, /* 69 = sbrk */
{ SYF_MPSAFE | AS(sstk_args), (sy_call_t *)sstk }, /* 70 = sstk */
{ compat(SYF_MPSAFE | AS(ommap_args),mmap) }, /* 71 = old mmap */
{ SYF_MPSAFE | AS(ovadvise_args), (sy_call_t *)ovadvise }, /* 72 = vadvise */
{ SYF_MPSAFE | AS(munmap_args), (sy_call_t *)munmap }, /* 73 = munmap */
{ SYF_MPSAFE | AS(mprotect_args), (sy_call_t *)mprotect }, /* 74 = mprotect */
{ SYF_MPSAFE | AS(madvise_args), (sy_call_t *)madvise }, /* 75 = madvise */
{ 0, (sy_call_t *)nosys }, /* 76 = obsolete vhangup */
{ 0, (sy_call_t *)nosys }, /* 77 = obsolete vlimit */
{ SYF_MPSAFE | AS(mincore_args), (sy_call_t *)mincore }, /* 78 = mincore */
{ SYF_MPSAFE | AS(getgroups_args), (sy_call_t *)getgroups }, /* 79 = getgroups */
{ SYF_MPSAFE | AS(setgroups_args), (sy_call_t *)setgroups }, /* 80 = setgroups */
{ SYF_MPSAFE | 0, (sy_call_t *)getpgrp }, /* 81 = getpgrp */
{ SYF_MPSAFE | AS(setpgid_args), (sy_call_t *)setpgid }, /* 82 = setpgid */
{ SYF_MPSAFE | AS(setitimer_args), (sy_call_t *)setitimer }, /* 83 = setitimer */
{ compat(SYF_MPSAFE | 0,wait) }, /* 84 = old wait */
{ SYF_MPSAFE | AS(swapon_args), (sy_call_t *)swapon }, /* 85 = swapon */
{ SYF_MPSAFE | AS(getitimer_args), (sy_call_t *)getitimer }, /* 86 = getitimer */
{ compat(SYF_MPSAFE | AS(gethostname_args),gethostname) }, /* 87 = old gethostname */
{ compat(SYF_MPSAFE | AS(sethostname_args),sethostname) }, /* 88 = old sethostname */
{ SYF_MPSAFE | 0, (sy_call_t *)getdtablesize }, /* 89 = getdtablesize */
{ SYF_MPSAFE | AS(dup2_args), (sy_call_t *)dup2 }, /* 90 = dup2 */
{ 0, (sy_call_t *)nosys }, /* 91 = getdopt */
{ SYF_MPSAFE | AS(fcntl_args), (sy_call_t *)fcntl }, /* 92 = fcntl */
{ SYF_MPSAFE | AS(select_args), (sy_call_t *)select }, /* 93 = select */
{ 0, (sy_call_t *)nosys }, /* 94 = setdopt */
{ AS(fsync_args), (sy_call_t *)fsync }, /* 95 = fsync */
{ SYF_MPSAFE | AS(setpriority_args), (sy_call_t *)setpriority }, /* 96 = setpriority */
{ SYF_MPSAFE | AS(socket_args), (sy_call_t *)socket }, /* 97 = socket */
{ SYF_MPSAFE | AS(connect_args), (sy_call_t *)connect }, /* 98 = connect */
{ compat(SYF_MPSAFE | AS(accept_args),accept) }, /* 99 = old accept */
{ SYF_MPSAFE | AS(getpriority_args), (sy_call_t *)getpriority }, /* 100 = getpriority */
{ compat(SYF_MPSAFE | AS(osend_args),send) }, /* 101 = old send */
{ compat(SYF_MPSAFE | AS(orecv_args),recv) }, /* 102 = old recv */
{ AS(osigreturn_args), (sy_call_t *)osigreturn }, /* 103 = osigreturn */
{ SYF_MPSAFE | AS(bind_args), (sy_call_t *)bind }, /* 104 = bind */
{ SYF_MPSAFE | AS(setsockopt_args), (sy_call_t *)setsockopt }, /* 105 = setsockopt */
{ SYF_MPSAFE | AS(listen_args), (sy_call_t *)listen }, /* 106 = listen */
{ 0, (sy_call_t *)nosys }, /* 107 = obsolete vtimes */
{ compat(SYF_MPSAFE | AS(osigvec_args),sigvec) }, /* 108 = old sigvec */
{ compat(SYF_MPSAFE | AS(osigblock_args),sigblock) }, /* 109 = old sigblock */
{ compat(SYF_MPSAFE | AS(osigsetmask_args),sigsetmask) }, /* 110 = old sigsetmask */
{ compat(SYF_MPSAFE | AS(osigsuspend_args),sigsuspend) }, /* 111 = old sigsuspend */
{ compat(SYF_MPSAFE | AS(osigstack_args),sigstack) }, /* 112 = old sigstack */
{ compat(SYF_MPSAFE | AS(orecvmsg_args),recvmsg) }, /* 113 = old recvmsg */
{ compat(SYF_MPSAFE | AS(osendmsg_args),sendmsg) }, /* 114 = old sendmsg */
{ 0, (sy_call_t *)nosys }, /* 115 = obsolete vtrace */
{ SYF_MPSAFE | AS(gettimeofday_args), (sy_call_t *)gettimeofday }, /* 116 = gettimeofday */
{ SYF_MPSAFE | AS(getrusage_args), (sy_call_t *)getrusage }, /* 117 = getrusage */
{ SYF_MPSAFE | AS(getsockopt_args), (sy_call_t *)getsockopt }, /* 118 = getsockopt */
{ 0, (sy_call_t *)nosys }, /* 119 = resuba */
{ SYF_MPSAFE | AS(readv_args), (sy_call_t *)readv }, /* 120 = readv */
{ SYF_MPSAFE | AS(writev_args), (sy_call_t *)writev }, /* 121 = writev */
{ SYF_MPSAFE | AS(settimeofday_args), (sy_call_t *)settimeofday }, /* 122 = settimeofday */
{ AS(fchown_args), (sy_call_t *)fchown }, /* 123 = fchown */
{ AS(fchmod_args), (sy_call_t *)fchmod }, /* 124 = fchmod */
{ compat(SYF_MPSAFE | AS(recvfrom_args),recvfrom) }, /* 125 = old recvfrom */
{ SYF_MPSAFE | AS(setreuid_args), (sy_call_t *)setreuid }, /* 126 = setreuid */
{ SYF_MPSAFE | AS(setregid_args), (sy_call_t *)setregid }, /* 127 = setregid */
{ AS(rename_args), (sy_call_t *)rename }, /* 128 = rename */
{ compat(AS(otruncate_args),truncate) }, /* 129 = old truncate */
{ compat(AS(oftruncate_args),ftruncate) }, /* 130 = old ftruncate */
{ SYF_MPSAFE | AS(flock_args), (sy_call_t *)flock }, /* 131 = flock */
{ AS(mkfifo_args), (sy_call_t *)mkfifo }, /* 132 = mkfifo */
{ SYF_MPSAFE | AS(sendto_args), (sy_call_t *)sendto }, /* 133 = sendto */
{ SYF_MPSAFE | AS(shutdown_args), (sy_call_t *)shutdown }, /* 134 = shutdown */
{ SYF_MPSAFE | AS(socketpair_args), (sy_call_t *)socketpair }, /* 135 = socketpair */
{ AS(mkdir_args), (sy_call_t *)mkdir }, /* 136 = mkdir */
{ AS(rmdir_args), (sy_call_t *)rmdir }, /* 137 = rmdir */
{ AS(utimes_args), (sy_call_t *)utimes }, /* 138 = utimes */
{ 0, (sy_call_t *)nosys }, /* 139 = obsolete 4.2 sigreturn */
{ SYF_MPSAFE | AS(adjtime_args), (sy_call_t *)adjtime }, /* 140 = adjtime */
{ compat(SYF_MPSAFE | AS(ogetpeername_args),getpeername) }, /* 141 = old getpeername */
{ compat(SYF_MPSAFE | 0,gethostid) }, /* 142 = old gethostid */
{ compat(SYF_MPSAFE | AS(osethostid_args),sethostid) }, /* 143 = old sethostid */
{ compat(SYF_MPSAFE | AS(ogetrlimit_args),getrlimit) }, /* 144 = old getrlimit */
{ compat(SYF_MPSAFE | AS(osetrlimit_args),setrlimit) }, /* 145 = old setrlimit */
{ compat(SYF_MPSAFE | AS(okillpg_args),killpg) }, /* 146 = old killpg */
{ SYF_MPSAFE | 0, (sy_call_t *)setsid }, /* 147 = setsid */
{ AS(quotactl_args), (sy_call_t *)quotactl }, /* 148 = quotactl */
{ compat(SYF_MPSAFE | 0,quota) }, /* 149 = old quota */
{ compat(SYF_MPSAFE | AS(getsockname_args),getsockname) }, /* 150 = old getsockname */
{ 0, (sy_call_t *)nosys }, /* 151 = sem_lock */
{ 0, (sy_call_t *)nosys }, /* 152 = sem_wakeup */
{ 0, (sy_call_t *)nosys }, /* 153 = asyncdaemon */
{ 0, (sy_call_t *)nosys }, /* 154 = nosys */
{ SYF_MPSAFE | AS(nfssvc_args), (sy_call_t *)nosys }, /* 155 = nfssvc */
{ compat(AS(ogetdirentries_args),getdirentries) }, /* 156 = old getdirentries */
{ AS(statfs_args), (sy_call_t *)statfs }, /* 157 = statfs */
{ AS(fstatfs_args), (sy_call_t *)fstatfs }, /* 158 = fstatfs */
{ 0, (sy_call_t *)nosys }, /* 159 = nosys */
{ 0, (sy_call_t *)nosys }, /* 160 = nosys */
{ AS(getfh_args), (sy_call_t *)getfh }, /* 161 = getfh */
{ SYF_MPSAFE | AS(getdomainname_args), (sy_call_t *)getdomainname }, /* 162 = getdomainname */
{ SYF_MPSAFE | AS(setdomainname_args), (sy_call_t *)setdomainname }, /* 163 = setdomainname */
{ SYF_MPSAFE | AS(uname_args), (sy_call_t *)uname }, /* 164 = uname */
{ AS(sysarch_args), (sy_call_t *)sysarch }, /* 165 = sysarch */
{ SYF_MPSAFE | AS(rtprio_args), (sy_call_t *)rtprio }, /* 166 = rtprio */
{ 0, (sy_call_t *)nosys }, /* 167 = nosys */
{ 0, (sy_call_t *)nosys }, /* 168 = nosys */
{ SYF_MPSAFE | AS(semsys_args), (sy_call_t *)lkmressys }, /* 169 = semsys */
{ SYF_MPSAFE | AS(msgsys_args), (sy_call_t *)lkmressys }, /* 170 = msgsys */
{ SYF_MPSAFE | AS(shmsys_args), (sy_call_t *)lkmressys }, /* 171 = shmsys */
{ 0, (sy_call_t *)nosys }, /* 172 = nosys */
{ SYF_MPSAFE | AS(pread_args), (sy_call_t *)pread }, /* 173 = pread */
{ SYF_MPSAFE | AS(pwrite_args), (sy_call_t *)pwrite }, /* 174 = pwrite */
{ 0, (sy_call_t *)nosys }, /* 175 = nosys */
{ SYF_MPSAFE | AS(ntp_adjtime_args), (sy_call_t *)ntp_adjtime }, /* 176 = ntp_adjtime */
{ 0, (sy_call_t *)nosys }, /* 177 = sfork */
{ 0, (sy_call_t *)nosys }, /* 178 = getdescriptor */
{ 0, (sy_call_t *)nosys }, /* 179 = setdescriptor */
{ 0, (sy_call_t *)nosys }, /* 180 = nosys */
{ SYF_MPSAFE | AS(setgid_args), (sy_call_t *)setgid }, /* 181 = setgid */
{ SYF_MPSAFE | AS(setegid_args), (sy_call_t *)setegid }, /* 182 = setegid */
{ SYF_MPSAFE | AS(seteuid_args), (sy_call_t *)seteuid }, /* 183 = seteuid */
{ 0, (sy_call_t *)nosys }, /* 184 = lfs_bmapv */
{ 0, (sy_call_t *)nosys }, /* 185 = lfs_markv */
{ 0, (sy_call_t *)nosys }, /* 186 = lfs_segclean */
{ 0, (sy_call_t *)nosys }, /* 187 = lfs_segwait */
{ AS(stat_args), (sy_call_t *)stat }, /* 188 = stat */
{ SYF_MPSAFE | AS(fstat_args), (sy_call_t *)fstat }, /* 189 = fstat */
{ AS(lstat_args), (sy_call_t *)lstat }, /* 190 = lstat */
{ AS(pathconf_args), (sy_call_t *)pathconf }, /* 191 = pathconf */
{ SYF_MPSAFE | AS(fpathconf_args), (sy_call_t *)fpathconf }, /* 192 = fpathconf */
{ 0, (sy_call_t *)nosys }, /* 193 = nosys */
{ SYF_MPSAFE | AS(__getrlimit_args), (sy_call_t *)getrlimit }, /* 194 = getrlimit */
{ SYF_MPSAFE | AS(__setrlimit_args), (sy_call_t *)setrlimit }, /* 195 = setrlimit */
{ AS(getdirentries_args), (sy_call_t *)getdirentries }, /* 196 = getdirentries */
{ SYF_MPSAFE | AS(mmap_args), (sy_call_t *)mmap }, /* 197 = mmap */
{ 0, (sy_call_t *)nosys }, /* 198 = __syscall */
{ AS(lseek_args), (sy_call_t *)lseek }, /* 199 = lseek */
{ AS(truncate_args), (sy_call_t *)truncate }, /* 200 = truncate */
{ AS(ftruncate_args), (sy_call_t *)ftruncate }, /* 201 = ftruncate */
{ SYF_MPSAFE | AS(sysctl_args), (sy_call_t *)__sysctl }, /* 202 = __sysctl */
{ SYF_MPSAFE | AS(mlock_args), (sy_call_t *)mlock }, /* 203 = mlock */
{ SYF_MPSAFE | AS(munlock_args), (sy_call_t *)munlock }, /* 204 = munlock */
{ AS(undelete_args), (sy_call_t *)undelete }, /* 205 = undelete */
{ AS(futimes_args), (sy_call_t *)futimes }, /* 206 = futimes */
{ SYF_MPSAFE | AS(getpgid_args), (sy_call_t *)getpgid }, /* 207 = getpgid */
{ 0, (sy_call_t *)nosys }, /* 208 = newreboot */
{ SYF_MPSAFE | AS(poll_args), (sy_call_t *)poll }, /* 209 = poll */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 210 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 211 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 212 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 213 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 214 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 215 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 216 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 217 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 218 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 219 = lkmnosys */
{ SYF_MPSAFE | AS(__semctl_args), (sy_call_t *)lkmressys }, /* 220 = __semctl */
{ SYF_MPSAFE | AS(semget_args), (sy_call_t *)lkmressys }, /* 221 = semget */
{ SYF_MPSAFE | AS(semop_args), (sy_call_t *)lkmressys }, /* 222 = semop */
{ 0, (sy_call_t *)nosys }, /* 223 = semconfig */
{ SYF_MPSAFE | AS(msgctl_args), (sy_call_t *)lkmressys }, /* 224 = msgctl */
{ SYF_MPSAFE | AS(msgget_args), (sy_call_t *)lkmressys }, /* 225 = msgget */
{ SYF_MPSAFE | AS(msgsnd_args), (sy_call_t *)lkmressys }, /* 226 = msgsnd */
{ SYF_MPSAFE | AS(msgrcv_args), (sy_call_t *)lkmressys }, /* 227 = msgrcv */
{ SYF_MPSAFE | AS(shmat_args), (sy_call_t *)lkmressys }, /* 228 = shmat */
{ SYF_MPSAFE | AS(shmctl_args), (sy_call_t *)lkmressys }, /* 229 = shmctl */
{ SYF_MPSAFE | AS(shmdt_args), (sy_call_t *)lkmressys }, /* 230 = shmdt */
{ SYF_MPSAFE | AS(shmget_args), (sy_call_t *)lkmressys }, /* 231 = shmget */
{ SYF_MPSAFE | AS(clock_gettime_args), (sy_call_t *)clock_gettime }, /* 232 = clock_gettime */
{ SYF_MPSAFE | AS(clock_settime_args), (sy_call_t *)clock_settime }, /* 233 = clock_settime */
{ SYF_MPSAFE | AS(clock_getres_args), (sy_call_t *)clock_getres }, /* 234 = clock_getres */
{ 0, (sy_call_t *)nosys }, /* 235 = timer_create */
{ 0, (sy_call_t *)nosys }, /* 236 = timer_delete */
{ 0, (sy_call_t *)nosys }, /* 237 = timer_settime */
{ 0, (sy_call_t *)nosys }, /* 238 = timer_gettime */
{ 0, (sy_call_t *)nosys }, /* 239 = timer_getoverrun */
{ SYF_MPSAFE | AS(nanosleep_args), (sy_call_t *)nanosleep }, /* 240 = nanosleep */
{ 0, (sy_call_t *)nosys }, /* 241 = nosys */
{ 0, (sy_call_t *)nosys }, /* 242 = nosys */
{ 0, (sy_call_t *)nosys }, /* 243 = nosys */
{ 0, (sy_call_t *)nosys }, /* 244 = nosys */
{ 0, (sy_call_t *)nosys }, /* 245 = nosys */
{ 0, (sy_call_t *)nosys }, /* 246 = nosys */
{ 0, (sy_call_t *)nosys }, /* 247 = nosys */
{ 0, (sy_call_t *)nosys }, /* 248 = nosys */
{ 0, (sy_call_t *)nosys }, /* 249 = nosys */
{ SYF_MPSAFE | AS(minherit_args), (sy_call_t *)minherit }, /* 250 = minherit */
{ SYF_MPSAFE | AS(rfork_args), (sy_call_t *)rfork }, /* 251 = rfork */
{ SYF_MPSAFE | AS(openbsd_poll_args), (sy_call_t *)openbsd_poll }, /* 252 = openbsd_poll */
{ 0, (sy_call_t *)issetugid }, /* 253 = issetugid */
{ AS(lchown_args), (sy_call_t *)lchown }, /* 254 = lchown */
{ 0, (sy_call_t *)nosys }, /* 255 = nosys */
{ 0, (sy_call_t *)nosys }, /* 256 = nosys */
{ 0, (sy_call_t *)nosys }, /* 257 = nosys */
{ 0, (sy_call_t *)nosys }, /* 258 = nosys */
{ 0, (sy_call_t *)nosys }, /* 259 = nosys */
{ 0, (sy_call_t *)nosys }, /* 260 = nosys */
{ 0, (sy_call_t *)nosys }, /* 261 = nosys */
{ 0, (sy_call_t *)nosys }, /* 262 = nosys */
{ 0, (sy_call_t *)nosys }, /* 263 = nosys */
{ 0, (sy_call_t *)nosys }, /* 264 = nosys */
{ 0, (sy_call_t *)nosys }, /* 265 = nosys */
{ 0, (sy_call_t *)nosys }, /* 266 = nosys */
{ 0, (sy_call_t *)nosys }, /* 267 = nosys */
{ 0, (sy_call_t *)nosys }, /* 268 = nosys */
{ 0, (sy_call_t *)nosys }, /* 269 = nosys */
{ 0, (sy_call_t *)nosys }, /* 270 = nosys */
{ 0, (sy_call_t *)nosys }, /* 271 = nosys */
{ AS(getdents_args), (sy_call_t *)getdents }, /* 272 = getdents */
{ 0, (sy_call_t *)nosys }, /* 273 = nosys */
{ AS(lchmod_args), (sy_call_t *)lchmod }, /* 274 = lchmod */
{ AS(lchown_args), (sy_call_t *)lchown }, /* 275 = netbsd_lchown */
{ AS(lutimes_args), (sy_call_t *)lutimes }, /* 276 = lutimes */
{ SYF_MPSAFE | AS(msync_args), (sy_call_t *)msync }, /* 277 = netbsd_msync */
{ AS(nstat_args), (sy_call_t *)nstat }, /* 278 = nstat */
{ SYF_MPSAFE | AS(nfstat_args), (sy_call_t *)nfstat }, /* 279 = nfstat */
{ AS(nlstat_args), (sy_call_t *)nlstat }, /* 280 = nlstat */
{ 0, (sy_call_t *)nosys }, /* 281 = nosys */
{ 0, (sy_call_t *)nosys }, /* 282 = nosys */
{ 0, (sy_call_t *)nosys }, /* 283 = nosys */
{ 0, (sy_call_t *)nosys }, /* 284 = nosys */
{ 0, (sy_call_t *)nosys }, /* 285 = nosys */
{ 0, (sy_call_t *)nosys }, /* 286 = nosys */
{ 0, (sy_call_t *)nosys }, /* 287 = nosys */
{ 0, (sy_call_t *)nosys }, /* 288 = nosys */
{ 0, (sy_call_t *)nosys }, /* 289 = nosys */
{ 0, (sy_call_t *)nosys }, /* 290 = nosys */
{ 0, (sy_call_t *)nosys }, /* 291 = nosys */
{ 0, (sy_call_t *)nosys }, /* 292 = nosys */
{ 0, (sy_call_t *)nosys }, /* 293 = nosys */
{ 0, (sy_call_t *)nosys }, /* 294 = nosys */
{ 0, (sy_call_t *)nosys }, /* 295 = nosys */
{ 0, (sy_call_t *)nosys }, /* 296 = nosys */
{ AS(fhstatfs_args), (sy_call_t *)fhstatfs }, /* 297 = fhstatfs */
{ AS(fhopen_args), (sy_call_t *)fhopen }, /* 298 = fhopen */
{ AS(fhstat_args), (sy_call_t *)fhstat }, /* 299 = fhstat */
{ SYF_MPSAFE | AS(modnext_args), (sy_call_t *)modnext }, /* 300 = modnext */
{ SYF_MPSAFE | AS(modstat_args), (sy_call_t *)modstat }, /* 301 = modstat */
{ SYF_MPSAFE | AS(modfnext_args), (sy_call_t *)modfnext }, /* 302 = modfnext */
{ SYF_MPSAFE | AS(modfind_args), (sy_call_t *)modfind }, /* 303 = modfind */
{ SYF_MPSAFE | AS(kldload_args), (sy_call_t *)kldload }, /* 304 = kldload */
{ SYF_MPSAFE | AS(kldunload_args), (sy_call_t *)kldunload }, /* 305 = kldunload */
{ SYF_MPSAFE | AS(kldfind_args), (sy_call_t *)kldfind }, /* 306 = kldfind */
{ SYF_MPSAFE | AS(kldnext_args), (sy_call_t *)kldnext }, /* 307 = kldnext */
{ SYF_MPSAFE | AS(kldstat_args), (sy_call_t *)kldstat }, /* 308 = kldstat */
{ SYF_MPSAFE | AS(kldfirstmod_args), (sy_call_t *)kldfirstmod }, /* 309 = kldfirstmod */
{ SYF_MPSAFE | AS(getsid_args), (sy_call_t *)getsid }, /* 310 = getsid */
{ SYF_MPSAFE | AS(setresuid_args), (sy_call_t *)setresuid }, /* 311 = setresuid */
{ SYF_MPSAFE | AS(setresgid_args), (sy_call_t *)setresgid }, /* 312 = setresgid */
{ 0, (sy_call_t *)nosys }, /* 313 = obsolete signanosleep */
{ AS(aio_return_args), (sy_call_t *)lkmressys }, /* 314 = aio_return */
{ AS(aio_suspend_args), (sy_call_t *)lkmressys }, /* 315 = aio_suspend */
{ AS(aio_cancel_args), (sy_call_t *)lkmressys }, /* 316 = aio_cancel */
{ AS(aio_error_args), (sy_call_t *)lkmressys }, /* 317 = aio_error */
{ AS(aio_read_args), (sy_call_t *)lkmressys }, /* 318 = aio_read */
{ AS(aio_write_args), (sy_call_t *)lkmressys }, /* 319 = aio_write */
{ AS(lio_listio_args), (sy_call_t *)lkmressys }, /* 320 = lio_listio */
{ SYF_MPSAFE | 0, (sy_call_t *)yield }, /* 321 = yield */
{ 0, (sy_call_t *)nosys }, /* 322 = obsolete thr_sleep */
{ 0, (sy_call_t *)nosys }, /* 323 = obsolete thr_wakeup */
{ SYF_MPSAFE | AS(mlockall_args), (sy_call_t *)mlockall }, /* 324 = mlockall */
{ SYF_MPSAFE | 0, (sy_call_t *)munlockall }, /* 325 = munlockall */
{ AS(__getcwd_args), (sy_call_t *)__getcwd }, /* 326 = __getcwd */
{ SYF_MPSAFE | AS(sched_setparam_args), (sy_call_t *)sched_setparam }, /* 327 = sched_setparam */
{ SYF_MPSAFE | AS(sched_getparam_args), (sy_call_t *)sched_getparam }, /* 328 = sched_getparam */
{ SYF_MPSAFE | AS(sched_setscheduler_args), (sy_call_t *)sched_setscheduler }, /* 329 = sched_setscheduler */
{ SYF_MPSAFE | AS(sched_getscheduler_args), (sy_call_t *)sched_getscheduler }, /* 330 = sched_getscheduler */
{ SYF_MPSAFE | 0, (sy_call_t *)sched_yield }, /* 331 = sched_yield */
{ SYF_MPSAFE | AS(sched_get_priority_max_args), (sy_call_t *)sched_get_priority_max }, /* 332 = sched_get_priority_max */
{ SYF_MPSAFE | AS(sched_get_priority_min_args), (sy_call_t *)sched_get_priority_min }, /* 333 = sched_get_priority_min */
{ SYF_MPSAFE | AS(sched_rr_get_interval_args), (sy_call_t *)sched_rr_get_interval }, /* 334 = sched_rr_get_interval */
{ AS(utrace_args), (sy_call_t *)utrace }, /* 335 = utrace */
{ SYF_MPSAFE | AS(sendfile_args), (sy_call_t *)sendfile }, /* 336 = sendfile */
{ AS(kldsym_args), (sy_call_t *)kldsym }, /* 337 = kldsym */
{ SYF_MPSAFE | AS(jail_args), (sy_call_t *)jail }, /* 338 = jail */
{ 0, (sy_call_t *)nosys }, /* 339 = pioctl */
{ SYF_MPSAFE | AS(sigprocmask_args), (sy_call_t *)sigprocmask }, /* 340 = sigprocmask */
{ SYF_MPSAFE | AS(sigsuspend_args), (sy_call_t *)sigsuspend }, /* 341 = sigsuspend */
{ SYF_MPSAFE | AS(sigaction_args), (sy_call_t *)sigaction }, /* 342 = sigaction */
{ SYF_MPSAFE | AS(sigpending_args), (sy_call_t *)sigpending }, /* 343 = sigpending */
{ AS(sigreturn_args), (sy_call_t *)sigreturn }, /* 344 = sigreturn */
{ 0, (sy_call_t *)nosys }, /* 345 = sigtimedwait */
{ 0, (sy_call_t *)nosys }, /* 346 = sigwaitinfo */
{ SYF_MPSAFE | AS(__acl_get_file_args), (sy_call_t *)__acl_get_file }, /* 347 = __acl_get_file */
{ SYF_MPSAFE | AS(__acl_set_file_args), (sy_call_t *)__acl_set_file }, /* 348 = __acl_set_file */
{ SYF_MPSAFE | AS(__acl_get_fd_args), (sy_call_t *)__acl_get_fd }, /* 349 = __acl_get_fd */
{ SYF_MPSAFE | AS(__acl_set_fd_args), (sy_call_t *)__acl_set_fd }, /* 350 = __acl_set_fd */
{ SYF_MPSAFE | AS(__acl_delete_file_args), (sy_call_t *)__acl_delete_file }, /* 351 = __acl_delete_file */
{ SYF_MPSAFE | AS(__acl_delete_fd_args), (sy_call_t *)__acl_delete_fd }, /* 352 = __acl_delete_fd */
{ SYF_MPSAFE | AS(__acl_aclcheck_file_args), (sy_call_t *)__acl_aclcheck_file }, /* 353 = __acl_aclcheck_file */
{ SYF_MPSAFE | AS(__acl_aclcheck_fd_args), (sy_call_t *)__acl_aclcheck_fd }, /* 354 = __acl_aclcheck_fd */
{ AS(extattrctl_args), (sy_call_t *)extattrctl }, /* 355 = extattrctl */
{ AS(extattr_set_file_args), (sy_call_t *)extattr_set_file }, /* 356 = extattr_set_file */
{ AS(extattr_get_file_args), (sy_call_t *)extattr_get_file }, /* 357 = extattr_get_file */
{ AS(extattr_delete_file_args), (sy_call_t *)extattr_delete_file }, /* 358 = extattr_delete_file */
{ AS(aio_waitcomplete_args), (sy_call_t *)lkmressys }, /* 359 = aio_waitcomplete */
{ SYF_MPSAFE | AS(getresuid_args), (sy_call_t *)getresuid }, /* 360 = getresuid */
{ SYF_MPSAFE | AS(getresgid_args), (sy_call_t *)getresgid }, /* 361 = getresgid */
{ SYF_MPSAFE | 0, (sy_call_t *)kqueue }, /* 362 = kqueue */
{ SYF_MPSAFE | AS(kevent_args), (sy_call_t *)kevent }, /* 363 = kevent */
{ AS(__cap_get_proc_args), (sy_call_t *)__cap_get_proc }, /* 364 = __cap_get_proc */
{ AS(__cap_set_proc_args), (sy_call_t *)__cap_set_proc }, /* 365 = __cap_set_proc */
{ AS(__cap_get_fd_args), (sy_call_t *)__cap_get_fd }, /* 366 = __cap_get_fd */
{ AS(__cap_get_file_args), (sy_call_t *)__cap_get_file }, /* 367 = __cap_get_file */
{ AS(__cap_set_fd_args), (sy_call_t *)__cap_set_fd }, /* 368 = __cap_set_fd */
{ AS(__cap_set_file_args), (sy_call_t *)__cap_set_file }, /* 369 = __cap_set_file */
{ AS(nosys_args), (sy_call_t *)lkmressys }, /* 370 = lkmressys */
{ AS(extattr_set_fd_args), (sy_call_t *)extattr_set_fd }, /* 371 = extattr_set_fd */
{ AS(extattr_get_fd_args), (sy_call_t *)extattr_get_fd }, /* 372 = extattr_get_fd */
{ AS(extattr_delete_fd_args), (sy_call_t *)extattr_delete_fd }, /* 373 = extattr_delete_fd */
{ SYF_MPSAFE | AS(__setugid_args), (sy_call_t *)__setugid }, /* 374 = __setugid */
{ AS(nfsclnt_args), (sy_call_t *)nosys }, /* 375 = nfsclnt */
{ AS(eaccess_args), (sy_call_t *)eaccess }, /* 376 = eaccess */
{ 0, (sy_call_t *)nosys }, /* 377 = afs_syscall */
{ AS(nmount_args), (sy_call_t *)nmount }, /* 378 = nmount */
{ 0, (sy_call_t *)kse_exit }, /* 379 = kse_exit */
{ 0, (sy_call_t *)kse_wakeup }, /* 380 = kse_wakeup */
{ AS(kse_new_args), (sy_call_t *)kse_new }, /* 381 = kse_new */
{ AS(thread_wakeup_args), (sy_call_t *)thread_wakeup }, /* 382 = thread_wakeup */
{ 0, (sy_call_t *)kse_yield }, /* 383 = kse_yield */
{ 0, (sy_call_t *)nosys }, /* 384 = __mac_get_proc */
{ 0, (sy_call_t *)nosys }, /* 385 = __mac_set_proc */
{ 0, (sy_call_t *)nosys }, /* 386 = __mac_get_fd */
{ 0, (sy_call_t *)nosys }, /* 387 = __mac_get_file */
{ 0, (sy_call_t *)nosys }, /* 388 = __mac_set_fd */
{ 0, (sy_call_t *)nosys }, /* 389 = __mac_set_file */
};

View File

@ -0,0 +1,12 @@
# $FreeBSD$
sysnames="/dev/null"
sysproto="ia32_proto.h"
sysproto_h=_IA32_SYSPROTO_H_
syshdr="ia32_syscall.h"
syssw="ia32_sysent.c"
sysmk="/dev/null"
syshide="/dev/null"
syscallprefix="IA32_SYS_"
switchname="ia32_sysent"
namesname="ia32_syscallnames"
sysvec="\n"

View File

@ -0,0 +1,562 @@
$FreeBSD$
; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94
; from: src/sys/kern/syscalls.master 1.107
;
; System call name/number master file.
; Processed to created init_sysent.c, syscalls.c and syscall.h.
; Columns: number [M]type nargs namespc name alt{name,tag,rtyp}/comments
; number system call number, must be in order
; type one of [M]STD, [M]OBSOL, [M]UNIMPL, [M]COMPAT, [M]CPT_NOA,
; [M]LIBCOMPAT, [M]NODEF, [M]NOARGS, [M]NOPROTO, [M]NOIMPL,
; [M]NOSTD
; namespc one of POSIX, BSD, NOHIDE
; name psuedo-prototype of syscall routine
; If one of the following alts is different, then all appear:
; altname name of system call if different
; alttag name of args struct tag if different from [o]`name'"_args"
; altrtyp return type if not int (bogus - syscalls always return int)
; for UNIMPL/OBSOL, name continues with comments
; types:
; [M] e.g. like MSTD -- means the system call is MP-safe. If no
; M prefix is used, the syscall wrapper will obtain the Giant
; lock for the syscall.
; STD always included
; COMPAT included on COMPAT #ifdef
; LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
; OBSOL obsolete, not included in system, only specifies name
; UNIMPL not implemented, placeholder only
; NOSTD implemented but as a lkm that can be statically
; compiled in sysent entry will be filled with lkmsys
; so the SYSCALL_MODULE macro works
; #ifdef's, etc. may be included, and are copied to the output files.
#include <sys/param.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>
; Reserved/unimplemented system calls in the range 0-150 inclusive
; are reserved for use in future Berkeley releases.
; Additional system calls implemented in vendor and other
; redistributions should be placed in the reserved range at the end
; of the current calls.
0 STD NOHIDE { int nosys(void); } syscall nosys_args int
1 MSTD NOHIDE { void sys_exit(int rval); } exit sys_exit_args void
2 MSTD POSIX { int fork(void); }
3 MSTD POSIX { ssize_t read(int fd, void *buf, size_t nbyte); }
4 MSTD POSIX { ssize_t write(int fd, const void *buf, size_t nbyte); }
5 STD POSIX { int open(char *path, int flags, int mode); }
; XXX should be { int open(const char *path, int flags, ...); }
; but we're not ready for `const' or varargs.
; XXX man page says `mode_t mode'.
6 MSTD POSIX { int close(int fd); }
7 MSTD BSD { int wait4(int pid, int *status, int options, \
struct rusage *rusage); } wait4 wait_args int
8 COMPAT BSD { int creat(char *path, int mode); }
9 STD POSIX { int link(char *path, char *link); }
10 STD POSIX { int unlink(char *path); }
11 OBSOL NOHIDE execv
12 STD POSIX { int chdir(char *path); }
13 STD BSD { int fchdir(int fd); }
14 STD POSIX { int mknod(char *path, int mode, int dev); }
15 STD POSIX { int chmod(char *path, int mode); }
16 STD POSIX { int chown(char *path, int uid, int gid); }
17 MSTD BSD { int obreak(char *nsize); } break obreak_args int
18 STD BSD { int getfsstat(struct statfs *buf, long bufsize, \
int flags); }
19 COMPAT POSIX { long lseek(int fd, long offset, int whence); }
20 MSTD POSIX { pid_t getpid(void); }
21 STD BSD { int mount(char *type, char *path, int flags, \
caddr_t data); }
; XXX `path' should have type `const char *' but we're not ready for that.
22 STD BSD { int unmount(char *path, int flags); }
23 MSTD POSIX { int setuid(uid_t uid); }
24 MSTD POSIX { uid_t getuid(void); }
25 MSTD POSIX { uid_t geteuid(void); }
26 STD BSD { int ptrace(int req, pid_t pid, caddr_t addr, \
int data); }
27 MSTD BSD { int recvmsg(int s, struct msghdr *msg, int flags); }
28 MSTD BSD { int sendmsg(int s, caddr_t msg, int flags); }
29 MSTD BSD { int recvfrom(int s, caddr_t buf, size_t len, \
int flags, caddr_t from, int *fromlenaddr); }
30 MSTD BSD { int accept(int s, caddr_t name, int *anamelen); }
31 MSTD BSD { int getpeername(int fdes, caddr_t asa, int *alen); }
32 MSTD BSD { int getsockname(int fdes, caddr_t asa, int *alen); }
33 STD POSIX { int access(char *path, int flags); }
34 STD BSD { int chflags(char *path, int flags); }
35 STD BSD { int fchflags(int fd, int flags); }
36 STD BSD { int sync(void); }
37 MSTD POSIX { int kill(int pid, int signum); }
38 COMPAT POSIX { int stat(char *path, struct ostat *ub); }
39 MSTD POSIX { pid_t getppid(void); }
40 COMPAT POSIX { int lstat(char *path, struct ostat *ub); }
41 STD POSIX { int dup(u_int fd); }
42 STD POSIX { int pipe(void); }
43 MSTD POSIX { gid_t getegid(void); }
44 MSTD BSD { int profil(caddr_t samples, size_t size, \
size_t offset, u_int scale); }
45 STD BSD { int ktrace(const char *fname, int ops, int facs, \
int pid); }
46 MCOMPAT POSIX { int sigaction(int signum, struct osigaction *nsa, \
struct osigaction *osa); }
47 MSTD POSIX { gid_t getgid(void); }
48 MCOMPAT POSIX { int sigprocmask(int how, osigset_t mask); }
; XXX note nonstandard (bogus) calling convention - the libc stub passes
; us the mask, not a pointer to it, and we return the old mask as the
; (int) return value.
49 MSTD BSD { int getlogin(char *namebuf, u_int namelen); }
50 MSTD BSD { int setlogin(char *namebuf); }
51 MSTD BSD { int acct(char *path); }
52 MCOMPAT POSIX { int sigpending(void); }
53 MSTD BSD { int sigaltstack(stack_t *ss, stack_t *oss); }
54 MSTD POSIX { int ioctl(int fd, u_long com, caddr_t data); }
55 MSTD BSD { int reboot(int opt); }
56 STD POSIX { int revoke(char *path); }
57 STD POSIX { int symlink(char *path, char *link); }
58 STD POSIX { int readlink(char *path, char *buf, int count); }
59 MSTD POSIX { int execve(char *fname, char **argv, char **envv); }
60 MSTD POSIX { int umask(int newmask); } umask umask_args int
61 STD BSD { int chroot(char *path); }
62 MCOMPAT POSIX { int fstat(int fd, struct ostat *sb); }
63 MCOMPAT BSD { int getkerninfo(int op, char *where, size_t *size, \
int arg); } getkerninfo getkerninfo_args int
64 MCOMPAT BSD { int getpagesize(void); } \
getpagesize getpagesize_args int
65 STD BSD { int msync(void *addr, size_t len, int flags); }
66 MSTD BSD { int vfork(void); }
67 OBSOL NOHIDE vread
68 OBSOL NOHIDE vwrite
69 MSTD BSD { int sbrk(int incr); }
70 MSTD BSD { int sstk(int incr); }
71 MCOMPAT BSD { int mmap(void *addr, int len, int prot, \
int flags, int fd, long pos); }
72 MSTD BSD { int ovadvise(int anom); } vadvise ovadvise_args int
73 MSTD BSD { int munmap(void *addr, size_t len); }
74 MSTD BSD { int mprotect(const void *addr, size_t len, int prot); }
75 MSTD BSD { int madvise(void *addr, size_t len, int behav); }
76 OBSOL NOHIDE vhangup
77 OBSOL NOHIDE vlimit
78 MSTD BSD { int mincore(const void *addr, size_t len, \
char *vec); }
79 MSTD POSIX { int getgroups(u_int gidsetsize, gid_t *gidset); }
80 MSTD POSIX { int setgroups(u_int gidsetsize, gid_t *gidset); }
81 MSTD POSIX { int getpgrp(void); }
82 MSTD POSIX { int setpgid(int pid, int pgid); }
83 MSTD BSD { int setitimer(u_int which, struct itimerval *itv, \
struct itimerval *oitv); }
84 MCOMPAT BSD { int wait(void); }
85 MSTD BSD { int swapon(char *name); }
86 MSTD BSD { int getitimer(u_int which, struct itimerval *itv); }
87 MCOMPAT BSD { int gethostname(char *hostname, u_int len); } \
gethostname gethostname_args int
88 MCOMPAT BSD { int sethostname(char *hostname, u_int len); } \
sethostname sethostname_args int
89 MSTD BSD { int getdtablesize(void); }
90 MSTD POSIX { int dup2(u_int from, u_int to); }
91 UNIMPL BSD getdopt
92 MSTD POSIX { int fcntl(int fd, int cmd, long arg); }
; XXX should be { int fcntl(int fd, int cmd, ...); }
; but we're not ready for varargs.
; XXX man page says `int arg' too.
93 MSTD BSD { int select(int nd, fd_set *in, fd_set *ou, \
fd_set *ex, struct timeval *tv); }
94 UNIMPL BSD setdopt
95 STD POSIX { int fsync(int fd); }
96 MSTD BSD { int setpriority(int which, int who, int prio); }
97 MSTD BSD { int socket(int domain, int type, int protocol); }
98 MSTD BSD { int connect(int s, caddr_t name, int namelen); }
99 MCPT_NOA BSD { int accept(int s, caddr_t name, int *anamelen); } \
accept accept_args int
100 MSTD BSD { int getpriority(int which, int who); }
101 MCOMPAT BSD { int send(int s, caddr_t buf, int len, int flags); }
102 MCOMPAT BSD { int recv(int s, caddr_t buf, int len, int flags); }
103 STD BSD { int osigreturn(struct osigcontext *sigcntxp); }
104 MSTD BSD { int bind(int s, caddr_t name, int namelen); }
105 MSTD BSD { int setsockopt(int s, int level, int name, \
caddr_t val, int valsize); }
106 MSTD BSD { int listen(int s, int backlog); }
107 OBSOL NOHIDE vtimes
108 MCOMPAT BSD { int sigvec(int signum, struct sigvec *nsv, \
struct sigvec *osv); }
109 MCOMPAT BSD { int sigblock(int mask); }
110 MCOMPAT BSD { int sigsetmask(int mask); }
111 MCOMPAT POSIX { int sigsuspend(osigset_t mask); }
; XXX note nonstandard (bogus) calling convention - the libc stub passes
; us the mask, not a pointer to it.
112 MCOMPAT BSD { int sigstack(struct sigstack *nss, \
struct sigstack *oss); }
113 MCOMPAT BSD { int recvmsg(int s, struct omsghdr *msg, int flags); }
114 MCOMPAT BSD { int sendmsg(int s, caddr_t msg, int flags); }
115 OBSOL NOHIDE vtrace
116 MSTD BSD { int gettimeofday(struct timeval *tp, \
struct timezone *tzp); }
117 MSTD BSD { int getrusage(int who, struct rusage *rusage); }
118 MSTD BSD { int getsockopt(int s, int level, int name, \
caddr_t val, int *avalsize); }
119 UNIMPL NOHIDE resuba (BSD/OS 2.x)
120 MSTD BSD { int readv(int fd, struct iovec *iovp, u_int iovcnt); }
121 MSTD BSD { int writev(int fd, struct iovec *iovp, \
u_int iovcnt); }
122 MSTD BSD { int settimeofday(struct timeval *tv, \
struct timezone *tzp); }
123 STD BSD { int fchown(int fd, int uid, int gid); }
124 STD BSD { int fchmod(int fd, int mode); }
125 MCPT_NOA BSD { int recvfrom(int s, caddr_t buf, size_t len, \
int flags, caddr_t from, int *fromlenaddr); } \
recvfrom recvfrom_args int
126 MSTD BSD { int setreuid(int ruid, int euid); }
127 MSTD BSD { int setregid(int rgid, int egid); }
128 STD POSIX { int rename(char *from, char *to); }
129 COMPAT BSD { int truncate(char *path, long length); }
130 COMPAT BSD { int ftruncate(int fd, long length); }
131 MSTD BSD { int flock(int fd, int how); }
132 STD POSIX { int mkfifo(char *path, int mode); }
133 MSTD BSD { int sendto(int s, caddr_t buf, size_t len, \
int flags, caddr_t to, int tolen); }
134 MSTD BSD { int shutdown(int s, int how); }
135 MSTD BSD { int socketpair(int domain, int type, int protocol, \
int *rsv); }
136 STD POSIX { int mkdir(char *path, int mode); }
137 STD POSIX { int rmdir(char *path); }
138 STD BSD { int utimes(char *path, struct timeval *tptr); }
139 OBSOL NOHIDE 4.2 sigreturn
140 MSTD BSD { int adjtime(struct timeval *delta, \
struct timeval *olddelta); }
141 MCOMPAT BSD { int getpeername(int fdes, caddr_t asa, int *alen); }
142 MCOMPAT BSD { long gethostid(void); }
143 MCOMPAT BSD { int sethostid(long hostid); }
144 MCOMPAT BSD { int getrlimit(u_int which, struct orlimit *rlp); }
145 MCOMPAT BSD { int setrlimit(u_int which, struct orlimit *rlp); }
146 MCOMPAT BSD { int killpg(int pgid, int signum); }
147 MSTD POSIX { int setsid(void); }
148 STD BSD { int quotactl(char *path, int cmd, int uid, \
caddr_t arg); }
149 MCOMPAT BSD { int quota(void); }
150 MCPT_NOA BSD { int getsockname(int fdec, caddr_t asa, int *alen); }\
getsockname getsockname_args int
; Syscalls 151-180 inclusive are reserved for vendor-specific
; system calls. (This includes various calls added for compatibity
; with other Unix variants.)
; Some of these calls are now supported by BSD...
151 UNIMPL NOHIDE sem_lock (BSD/OS 2.x)
152 UNIMPL NOHIDE sem_wakeup (BSD/OS 2.x)
153 UNIMPL NOHIDE asyncdaemon (BSD/OS 2.x)
154 UNIMPL NOHIDE nosys
; 155 is initialized by the NFS code, if present.
155 MNOIMPL BSD { int nfssvc(int flag, caddr_t argp); }
156 COMPAT BSD { int getdirentries(int fd, char *buf, u_int count, \
long *basep); }
157 STD BSD { int statfs(char *path, struct statfs *buf); }
158 STD BSD { int fstatfs(int fd, struct statfs *buf); }
159 UNIMPL NOHIDE nosys
160 UNIMPL NOHIDE nosys
161 STD BSD { int getfh(char *fname, struct fhandle *fhp); }
162 MSTD BSD { int getdomainname(char *domainname, int len); }
163 MSTD BSD { int setdomainname(char *domainname, int len); }
164 MSTD BSD { int uname(struct utsname *name); }
165 STD BSD { int sysarch(int op, char *parms); }
166 MSTD BSD { int rtprio(int function, pid_t pid, \
struct rtprio *rtp); }
167 UNIMPL NOHIDE nosys
168 UNIMPL NOHIDE nosys
; 169 is initialized by the SYSVSEM code if present or loaded
169 MNOSTD BSD { int semsys(int which, int a2, int a3, int a4, \
int a5); }
; 169 is initialized by the SYSVMSG code if present or loaded
; XXX should be { int semsys(int which, ...); }
170 MNOSTD BSD { int msgsys(int which, int a2, int a3, int a4, \
int a5, int a6); }
; 169 is initialized by the SYSVSHM code if present or loaded
; XXX should be { int msgsys(int which, ...); }
171 MNOSTD BSD { int shmsys(int which, int a2, int a3, int a4); }
; XXX should be { int shmsys(int which, ...); }
172 UNIMPL NOHIDE nosys
173 MSTD POSIX { ssize_t pread(int fd, void *buf, size_t nbyte, \
int pad, off_t offset); }
174 MSTD POSIX { ssize_t pwrite(int fd, const void *buf, \
size_t nbyte, int pad, off_t offset); }
175 UNIMPL NOHIDE nosys
176 MSTD BSD { int ntp_adjtime(struct timex *tp); }
177 UNIMPL NOHIDE sfork (BSD/OS 2.x)
178 UNIMPL NOHIDE getdescriptor (BSD/OS 2.x)
179 UNIMPL NOHIDE setdescriptor (BSD/OS 2.x)
180 UNIMPL NOHIDE nosys
; Syscalls 181-199 are used by/reserved for BSD
181 MSTD POSIX { int setgid(gid_t gid); }
182 MSTD BSD { int setegid(gid_t egid); }
183 MSTD BSD { int seteuid(uid_t euid); }
184 UNIMPL BSD lfs_bmapv
185 UNIMPL BSD lfs_markv
186 UNIMPL BSD lfs_segclean
187 UNIMPL BSD lfs_segwait
188 STD POSIX { int stat(char *path, struct stat *ub); }
189 MSTD POSIX { int fstat(int fd, struct stat *sb); }
190 STD POSIX { int lstat(char *path, struct stat *ub); }
191 STD POSIX { int pathconf(char *path, int name); }
192 MSTD POSIX { int fpathconf(int fd, int name); }
193 UNIMPL NOHIDE nosys
194 MSTD BSD { int getrlimit(u_int which, \
struct rlimit *rlp); } \
getrlimit __getrlimit_args int
195 MSTD BSD { int setrlimit(u_int which, \
struct rlimit *rlp); } \
setrlimit __setrlimit_args int
196 STD BSD { int getdirentries(int fd, char *buf, u_int count, \
long *basep); }
197 MSTD BSD { caddr_t mmap(caddr_t addr, size_t len, int prot, \
int flags, int fd, int pad, off_t pos); }
198 STD NOHIDE { int nosys(void); } __syscall __syscall_args int
199 STD POSIX { off_t lseek(int fd, int pad, off_t offset, \
int whence); }
200 STD BSD { int truncate(char *path, int pad, off_t length); }
201 STD BSD { int ftruncate(int fd, int pad, off_t length); }
202 MSTD BSD { int __sysctl(int *name, u_int namelen, void *old, \
size_t *oldlenp, void *new, size_t newlen); } \
__sysctl sysctl_args int
; properly, __sysctl should be a NOHIDE, but making an exception
; here allows to avoid one in libc/sys/Makefile.inc.
203 MSTD BSD { int mlock(const void *addr, size_t len); }
204 MSTD BSD { int munlock(const void *addr, size_t len); }
205 STD BSD { int undelete(char *path); }
206 STD BSD { int futimes(int fd, struct timeval *tptr); }
207 MSTD BSD { int getpgid(pid_t pid); }
208 UNIMPL NOHIDE newreboot (NetBSD)
209 MSTD BSD { int poll(struct pollfd *fds, u_int nfds, \
int timeout); }
;
; The following are reserved for loadable syscalls
;
210 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
211 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
212 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
213 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
214 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
215 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
216 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
217 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
218 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
219 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
;
; The following were introduced with NetBSD/4.4Lite-2
; They are initialized by thier respective modules/sysinits
220 MNOSTD BSD { int __semctl(int semid, int semnum, int cmd, \
union semun *arg); }
221 MNOSTD BSD { int semget(key_t key, int nsems, int semflg); }
222 MNOSTD BSD { int semop(int semid, struct sembuf *sops, \
u_int nsops); }
223 UNIMPL NOHIDE semconfig
224 MNOSTD BSD { int msgctl(int msqid, int cmd, \
struct msqid_ds *buf); }
225 MNOSTD BSD { int msgget(key_t key, int msgflg); }
226 MNOSTD BSD { int msgsnd(int msqid, void *msgp, size_t msgsz, \
int msgflg); }
227 MNOSTD BSD { int msgrcv(int msqid, void *msgp, size_t msgsz, \
long msgtyp, int msgflg); }
228 MNOSTD BSD { int shmat(int shmid, void *shmaddr, int shmflg); }
229 MNOSTD BSD { int shmctl(int shmid, int cmd, \
struct shmid_ds *buf); }
230 MNOSTD BSD { int shmdt(void *shmaddr); }
231 MNOSTD BSD { int shmget(key_t key, int size, int shmflg); }
;
232 MSTD POSIX { int clock_gettime(clockid_t clock_id, \
struct timespec *tp); }
233 MSTD POSIX { int clock_settime(clockid_t clock_id, \
const struct timespec *tp); }
234 MSTD POSIX { int clock_getres(clockid_t clock_id, \
struct timespec *tp); }
235 UNIMPL NOHIDE timer_create
236 UNIMPL NOHIDE timer_delete
237 UNIMPL NOHIDE timer_settime
238 UNIMPL NOHIDE timer_gettime
239 UNIMPL NOHIDE timer_getoverrun
240 MSTD POSIX { int nanosleep(const struct timespec *rqtp, \
struct timespec *rmtp); }
241 UNIMPL NOHIDE nosys
242 UNIMPL NOHIDE nosys
243 UNIMPL NOHIDE nosys
244 UNIMPL NOHIDE nosys
245 UNIMPL NOHIDE nosys
246 UNIMPL NOHIDE nosys
247 UNIMPL NOHIDE nosys
248 UNIMPL NOHIDE nosys
249 UNIMPL NOHIDE nosys
; syscall numbers initially used in OpenBSD
250 MSTD BSD { int minherit(void *addr, size_t len, int inherit); }
251 MSTD BSD { int rfork(int flags); }
252 MSTD BSD { int openbsd_poll(struct pollfd *fds, u_int nfds, \
int timeout); }
253 STD BSD { int issetugid(void); }
254 STD BSD { int lchown(char *path, int uid, int gid); }
255 UNIMPL NOHIDE nosys
256 UNIMPL NOHIDE nosys
257 UNIMPL NOHIDE nosys
258 UNIMPL NOHIDE nosys
259 UNIMPL NOHIDE nosys
260 UNIMPL NOHIDE nosys
261 UNIMPL NOHIDE nosys
262 UNIMPL NOHIDE nosys
263 UNIMPL NOHIDE nosys
264 UNIMPL NOHIDE nosys
265 UNIMPL NOHIDE nosys
266 UNIMPL NOHIDE nosys
267 UNIMPL NOHIDE nosys
268 UNIMPL NOHIDE nosys
269 UNIMPL NOHIDE nosys
270 UNIMPL NOHIDE nosys
271 UNIMPL NOHIDE nosys
272 STD BSD { int getdents(int fd, char *buf, size_t count); }
273 UNIMPL NOHIDE nosys
274 STD BSD { int lchmod(char *path, mode_t mode); }
275 NOPROTO BSD { int lchown(char *path, uid_t uid, gid_t gid); } netbsd_lchown lchown_args int
276 STD BSD { int lutimes(char *path, struct timeval *tptr); }
277 MNOPROTO BSD { int msync(void *addr, size_t len, int flags); } netbsd_msync msync_args int
278 STD BSD { int nstat(char *path, struct nstat *ub); }
279 MSTD BSD { int nfstat(int fd, struct nstat *sb); }
280 STD BSD { int nlstat(char *path, struct nstat *ub); }
281 UNIMPL NOHIDE nosys
282 UNIMPL NOHIDE nosys
283 UNIMPL NOHIDE nosys
284 UNIMPL NOHIDE nosys
285 UNIMPL NOHIDE nosys
286 UNIMPL NOHIDE nosys
287 UNIMPL NOHIDE nosys
288 UNIMPL NOHIDE nosys
289 UNIMPL NOHIDE nosys
290 UNIMPL NOHIDE nosys
291 UNIMPL NOHIDE nosys
292 UNIMPL NOHIDE nosys
293 UNIMPL NOHIDE nosys
294 UNIMPL NOHIDE nosys
295 UNIMPL NOHIDE nosys
296 UNIMPL NOHIDE nosys
; XXX 297 is 300 in NetBSD
297 STD BSD { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); }
298 STD BSD { int fhopen(const struct fhandle *u_fhp, int flags); }
299 STD BSD { int fhstat(const struct fhandle *u_fhp, struct stat *sb); }
; syscall numbers for FreeBSD
300 MSTD BSD { int modnext(int modid); }
301 MSTD BSD { int modstat(int modid, struct module_stat* stat); }
302 MSTD BSD { int modfnext(int modid); }
303 MSTD BSD { int modfind(const char *name); }
304 MSTD BSD { int kldload(const char *file); }
305 MSTD BSD { int kldunload(int fileid); }
306 MSTD BSD { int kldfind(const char *file); }
307 MSTD BSD { int kldnext(int fileid); }
308 MSTD BSD { int kldstat(int fileid, struct kld_file_stat* stat); }
309 MSTD BSD { int kldfirstmod(int fileid); }
310 MSTD BSD { int getsid(pid_t pid); }
311 MSTD BSD { int setresuid(uid_t ruid, uid_t euid, uid_t suid); }
312 MSTD BSD { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); }
313 OBSOL NOHIDE signanosleep
314 NOSTD BSD { int aio_return(struct aiocb *aiocbp); }
315 NOSTD BSD { int aio_suspend(struct aiocb * const * aiocbp, int nent, const struct timespec *timeout); }
316 NOSTD BSD { int aio_cancel(int fd, struct aiocb *aiocbp); }
317 NOSTD BSD { int aio_error(struct aiocb *aiocbp); }
318 NOSTD BSD { int aio_read(struct aiocb *aiocbp); }
319 NOSTD BSD { int aio_write(struct aiocb *aiocbp); }
320 NOSTD BSD { int lio_listio(int mode, struct aiocb * const *acb_list, int nent, struct sigevent *sig); }
321 MSTD BSD { int yield(void); }
322 OBSOL NOHIDE thr_sleep
323 OBSOL NOHIDE thr_wakeup
324 MSTD BSD { int mlockall(int how); }
325 MSTD BSD { int munlockall(void); }
326 STD BSD { int __getcwd(u_char *buf, u_int buflen); }
327 MSTD POSIX { int sched_setparam (pid_t pid, const struct sched_param *param); }
328 MSTD POSIX { int sched_getparam (pid_t pid, struct sched_param *param); }
329 MSTD POSIX { int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); }
330 MSTD POSIX { int sched_getscheduler (pid_t pid); }
331 MSTD POSIX { int sched_yield (void); }
332 MSTD POSIX { int sched_get_priority_max (int policy); }
333 MSTD POSIX { int sched_get_priority_min (int policy); }
334 MSTD POSIX { int sched_rr_get_interval (pid_t pid, struct timespec *interval); }
335 STD BSD { int utrace(const void *addr, size_t len); }
336 MSTD BSD { int sendfile(int fd, int s, off_t offset, size_t nbytes, \
struct sf_hdtr *hdtr, off_t *sbytes, int flags); }
337 STD BSD { int kldsym(int fileid, int cmd, void *data); }
338 MSTD BSD { int jail(struct jail *jail); }
339 UNIMPL BSD pioctl
340 MSTD POSIX { int sigprocmask(int how, const sigset_t *set, \
sigset_t *oset); }
341 MSTD POSIX { int sigsuspend(const sigset_t *sigmask); }
342 MSTD POSIX { int sigaction(int sig, const struct sigaction *act, \
struct sigaction *oact); }
343 MSTD POSIX { int sigpending(sigset_t *set); }
344 STD BSD { int sigreturn(const struct __ucontext *sigcntxp); }
345 UNIMPL NOHIDE sigtimedwait
346 UNIMPL NOHIDE sigwaitinfo
347 MSTD BSD { int __acl_get_file(const char *path, \
acl_type_t type, struct acl *aclp); }
348 MSTD BSD { int __acl_set_file(const char *path, \
acl_type_t type, struct acl *aclp); }
349 MSTD BSD { int __acl_get_fd(int filedes, acl_type_t type, \
struct acl *aclp); }
350 MSTD BSD { int __acl_set_fd(int filedes, acl_type_t type, \
struct acl *aclp); }
351 MSTD BSD { int __acl_delete_file(const char *path, \
acl_type_t type); }
352 MSTD BSD { int __acl_delete_fd(int filedes, acl_type_t type); }
353 MSTD BSD { int __acl_aclcheck_file(const char *path, \
acl_type_t type, struct acl *aclp); }
354 MSTD BSD { int __acl_aclcheck_fd(int filedes, acl_type_t type, \
struct acl *aclp); }
355 STD BSD { int extattrctl(const char *path, int cmd, \
const char *filename, int attrnamespace, \
const char *attrname); }
356 STD BSD { int extattr_set_file(const char *path, \
int attrnamespace, const char *attrname, \
void *data, size_t nbytes); }
357 STD BSD { ssize_t extattr_get_file(const char *path, \
int attrnamespace, const char *attrname, \
void *data, size_t nbytes); }
358 STD BSD { int extattr_delete_file(const char *path, \
int attrnamespace, const char *attrname); }
359 NOSTD BSD { int aio_waitcomplete(struct aiocb **aiocbp, struct timespec *timeout); }
360 MSTD BSD { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); }
361 MSTD BSD { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); }
362 MSTD BSD { int kqueue(void); }
363 MSTD BSD { int kevent(int fd, \
const struct kevent *changelist, int nchanges, \
struct kevent *eventlist, int nevents, \
const struct timespec *timeout); }
364 STD BSD { int __cap_get_proc(struct cap *cap_p); }
365 STD BSD { int __cap_set_proc(struct cap *cap_p); }
366 STD BSD { int __cap_get_fd(int fd, struct cap *cap_p); }
367 STD BSD { int __cap_get_file(const char *path_p, struct cap *cap_p); }
368 STD BSD { int __cap_set_fd(int fd, struct cap *cap_p); }
369 STD BSD { int __cap_set_file(const char *path_p, struct cap *cap_p); }
370 NODEF NOHIDE lkmressys lkmressys nosys_args int
371 STD BSD { int extattr_set_fd(int fd, int attrnamespace, \
const char *attrname, void *data, \
size_t nbytes); }
372 STD BSD { ssize_t extattr_get_fd(int fd, int attrnamespace, \
const char *attrname, void *data, size_t nbytes); }
373 STD BSD { int extattr_delete_fd(int fd, int attrnamespace, \
const char *attrname); }
374 MSTD BSD { int __setugid(int flag); }
375 NOIMPL BSD { int nfsclnt(int flag, caddr_t argp); }
376 STD BSD { int eaccess(char *path, int flags); }
377 UNIMPL BSD afs_syscall
378 STD BSD { int nmount(struct iovec *iovp, unsigned int iovcnt, \
int flags); }
379 STD BSD { int kse_exit(void); }
380 STD BSD { int kse_wakeup(void); }
381 STD BSD { int kse_new(struct kse_mailbox * mbx, \
int new_grp_flag); }
382 STD BSD { int thread_wakeup(struct thread_mailbox *tmbx); }
383 STD BSD { int kse_yield(void); }
384 UNIMPL BSD __mac_get_proc
385 UNIMPL BSD __mac_set_proc
386 UNIMPL BSD __mac_get_fd
387 UNIMPL BSD __mac_get_file
388 UNIMPL BSD __mac_set_fd
389 UNIMPL BSD __mac_set_file

View File

@ -0,0 +1,15 @@
# Makefile for syscall tables
#
# $FreeBSD$
all:
@echo "make sysent only"
sysent: ia32_sysent.c ia32_syscall.h ia32_proto.h
ia32_sysent.c ia32_syscall.h ia32_proto.h: ../../kern/makesyscalls.sh \
syscalls.master syscalls.conf
-mv -f ia32_sysent.c ia32_sysent.c.bak
-mv -f ia32_syscall.h ia32_syscall.h.bak
-mv -f ia32_proto.h ia32_proto.h.bak
sh ../../kern/makesyscalls.sh syscalls.master syscalls.conf

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,306 @@
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD
*/
#define IA32_SYS_syscall 0
#define IA32_SYS_exit 1
#define IA32_SYS_fork 2
#define IA32_SYS_read 3
#define IA32_SYS_write 4
#define IA32_SYS_open 5
#define IA32_SYS_close 6
#define IA32_SYS_wait4 7
/* 8 is old creat */
#define IA32_SYS_link 9
#define IA32_SYS_unlink 10
/* 11 is obsolete execv */
#define IA32_SYS_chdir 12
#define IA32_SYS_fchdir 13
#define IA32_SYS_mknod 14
#define IA32_SYS_chmod 15
#define IA32_SYS_chown 16
#define IA32_SYS_break 17
#define IA32_SYS_getfsstat 18
/* 19 is old lseek */
#define IA32_SYS_getpid 20
#define IA32_SYS_mount 21
#define IA32_SYS_unmount 22
#define IA32_SYS_setuid 23
#define IA32_SYS_getuid 24
#define IA32_SYS_geteuid 25
#define IA32_SYS_ptrace 26
#define IA32_SYS_recvmsg 27
#define IA32_SYS_sendmsg 28
#define IA32_SYS_recvfrom 29
#define IA32_SYS_accept 30
#define IA32_SYS_getpeername 31
#define IA32_SYS_getsockname 32
#define IA32_SYS_access 33
#define IA32_SYS_chflags 34
#define IA32_SYS_fchflags 35
#define IA32_SYS_sync 36
#define IA32_SYS_kill 37
/* 38 is old stat */
#define IA32_SYS_getppid 39
/* 40 is old lstat */
#define IA32_SYS_dup 41
#define IA32_SYS_pipe 42
#define IA32_SYS_getegid 43
#define IA32_SYS_profil 44
#define IA32_SYS_ktrace 45
/* 46 is old sigaction */
#define IA32_SYS_getgid 47
/* 48 is old sigprocmask */
#define IA32_SYS_getlogin 49
#define IA32_SYS_setlogin 50
#define IA32_SYS_acct 51
/* 52 is old sigpending */
#define IA32_SYS_sigaltstack 53
#define IA32_SYS_ioctl 54
#define IA32_SYS_reboot 55
#define IA32_SYS_revoke 56
#define IA32_SYS_symlink 57
#define IA32_SYS_readlink 58
#define IA32_SYS_execve 59
#define IA32_SYS_umask 60
#define IA32_SYS_chroot 61
/* 62 is old fstat */
/* 63 is old getkerninfo */
/* 64 is old getpagesize */
#define IA32_SYS_msync 65
#define IA32_SYS_vfork 66
/* 67 is obsolete vread */
/* 68 is obsolete vwrite */
#define IA32_SYS_sbrk 69
#define IA32_SYS_sstk 70
/* 71 is old mmap */
#define IA32_SYS_vadvise 72
#define IA32_SYS_munmap 73
#define IA32_SYS_mprotect 74
#define IA32_SYS_madvise 75
/* 76 is obsolete vhangup */
/* 77 is obsolete vlimit */
#define IA32_SYS_mincore 78
#define IA32_SYS_getgroups 79
#define IA32_SYS_setgroups 80
#define IA32_SYS_getpgrp 81
#define IA32_SYS_setpgid 82
#define IA32_SYS_setitimer 83
/* 84 is old wait */
#define IA32_SYS_swapon 85
#define IA32_SYS_getitimer 86
/* 87 is old gethostname */
/* 88 is old sethostname */
#define IA32_SYS_getdtablesize 89
#define IA32_SYS_dup2 90
#define IA32_SYS_fcntl 92
#define IA32_SYS_select 93
#define IA32_SYS_fsync 95
#define IA32_SYS_setpriority 96
#define IA32_SYS_socket 97
#define IA32_SYS_connect 98
/* 99 is old accept */
#define IA32_SYS_getpriority 100
/* 101 is old send */
/* 102 is old recv */
#define IA32_SYS_osigreturn 103
#define IA32_SYS_bind 104
#define IA32_SYS_setsockopt 105
#define IA32_SYS_listen 106
/* 107 is obsolete vtimes */
/* 108 is old sigvec */
/* 109 is old sigblock */
/* 110 is old sigsetmask */
/* 111 is old sigsuspend */
/* 112 is old sigstack */
/* 113 is old recvmsg */
/* 114 is old sendmsg */
/* 115 is obsolete vtrace */
#define IA32_SYS_gettimeofday 116
#define IA32_SYS_getrusage 117
#define IA32_SYS_getsockopt 118
#define IA32_SYS_readv 120
#define IA32_SYS_writev 121
#define IA32_SYS_settimeofday 122
#define IA32_SYS_fchown 123
#define IA32_SYS_fchmod 124
/* 125 is old recvfrom */
#define IA32_SYS_setreuid 126
#define IA32_SYS_setregid 127
#define IA32_SYS_rename 128
/* 129 is old truncate */
/* 130 is old ftruncate */
#define IA32_SYS_flock 131
#define IA32_SYS_mkfifo 132
#define IA32_SYS_sendto 133
#define IA32_SYS_shutdown 134
#define IA32_SYS_socketpair 135
#define IA32_SYS_mkdir 136
#define IA32_SYS_rmdir 137
#define IA32_SYS_utimes 138
/* 139 is obsolete 4.2 sigreturn */
#define IA32_SYS_adjtime 140
/* 141 is old getpeername */
/* 142 is old gethostid */
/* 143 is old sethostid */
/* 144 is old getrlimit */
/* 145 is old setrlimit */
/* 146 is old killpg */
#define IA32_SYS_setsid 147
#define IA32_SYS_quotactl 148
/* 149 is old quota */
/* 150 is old getsockname */
#define IA32_SYS_nfssvc 155
/* 156 is old getdirentries */
#define IA32_SYS_statfs 157
#define IA32_SYS_fstatfs 158
#define IA32_SYS_getfh 161
#define IA32_SYS_getdomainname 162
#define IA32_SYS_setdomainname 163
#define IA32_SYS_uname 164
#define IA32_SYS_sysarch 165
#define IA32_SYS_rtprio 166
#define IA32_SYS_semsys 169
#define IA32_SYS_msgsys 170
#define IA32_SYS_shmsys 171
#define IA32_SYS_pread 173
#define IA32_SYS_pwrite 174
#define IA32_SYS_ntp_adjtime 176
#define IA32_SYS_setgid 181
#define IA32_SYS_setegid 182
#define IA32_SYS_seteuid 183
#define IA32_SYS_stat 188
#define IA32_SYS_fstat 189
#define IA32_SYS_lstat 190
#define IA32_SYS_pathconf 191
#define IA32_SYS_fpathconf 192
#define IA32_SYS_getrlimit 194
#define IA32_SYS_setrlimit 195
#define IA32_SYS_getdirentries 196
#define IA32_SYS_mmap 197
#define IA32_SYS___syscall 198
#define IA32_SYS_lseek 199
#define IA32_SYS_truncate 200
#define IA32_SYS_ftruncate 201
#define IA32_SYS___sysctl 202
#define IA32_SYS_mlock 203
#define IA32_SYS_munlock 204
#define IA32_SYS_undelete 205
#define IA32_SYS_futimes 206
#define IA32_SYS_getpgid 207
#define IA32_SYS_poll 209
#define IA32_SYS___semctl 220
#define IA32_SYS_semget 221
#define IA32_SYS_semop 222
#define IA32_SYS_msgctl 224
#define IA32_SYS_msgget 225
#define IA32_SYS_msgsnd 226
#define IA32_SYS_msgrcv 227
#define IA32_SYS_shmat 228
#define IA32_SYS_shmctl 229
#define IA32_SYS_shmdt 230
#define IA32_SYS_shmget 231
#define IA32_SYS_clock_gettime 232
#define IA32_SYS_clock_settime 233
#define IA32_SYS_clock_getres 234
#define IA32_SYS_nanosleep 240
#define IA32_SYS_minherit 250
#define IA32_SYS_rfork 251
#define IA32_SYS_openbsd_poll 252
#define IA32_SYS_issetugid 253
#define IA32_SYS_lchown 254
#define IA32_SYS_getdents 272
#define IA32_SYS_lchmod 274
#define IA32_SYS_netbsd_lchown 275
#define IA32_SYS_lutimes 276
#define IA32_SYS_netbsd_msync 277
#define IA32_SYS_nstat 278
#define IA32_SYS_nfstat 279
#define IA32_SYS_nlstat 280
#define IA32_SYS_fhstatfs 297
#define IA32_SYS_fhopen 298
#define IA32_SYS_fhstat 299
#define IA32_SYS_modnext 300
#define IA32_SYS_modstat 301
#define IA32_SYS_modfnext 302
#define IA32_SYS_modfind 303
#define IA32_SYS_kldload 304
#define IA32_SYS_kldunload 305
#define IA32_SYS_kldfind 306
#define IA32_SYS_kldnext 307
#define IA32_SYS_kldstat 308
#define IA32_SYS_kldfirstmod 309
#define IA32_SYS_getsid 310
#define IA32_SYS_setresuid 311
#define IA32_SYS_setresgid 312
/* 313 is obsolete signanosleep */
#define IA32_SYS_aio_return 314
#define IA32_SYS_aio_suspend 315
#define IA32_SYS_aio_cancel 316
#define IA32_SYS_aio_error 317
#define IA32_SYS_aio_read 318
#define IA32_SYS_aio_write 319
#define IA32_SYS_lio_listio 320
#define IA32_SYS_yield 321
/* 322 is obsolete thr_sleep */
/* 323 is obsolete thr_wakeup */
#define IA32_SYS_mlockall 324
#define IA32_SYS_munlockall 325
#define IA32_SYS___getcwd 326
#define IA32_SYS_sched_setparam 327
#define IA32_SYS_sched_getparam 328
#define IA32_SYS_sched_setscheduler 329
#define IA32_SYS_sched_getscheduler 330
#define IA32_SYS_sched_yield 331
#define IA32_SYS_sched_get_priority_max 332
#define IA32_SYS_sched_get_priority_min 333
#define IA32_SYS_sched_rr_get_interval 334
#define IA32_SYS_utrace 335
#define IA32_SYS_sendfile 336
#define IA32_SYS_kldsym 337
#define IA32_SYS_jail 338
#define IA32_SYS_sigprocmask 340
#define IA32_SYS_sigsuspend 341
#define IA32_SYS_sigaction 342
#define IA32_SYS_sigpending 343
#define IA32_SYS_sigreturn 344
#define IA32_SYS___acl_get_file 347
#define IA32_SYS___acl_set_file 348
#define IA32_SYS___acl_get_fd 349
#define IA32_SYS___acl_set_fd 350
#define IA32_SYS___acl_delete_file 351
#define IA32_SYS___acl_delete_fd 352
#define IA32_SYS___acl_aclcheck_file 353
#define IA32_SYS___acl_aclcheck_fd 354
#define IA32_SYS_extattrctl 355
#define IA32_SYS_extattr_set_file 356
#define IA32_SYS_extattr_get_file 357
#define IA32_SYS_extattr_delete_file 358
#define IA32_SYS_aio_waitcomplete 359
#define IA32_SYS_getresuid 360
#define IA32_SYS_getresgid 361
#define IA32_SYS_kqueue 362
#define IA32_SYS_kevent 363
#define IA32_SYS___cap_get_proc 364
#define IA32_SYS___cap_set_proc 365
#define IA32_SYS___cap_get_fd 366
#define IA32_SYS___cap_get_file 367
#define IA32_SYS___cap_set_fd 368
#define IA32_SYS___cap_set_file 369
#define IA32_SYS_extattr_set_fd 371
#define IA32_SYS_extattr_get_fd 372
#define IA32_SYS_extattr_delete_fd 373
#define IA32_SYS___setugid 374
#define IA32_SYS_nfsclnt 375
#define IA32_SYS_eaccess 376
#define IA32_SYS_nmount 378
#define IA32_SYS_kse_exit 379
#define IA32_SYS_kse_wakeup 380
#define IA32_SYS_kse_new 381
#define IA32_SYS_thread_wakeup 382
#define IA32_SYS_kse_yield 383
#define IA32_SYS_MAXSYSCALL 390

View File

@ -0,0 +1,415 @@
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD
*/
#include "opt_compat.h"
#include <sys/param.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>
#define AS(name) (sizeof(struct name) / sizeof(register_t))
#ifdef COMPAT_43
#define compat(n, name) n, (sy_call_t *)__CONCAT(o,name)
#else
#define compat(n, name) 0, (sy_call_t *)nosys
#endif
/* The casts are bogus but will do for now. */
struct sysent ia32_sysent[] = {
{ 0, (sy_call_t *)nosys }, /* 0 = syscall */
{ SYF_MPSAFE | AS(sys_exit_args), (sy_call_t *)sys_exit }, /* 1 = exit */
{ SYF_MPSAFE | 0, (sy_call_t *)fork }, /* 2 = fork */
{ SYF_MPSAFE | AS(read_args), (sy_call_t *)read }, /* 3 = read */
{ SYF_MPSAFE | AS(write_args), (sy_call_t *)write }, /* 4 = write */
{ AS(open_args), (sy_call_t *)open }, /* 5 = open */
{ SYF_MPSAFE | AS(close_args), (sy_call_t *)close }, /* 6 = close */
{ SYF_MPSAFE | AS(wait_args), (sy_call_t *)wait4 }, /* 7 = wait4 */
{ compat(AS(ocreat_args),creat) }, /* 8 = old creat */
{ AS(link_args), (sy_call_t *)link }, /* 9 = link */
{ AS(unlink_args), (sy_call_t *)unlink }, /* 10 = unlink */
{ 0, (sy_call_t *)nosys }, /* 11 = obsolete execv */
{ AS(chdir_args), (sy_call_t *)chdir }, /* 12 = chdir */
{ AS(fchdir_args), (sy_call_t *)fchdir }, /* 13 = fchdir */
{ AS(mknod_args), (sy_call_t *)mknod }, /* 14 = mknod */
{ AS(chmod_args), (sy_call_t *)chmod }, /* 15 = chmod */
{ AS(chown_args), (sy_call_t *)chown }, /* 16 = chown */
{ SYF_MPSAFE | AS(obreak_args), (sy_call_t *)obreak }, /* 17 = break */
{ AS(getfsstat_args), (sy_call_t *)getfsstat }, /* 18 = getfsstat */
{ compat(AS(olseek_args),lseek) }, /* 19 = old lseek */
{ SYF_MPSAFE | 0, (sy_call_t *)getpid }, /* 20 = getpid */
{ AS(mount_args), (sy_call_t *)mount }, /* 21 = mount */
{ AS(unmount_args), (sy_call_t *)unmount }, /* 22 = unmount */
{ SYF_MPSAFE | AS(setuid_args), (sy_call_t *)setuid }, /* 23 = setuid */
{ SYF_MPSAFE | 0, (sy_call_t *)getuid }, /* 24 = getuid */
{ SYF_MPSAFE | 0, (sy_call_t *)geteuid }, /* 25 = geteuid */
{ AS(ptrace_args), (sy_call_t *)ptrace }, /* 26 = ptrace */
{ SYF_MPSAFE | AS(recvmsg_args), (sy_call_t *)recvmsg }, /* 27 = recvmsg */
{ SYF_MPSAFE | AS(sendmsg_args), (sy_call_t *)sendmsg }, /* 28 = sendmsg */
{ SYF_MPSAFE | AS(recvfrom_args), (sy_call_t *)recvfrom }, /* 29 = recvfrom */
{ SYF_MPSAFE | AS(accept_args), (sy_call_t *)accept }, /* 30 = accept */
{ SYF_MPSAFE | AS(getpeername_args), (sy_call_t *)getpeername }, /* 31 = getpeername */
{ SYF_MPSAFE | AS(getsockname_args), (sy_call_t *)getsockname }, /* 32 = getsockname */
{ AS(access_args), (sy_call_t *)access }, /* 33 = access */
{ AS(chflags_args), (sy_call_t *)chflags }, /* 34 = chflags */
{ AS(fchflags_args), (sy_call_t *)fchflags }, /* 35 = fchflags */
{ 0, (sy_call_t *)sync }, /* 36 = sync */
{ SYF_MPSAFE | AS(kill_args), (sy_call_t *)kill }, /* 37 = kill */
{ compat(AS(ostat_args),stat) }, /* 38 = old stat */
{ SYF_MPSAFE | 0, (sy_call_t *)getppid }, /* 39 = getppid */
{ compat(AS(olstat_args),lstat) }, /* 40 = old lstat */
{ AS(dup_args), (sy_call_t *)dup }, /* 41 = dup */
{ 0, (sy_call_t *)pipe }, /* 42 = pipe */
{ SYF_MPSAFE | 0, (sy_call_t *)getegid }, /* 43 = getegid */
{ SYF_MPSAFE | AS(profil_args), (sy_call_t *)profil }, /* 44 = profil */
{ AS(ktrace_args), (sy_call_t *)ktrace }, /* 45 = ktrace */
{ compat(SYF_MPSAFE | AS(osigaction_args),sigaction) }, /* 46 = old sigaction */
{ SYF_MPSAFE | 0, (sy_call_t *)getgid }, /* 47 = getgid */
{ compat(SYF_MPSAFE | AS(osigprocmask_args),sigprocmask) }, /* 48 = old sigprocmask */
{ SYF_MPSAFE | AS(getlogin_args), (sy_call_t *)getlogin }, /* 49 = getlogin */
{ SYF_MPSAFE | AS(setlogin_args), (sy_call_t *)setlogin }, /* 50 = setlogin */
{ SYF_MPSAFE | AS(acct_args), (sy_call_t *)acct }, /* 51 = acct */
{ compat(SYF_MPSAFE | 0,sigpending) }, /* 52 = old sigpending */
{ SYF_MPSAFE | AS(sigaltstack_args), (sy_call_t *)sigaltstack }, /* 53 = sigaltstack */
{ SYF_MPSAFE | AS(ioctl_args), (sy_call_t *)ioctl }, /* 54 = ioctl */
{ SYF_MPSAFE | AS(reboot_args), (sy_call_t *)reboot }, /* 55 = reboot */
{ AS(revoke_args), (sy_call_t *)revoke }, /* 56 = revoke */
{ AS(symlink_args), (sy_call_t *)symlink }, /* 57 = symlink */
{ AS(readlink_args), (sy_call_t *)readlink }, /* 58 = readlink */
{ SYF_MPSAFE | AS(execve_args), (sy_call_t *)execve }, /* 59 = execve */
{ SYF_MPSAFE | AS(umask_args), (sy_call_t *)umask }, /* 60 = umask */
{ AS(chroot_args), (sy_call_t *)chroot }, /* 61 = chroot */
{ compat(SYF_MPSAFE | AS(ofstat_args),fstat) }, /* 62 = old fstat */
{ compat(SYF_MPSAFE | AS(getkerninfo_args),getkerninfo) }, /* 63 = old getkerninfo */
{ compat(SYF_MPSAFE | 0,getpagesize) }, /* 64 = old getpagesize */
{ AS(msync_args), (sy_call_t *)msync }, /* 65 = msync */
{ SYF_MPSAFE | 0, (sy_call_t *)vfork }, /* 66 = vfork */
{ 0, (sy_call_t *)nosys }, /* 67 = obsolete vread */
{ 0, (sy_call_t *)nosys }, /* 68 = obsolete vwrite */
{ SYF_MPSAFE | AS(sbrk_args), (sy_call_t *)sbrk }, /* 69 = sbrk */
{ SYF_MPSAFE | AS(sstk_args), (sy_call_t *)sstk }, /* 70 = sstk */
{ compat(SYF_MPSAFE | AS(ommap_args),mmap) }, /* 71 = old mmap */
{ SYF_MPSAFE | AS(ovadvise_args), (sy_call_t *)ovadvise }, /* 72 = vadvise */
{ SYF_MPSAFE | AS(munmap_args), (sy_call_t *)munmap }, /* 73 = munmap */
{ SYF_MPSAFE | AS(mprotect_args), (sy_call_t *)mprotect }, /* 74 = mprotect */
{ SYF_MPSAFE | AS(madvise_args), (sy_call_t *)madvise }, /* 75 = madvise */
{ 0, (sy_call_t *)nosys }, /* 76 = obsolete vhangup */
{ 0, (sy_call_t *)nosys }, /* 77 = obsolete vlimit */
{ SYF_MPSAFE | AS(mincore_args), (sy_call_t *)mincore }, /* 78 = mincore */
{ SYF_MPSAFE | AS(getgroups_args), (sy_call_t *)getgroups }, /* 79 = getgroups */
{ SYF_MPSAFE | AS(setgroups_args), (sy_call_t *)setgroups }, /* 80 = setgroups */
{ SYF_MPSAFE | 0, (sy_call_t *)getpgrp }, /* 81 = getpgrp */
{ SYF_MPSAFE | AS(setpgid_args), (sy_call_t *)setpgid }, /* 82 = setpgid */
{ SYF_MPSAFE | AS(setitimer_args), (sy_call_t *)setitimer }, /* 83 = setitimer */
{ compat(SYF_MPSAFE | 0,wait) }, /* 84 = old wait */
{ SYF_MPSAFE | AS(swapon_args), (sy_call_t *)swapon }, /* 85 = swapon */
{ SYF_MPSAFE | AS(getitimer_args), (sy_call_t *)getitimer }, /* 86 = getitimer */
{ compat(SYF_MPSAFE | AS(gethostname_args),gethostname) }, /* 87 = old gethostname */
{ compat(SYF_MPSAFE | AS(sethostname_args),sethostname) }, /* 88 = old sethostname */
{ SYF_MPSAFE | 0, (sy_call_t *)getdtablesize }, /* 89 = getdtablesize */
{ SYF_MPSAFE | AS(dup2_args), (sy_call_t *)dup2 }, /* 90 = dup2 */
{ 0, (sy_call_t *)nosys }, /* 91 = getdopt */
{ SYF_MPSAFE | AS(fcntl_args), (sy_call_t *)fcntl }, /* 92 = fcntl */
{ SYF_MPSAFE | AS(select_args), (sy_call_t *)select }, /* 93 = select */
{ 0, (sy_call_t *)nosys }, /* 94 = setdopt */
{ AS(fsync_args), (sy_call_t *)fsync }, /* 95 = fsync */
{ SYF_MPSAFE | AS(setpriority_args), (sy_call_t *)setpriority }, /* 96 = setpriority */
{ SYF_MPSAFE | AS(socket_args), (sy_call_t *)socket }, /* 97 = socket */
{ SYF_MPSAFE | AS(connect_args), (sy_call_t *)connect }, /* 98 = connect */
{ compat(SYF_MPSAFE | AS(accept_args),accept) }, /* 99 = old accept */
{ SYF_MPSAFE | AS(getpriority_args), (sy_call_t *)getpriority }, /* 100 = getpriority */
{ compat(SYF_MPSAFE | AS(osend_args),send) }, /* 101 = old send */
{ compat(SYF_MPSAFE | AS(orecv_args),recv) }, /* 102 = old recv */
{ AS(osigreturn_args), (sy_call_t *)osigreturn }, /* 103 = osigreturn */
{ SYF_MPSAFE | AS(bind_args), (sy_call_t *)bind }, /* 104 = bind */
{ SYF_MPSAFE | AS(setsockopt_args), (sy_call_t *)setsockopt }, /* 105 = setsockopt */
{ SYF_MPSAFE | AS(listen_args), (sy_call_t *)listen }, /* 106 = listen */
{ 0, (sy_call_t *)nosys }, /* 107 = obsolete vtimes */
{ compat(SYF_MPSAFE | AS(osigvec_args),sigvec) }, /* 108 = old sigvec */
{ compat(SYF_MPSAFE | AS(osigblock_args),sigblock) }, /* 109 = old sigblock */
{ compat(SYF_MPSAFE | AS(osigsetmask_args),sigsetmask) }, /* 110 = old sigsetmask */
{ compat(SYF_MPSAFE | AS(osigsuspend_args),sigsuspend) }, /* 111 = old sigsuspend */
{ compat(SYF_MPSAFE | AS(osigstack_args),sigstack) }, /* 112 = old sigstack */
{ compat(SYF_MPSAFE | AS(orecvmsg_args),recvmsg) }, /* 113 = old recvmsg */
{ compat(SYF_MPSAFE | AS(osendmsg_args),sendmsg) }, /* 114 = old sendmsg */
{ 0, (sy_call_t *)nosys }, /* 115 = obsolete vtrace */
{ SYF_MPSAFE | AS(gettimeofday_args), (sy_call_t *)gettimeofday }, /* 116 = gettimeofday */
{ SYF_MPSAFE | AS(getrusage_args), (sy_call_t *)getrusage }, /* 117 = getrusage */
{ SYF_MPSAFE | AS(getsockopt_args), (sy_call_t *)getsockopt }, /* 118 = getsockopt */
{ 0, (sy_call_t *)nosys }, /* 119 = resuba */
{ SYF_MPSAFE | AS(readv_args), (sy_call_t *)readv }, /* 120 = readv */
{ SYF_MPSAFE | AS(writev_args), (sy_call_t *)writev }, /* 121 = writev */
{ SYF_MPSAFE | AS(settimeofday_args), (sy_call_t *)settimeofday }, /* 122 = settimeofday */
{ AS(fchown_args), (sy_call_t *)fchown }, /* 123 = fchown */
{ AS(fchmod_args), (sy_call_t *)fchmod }, /* 124 = fchmod */
{ compat(SYF_MPSAFE | AS(recvfrom_args),recvfrom) }, /* 125 = old recvfrom */
{ SYF_MPSAFE | AS(setreuid_args), (sy_call_t *)setreuid }, /* 126 = setreuid */
{ SYF_MPSAFE | AS(setregid_args), (sy_call_t *)setregid }, /* 127 = setregid */
{ AS(rename_args), (sy_call_t *)rename }, /* 128 = rename */
{ compat(AS(otruncate_args),truncate) }, /* 129 = old truncate */
{ compat(AS(oftruncate_args),ftruncate) }, /* 130 = old ftruncate */
{ SYF_MPSAFE | AS(flock_args), (sy_call_t *)flock }, /* 131 = flock */
{ AS(mkfifo_args), (sy_call_t *)mkfifo }, /* 132 = mkfifo */
{ SYF_MPSAFE | AS(sendto_args), (sy_call_t *)sendto }, /* 133 = sendto */
{ SYF_MPSAFE | AS(shutdown_args), (sy_call_t *)shutdown }, /* 134 = shutdown */
{ SYF_MPSAFE | AS(socketpair_args), (sy_call_t *)socketpair }, /* 135 = socketpair */
{ AS(mkdir_args), (sy_call_t *)mkdir }, /* 136 = mkdir */
{ AS(rmdir_args), (sy_call_t *)rmdir }, /* 137 = rmdir */
{ AS(utimes_args), (sy_call_t *)utimes }, /* 138 = utimes */
{ 0, (sy_call_t *)nosys }, /* 139 = obsolete 4.2 sigreturn */
{ SYF_MPSAFE | AS(adjtime_args), (sy_call_t *)adjtime }, /* 140 = adjtime */
{ compat(SYF_MPSAFE | AS(ogetpeername_args),getpeername) }, /* 141 = old getpeername */
{ compat(SYF_MPSAFE | 0,gethostid) }, /* 142 = old gethostid */
{ compat(SYF_MPSAFE | AS(osethostid_args),sethostid) }, /* 143 = old sethostid */
{ compat(SYF_MPSAFE | AS(ogetrlimit_args),getrlimit) }, /* 144 = old getrlimit */
{ compat(SYF_MPSAFE | AS(osetrlimit_args),setrlimit) }, /* 145 = old setrlimit */
{ compat(SYF_MPSAFE | AS(okillpg_args),killpg) }, /* 146 = old killpg */
{ SYF_MPSAFE | 0, (sy_call_t *)setsid }, /* 147 = setsid */
{ AS(quotactl_args), (sy_call_t *)quotactl }, /* 148 = quotactl */
{ compat(SYF_MPSAFE | 0,quota) }, /* 149 = old quota */
{ compat(SYF_MPSAFE | AS(getsockname_args),getsockname) }, /* 150 = old getsockname */
{ 0, (sy_call_t *)nosys }, /* 151 = sem_lock */
{ 0, (sy_call_t *)nosys }, /* 152 = sem_wakeup */
{ 0, (sy_call_t *)nosys }, /* 153 = asyncdaemon */
{ 0, (sy_call_t *)nosys }, /* 154 = nosys */
{ SYF_MPSAFE | AS(nfssvc_args), (sy_call_t *)nosys }, /* 155 = nfssvc */
{ compat(AS(ogetdirentries_args),getdirentries) }, /* 156 = old getdirentries */
{ AS(statfs_args), (sy_call_t *)statfs }, /* 157 = statfs */
{ AS(fstatfs_args), (sy_call_t *)fstatfs }, /* 158 = fstatfs */
{ 0, (sy_call_t *)nosys }, /* 159 = nosys */
{ 0, (sy_call_t *)nosys }, /* 160 = nosys */
{ AS(getfh_args), (sy_call_t *)getfh }, /* 161 = getfh */
{ SYF_MPSAFE | AS(getdomainname_args), (sy_call_t *)getdomainname }, /* 162 = getdomainname */
{ SYF_MPSAFE | AS(setdomainname_args), (sy_call_t *)setdomainname }, /* 163 = setdomainname */
{ SYF_MPSAFE | AS(uname_args), (sy_call_t *)uname }, /* 164 = uname */
{ AS(sysarch_args), (sy_call_t *)sysarch }, /* 165 = sysarch */
{ SYF_MPSAFE | AS(rtprio_args), (sy_call_t *)rtprio }, /* 166 = rtprio */
{ 0, (sy_call_t *)nosys }, /* 167 = nosys */
{ 0, (sy_call_t *)nosys }, /* 168 = nosys */
{ SYF_MPSAFE | AS(semsys_args), (sy_call_t *)lkmressys }, /* 169 = semsys */
{ SYF_MPSAFE | AS(msgsys_args), (sy_call_t *)lkmressys }, /* 170 = msgsys */
{ SYF_MPSAFE | AS(shmsys_args), (sy_call_t *)lkmressys }, /* 171 = shmsys */
{ 0, (sy_call_t *)nosys }, /* 172 = nosys */
{ SYF_MPSAFE | AS(pread_args), (sy_call_t *)pread }, /* 173 = pread */
{ SYF_MPSAFE | AS(pwrite_args), (sy_call_t *)pwrite }, /* 174 = pwrite */
{ 0, (sy_call_t *)nosys }, /* 175 = nosys */
{ SYF_MPSAFE | AS(ntp_adjtime_args), (sy_call_t *)ntp_adjtime }, /* 176 = ntp_adjtime */
{ 0, (sy_call_t *)nosys }, /* 177 = sfork */
{ 0, (sy_call_t *)nosys }, /* 178 = getdescriptor */
{ 0, (sy_call_t *)nosys }, /* 179 = setdescriptor */
{ 0, (sy_call_t *)nosys }, /* 180 = nosys */
{ SYF_MPSAFE | AS(setgid_args), (sy_call_t *)setgid }, /* 181 = setgid */
{ SYF_MPSAFE | AS(setegid_args), (sy_call_t *)setegid }, /* 182 = setegid */
{ SYF_MPSAFE | AS(seteuid_args), (sy_call_t *)seteuid }, /* 183 = seteuid */
{ 0, (sy_call_t *)nosys }, /* 184 = lfs_bmapv */
{ 0, (sy_call_t *)nosys }, /* 185 = lfs_markv */
{ 0, (sy_call_t *)nosys }, /* 186 = lfs_segclean */
{ 0, (sy_call_t *)nosys }, /* 187 = lfs_segwait */
{ AS(stat_args), (sy_call_t *)stat }, /* 188 = stat */
{ SYF_MPSAFE | AS(fstat_args), (sy_call_t *)fstat }, /* 189 = fstat */
{ AS(lstat_args), (sy_call_t *)lstat }, /* 190 = lstat */
{ AS(pathconf_args), (sy_call_t *)pathconf }, /* 191 = pathconf */
{ SYF_MPSAFE | AS(fpathconf_args), (sy_call_t *)fpathconf }, /* 192 = fpathconf */
{ 0, (sy_call_t *)nosys }, /* 193 = nosys */
{ SYF_MPSAFE | AS(__getrlimit_args), (sy_call_t *)getrlimit }, /* 194 = getrlimit */
{ SYF_MPSAFE | AS(__setrlimit_args), (sy_call_t *)setrlimit }, /* 195 = setrlimit */
{ AS(getdirentries_args), (sy_call_t *)getdirentries }, /* 196 = getdirentries */
{ SYF_MPSAFE | AS(mmap_args), (sy_call_t *)mmap }, /* 197 = mmap */
{ 0, (sy_call_t *)nosys }, /* 198 = __syscall */
{ AS(lseek_args), (sy_call_t *)lseek }, /* 199 = lseek */
{ AS(truncate_args), (sy_call_t *)truncate }, /* 200 = truncate */
{ AS(ftruncate_args), (sy_call_t *)ftruncate }, /* 201 = ftruncate */
{ SYF_MPSAFE | AS(sysctl_args), (sy_call_t *)__sysctl }, /* 202 = __sysctl */
{ SYF_MPSAFE | AS(mlock_args), (sy_call_t *)mlock }, /* 203 = mlock */
{ SYF_MPSAFE | AS(munlock_args), (sy_call_t *)munlock }, /* 204 = munlock */
{ AS(undelete_args), (sy_call_t *)undelete }, /* 205 = undelete */
{ AS(futimes_args), (sy_call_t *)futimes }, /* 206 = futimes */
{ SYF_MPSAFE | AS(getpgid_args), (sy_call_t *)getpgid }, /* 207 = getpgid */
{ 0, (sy_call_t *)nosys }, /* 208 = newreboot */
{ SYF_MPSAFE | AS(poll_args), (sy_call_t *)poll }, /* 209 = poll */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 210 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 211 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 212 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 213 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 214 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 215 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 216 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 217 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 218 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 219 = lkmnosys */
{ SYF_MPSAFE | AS(__semctl_args), (sy_call_t *)lkmressys }, /* 220 = __semctl */
{ SYF_MPSAFE | AS(semget_args), (sy_call_t *)lkmressys }, /* 221 = semget */
{ SYF_MPSAFE | AS(semop_args), (sy_call_t *)lkmressys }, /* 222 = semop */
{ 0, (sy_call_t *)nosys }, /* 223 = semconfig */
{ SYF_MPSAFE | AS(msgctl_args), (sy_call_t *)lkmressys }, /* 224 = msgctl */
{ SYF_MPSAFE | AS(msgget_args), (sy_call_t *)lkmressys }, /* 225 = msgget */
{ SYF_MPSAFE | AS(msgsnd_args), (sy_call_t *)lkmressys }, /* 226 = msgsnd */
{ SYF_MPSAFE | AS(msgrcv_args), (sy_call_t *)lkmressys }, /* 227 = msgrcv */
{ SYF_MPSAFE | AS(shmat_args), (sy_call_t *)lkmressys }, /* 228 = shmat */
{ SYF_MPSAFE | AS(shmctl_args), (sy_call_t *)lkmressys }, /* 229 = shmctl */
{ SYF_MPSAFE | AS(shmdt_args), (sy_call_t *)lkmressys }, /* 230 = shmdt */
{ SYF_MPSAFE | AS(shmget_args), (sy_call_t *)lkmressys }, /* 231 = shmget */
{ SYF_MPSAFE | AS(clock_gettime_args), (sy_call_t *)clock_gettime }, /* 232 = clock_gettime */
{ SYF_MPSAFE | AS(clock_settime_args), (sy_call_t *)clock_settime }, /* 233 = clock_settime */
{ SYF_MPSAFE | AS(clock_getres_args), (sy_call_t *)clock_getres }, /* 234 = clock_getres */
{ 0, (sy_call_t *)nosys }, /* 235 = timer_create */
{ 0, (sy_call_t *)nosys }, /* 236 = timer_delete */
{ 0, (sy_call_t *)nosys }, /* 237 = timer_settime */
{ 0, (sy_call_t *)nosys }, /* 238 = timer_gettime */
{ 0, (sy_call_t *)nosys }, /* 239 = timer_getoverrun */
{ SYF_MPSAFE | AS(nanosleep_args), (sy_call_t *)nanosleep }, /* 240 = nanosleep */
{ 0, (sy_call_t *)nosys }, /* 241 = nosys */
{ 0, (sy_call_t *)nosys }, /* 242 = nosys */
{ 0, (sy_call_t *)nosys }, /* 243 = nosys */
{ 0, (sy_call_t *)nosys }, /* 244 = nosys */
{ 0, (sy_call_t *)nosys }, /* 245 = nosys */
{ 0, (sy_call_t *)nosys }, /* 246 = nosys */
{ 0, (sy_call_t *)nosys }, /* 247 = nosys */
{ 0, (sy_call_t *)nosys }, /* 248 = nosys */
{ 0, (sy_call_t *)nosys }, /* 249 = nosys */
{ SYF_MPSAFE | AS(minherit_args), (sy_call_t *)minherit }, /* 250 = minherit */
{ SYF_MPSAFE | AS(rfork_args), (sy_call_t *)rfork }, /* 251 = rfork */
{ SYF_MPSAFE | AS(openbsd_poll_args), (sy_call_t *)openbsd_poll }, /* 252 = openbsd_poll */
{ 0, (sy_call_t *)issetugid }, /* 253 = issetugid */
{ AS(lchown_args), (sy_call_t *)lchown }, /* 254 = lchown */
{ 0, (sy_call_t *)nosys }, /* 255 = nosys */
{ 0, (sy_call_t *)nosys }, /* 256 = nosys */
{ 0, (sy_call_t *)nosys }, /* 257 = nosys */
{ 0, (sy_call_t *)nosys }, /* 258 = nosys */
{ 0, (sy_call_t *)nosys }, /* 259 = nosys */
{ 0, (sy_call_t *)nosys }, /* 260 = nosys */
{ 0, (sy_call_t *)nosys }, /* 261 = nosys */
{ 0, (sy_call_t *)nosys }, /* 262 = nosys */
{ 0, (sy_call_t *)nosys }, /* 263 = nosys */
{ 0, (sy_call_t *)nosys }, /* 264 = nosys */
{ 0, (sy_call_t *)nosys }, /* 265 = nosys */
{ 0, (sy_call_t *)nosys }, /* 266 = nosys */
{ 0, (sy_call_t *)nosys }, /* 267 = nosys */
{ 0, (sy_call_t *)nosys }, /* 268 = nosys */
{ 0, (sy_call_t *)nosys }, /* 269 = nosys */
{ 0, (sy_call_t *)nosys }, /* 270 = nosys */
{ 0, (sy_call_t *)nosys }, /* 271 = nosys */
{ AS(getdents_args), (sy_call_t *)getdents }, /* 272 = getdents */
{ 0, (sy_call_t *)nosys }, /* 273 = nosys */
{ AS(lchmod_args), (sy_call_t *)lchmod }, /* 274 = lchmod */
{ AS(lchown_args), (sy_call_t *)lchown }, /* 275 = netbsd_lchown */
{ AS(lutimes_args), (sy_call_t *)lutimes }, /* 276 = lutimes */
{ SYF_MPSAFE | AS(msync_args), (sy_call_t *)msync }, /* 277 = netbsd_msync */
{ AS(nstat_args), (sy_call_t *)nstat }, /* 278 = nstat */
{ SYF_MPSAFE | AS(nfstat_args), (sy_call_t *)nfstat }, /* 279 = nfstat */
{ AS(nlstat_args), (sy_call_t *)nlstat }, /* 280 = nlstat */
{ 0, (sy_call_t *)nosys }, /* 281 = nosys */
{ 0, (sy_call_t *)nosys }, /* 282 = nosys */
{ 0, (sy_call_t *)nosys }, /* 283 = nosys */
{ 0, (sy_call_t *)nosys }, /* 284 = nosys */
{ 0, (sy_call_t *)nosys }, /* 285 = nosys */
{ 0, (sy_call_t *)nosys }, /* 286 = nosys */
{ 0, (sy_call_t *)nosys }, /* 287 = nosys */
{ 0, (sy_call_t *)nosys }, /* 288 = nosys */
{ 0, (sy_call_t *)nosys }, /* 289 = nosys */
{ 0, (sy_call_t *)nosys }, /* 290 = nosys */
{ 0, (sy_call_t *)nosys }, /* 291 = nosys */
{ 0, (sy_call_t *)nosys }, /* 292 = nosys */
{ 0, (sy_call_t *)nosys }, /* 293 = nosys */
{ 0, (sy_call_t *)nosys }, /* 294 = nosys */
{ 0, (sy_call_t *)nosys }, /* 295 = nosys */
{ 0, (sy_call_t *)nosys }, /* 296 = nosys */
{ AS(fhstatfs_args), (sy_call_t *)fhstatfs }, /* 297 = fhstatfs */
{ AS(fhopen_args), (sy_call_t *)fhopen }, /* 298 = fhopen */
{ AS(fhstat_args), (sy_call_t *)fhstat }, /* 299 = fhstat */
{ SYF_MPSAFE | AS(modnext_args), (sy_call_t *)modnext }, /* 300 = modnext */
{ SYF_MPSAFE | AS(modstat_args), (sy_call_t *)modstat }, /* 301 = modstat */
{ SYF_MPSAFE | AS(modfnext_args), (sy_call_t *)modfnext }, /* 302 = modfnext */
{ SYF_MPSAFE | AS(modfind_args), (sy_call_t *)modfind }, /* 303 = modfind */
{ SYF_MPSAFE | AS(kldload_args), (sy_call_t *)kldload }, /* 304 = kldload */
{ SYF_MPSAFE | AS(kldunload_args), (sy_call_t *)kldunload }, /* 305 = kldunload */
{ SYF_MPSAFE | AS(kldfind_args), (sy_call_t *)kldfind }, /* 306 = kldfind */
{ SYF_MPSAFE | AS(kldnext_args), (sy_call_t *)kldnext }, /* 307 = kldnext */
{ SYF_MPSAFE | AS(kldstat_args), (sy_call_t *)kldstat }, /* 308 = kldstat */
{ SYF_MPSAFE | AS(kldfirstmod_args), (sy_call_t *)kldfirstmod }, /* 309 = kldfirstmod */
{ SYF_MPSAFE | AS(getsid_args), (sy_call_t *)getsid }, /* 310 = getsid */
{ SYF_MPSAFE | AS(setresuid_args), (sy_call_t *)setresuid }, /* 311 = setresuid */
{ SYF_MPSAFE | AS(setresgid_args), (sy_call_t *)setresgid }, /* 312 = setresgid */
{ 0, (sy_call_t *)nosys }, /* 313 = obsolete signanosleep */
{ AS(aio_return_args), (sy_call_t *)lkmressys }, /* 314 = aio_return */
{ AS(aio_suspend_args), (sy_call_t *)lkmressys }, /* 315 = aio_suspend */
{ AS(aio_cancel_args), (sy_call_t *)lkmressys }, /* 316 = aio_cancel */
{ AS(aio_error_args), (sy_call_t *)lkmressys }, /* 317 = aio_error */
{ AS(aio_read_args), (sy_call_t *)lkmressys }, /* 318 = aio_read */
{ AS(aio_write_args), (sy_call_t *)lkmressys }, /* 319 = aio_write */
{ AS(lio_listio_args), (sy_call_t *)lkmressys }, /* 320 = lio_listio */
{ SYF_MPSAFE | 0, (sy_call_t *)yield }, /* 321 = yield */
{ 0, (sy_call_t *)nosys }, /* 322 = obsolete thr_sleep */
{ 0, (sy_call_t *)nosys }, /* 323 = obsolete thr_wakeup */
{ SYF_MPSAFE | AS(mlockall_args), (sy_call_t *)mlockall }, /* 324 = mlockall */
{ SYF_MPSAFE | 0, (sy_call_t *)munlockall }, /* 325 = munlockall */
{ AS(__getcwd_args), (sy_call_t *)__getcwd }, /* 326 = __getcwd */
{ SYF_MPSAFE | AS(sched_setparam_args), (sy_call_t *)sched_setparam }, /* 327 = sched_setparam */
{ SYF_MPSAFE | AS(sched_getparam_args), (sy_call_t *)sched_getparam }, /* 328 = sched_getparam */
{ SYF_MPSAFE | AS(sched_setscheduler_args), (sy_call_t *)sched_setscheduler }, /* 329 = sched_setscheduler */
{ SYF_MPSAFE | AS(sched_getscheduler_args), (sy_call_t *)sched_getscheduler }, /* 330 = sched_getscheduler */
{ SYF_MPSAFE | 0, (sy_call_t *)sched_yield }, /* 331 = sched_yield */
{ SYF_MPSAFE | AS(sched_get_priority_max_args), (sy_call_t *)sched_get_priority_max }, /* 332 = sched_get_priority_max */
{ SYF_MPSAFE | AS(sched_get_priority_min_args), (sy_call_t *)sched_get_priority_min }, /* 333 = sched_get_priority_min */
{ SYF_MPSAFE | AS(sched_rr_get_interval_args), (sy_call_t *)sched_rr_get_interval }, /* 334 = sched_rr_get_interval */
{ AS(utrace_args), (sy_call_t *)utrace }, /* 335 = utrace */
{ SYF_MPSAFE | AS(sendfile_args), (sy_call_t *)sendfile }, /* 336 = sendfile */
{ AS(kldsym_args), (sy_call_t *)kldsym }, /* 337 = kldsym */
{ SYF_MPSAFE | AS(jail_args), (sy_call_t *)jail }, /* 338 = jail */
{ 0, (sy_call_t *)nosys }, /* 339 = pioctl */
{ SYF_MPSAFE | AS(sigprocmask_args), (sy_call_t *)sigprocmask }, /* 340 = sigprocmask */
{ SYF_MPSAFE | AS(sigsuspend_args), (sy_call_t *)sigsuspend }, /* 341 = sigsuspend */
{ SYF_MPSAFE | AS(sigaction_args), (sy_call_t *)sigaction }, /* 342 = sigaction */
{ SYF_MPSAFE | AS(sigpending_args), (sy_call_t *)sigpending }, /* 343 = sigpending */
{ AS(sigreturn_args), (sy_call_t *)sigreturn }, /* 344 = sigreturn */
{ 0, (sy_call_t *)nosys }, /* 345 = sigtimedwait */
{ 0, (sy_call_t *)nosys }, /* 346 = sigwaitinfo */
{ SYF_MPSAFE | AS(__acl_get_file_args), (sy_call_t *)__acl_get_file }, /* 347 = __acl_get_file */
{ SYF_MPSAFE | AS(__acl_set_file_args), (sy_call_t *)__acl_set_file }, /* 348 = __acl_set_file */
{ SYF_MPSAFE | AS(__acl_get_fd_args), (sy_call_t *)__acl_get_fd }, /* 349 = __acl_get_fd */
{ SYF_MPSAFE | AS(__acl_set_fd_args), (sy_call_t *)__acl_set_fd }, /* 350 = __acl_set_fd */
{ SYF_MPSAFE | AS(__acl_delete_file_args), (sy_call_t *)__acl_delete_file }, /* 351 = __acl_delete_file */
{ SYF_MPSAFE | AS(__acl_delete_fd_args), (sy_call_t *)__acl_delete_fd }, /* 352 = __acl_delete_fd */
{ SYF_MPSAFE | AS(__acl_aclcheck_file_args), (sy_call_t *)__acl_aclcheck_file }, /* 353 = __acl_aclcheck_file */
{ SYF_MPSAFE | AS(__acl_aclcheck_fd_args), (sy_call_t *)__acl_aclcheck_fd }, /* 354 = __acl_aclcheck_fd */
{ AS(extattrctl_args), (sy_call_t *)extattrctl }, /* 355 = extattrctl */
{ AS(extattr_set_file_args), (sy_call_t *)extattr_set_file }, /* 356 = extattr_set_file */
{ AS(extattr_get_file_args), (sy_call_t *)extattr_get_file }, /* 357 = extattr_get_file */
{ AS(extattr_delete_file_args), (sy_call_t *)extattr_delete_file }, /* 358 = extattr_delete_file */
{ AS(aio_waitcomplete_args), (sy_call_t *)lkmressys }, /* 359 = aio_waitcomplete */
{ SYF_MPSAFE | AS(getresuid_args), (sy_call_t *)getresuid }, /* 360 = getresuid */
{ SYF_MPSAFE | AS(getresgid_args), (sy_call_t *)getresgid }, /* 361 = getresgid */
{ SYF_MPSAFE | 0, (sy_call_t *)kqueue }, /* 362 = kqueue */
{ SYF_MPSAFE | AS(kevent_args), (sy_call_t *)kevent }, /* 363 = kevent */
{ AS(__cap_get_proc_args), (sy_call_t *)__cap_get_proc }, /* 364 = __cap_get_proc */
{ AS(__cap_set_proc_args), (sy_call_t *)__cap_set_proc }, /* 365 = __cap_set_proc */
{ AS(__cap_get_fd_args), (sy_call_t *)__cap_get_fd }, /* 366 = __cap_get_fd */
{ AS(__cap_get_file_args), (sy_call_t *)__cap_get_file }, /* 367 = __cap_get_file */
{ AS(__cap_set_fd_args), (sy_call_t *)__cap_set_fd }, /* 368 = __cap_set_fd */
{ AS(__cap_set_file_args), (sy_call_t *)__cap_set_file }, /* 369 = __cap_set_file */
{ AS(nosys_args), (sy_call_t *)lkmressys }, /* 370 = lkmressys */
{ AS(extattr_set_fd_args), (sy_call_t *)extattr_set_fd }, /* 371 = extattr_set_fd */
{ AS(extattr_get_fd_args), (sy_call_t *)extattr_get_fd }, /* 372 = extattr_get_fd */
{ AS(extattr_delete_fd_args), (sy_call_t *)extattr_delete_fd }, /* 373 = extattr_delete_fd */
{ SYF_MPSAFE | AS(__setugid_args), (sy_call_t *)__setugid }, /* 374 = __setugid */
{ AS(nfsclnt_args), (sy_call_t *)nosys }, /* 375 = nfsclnt */
{ AS(eaccess_args), (sy_call_t *)eaccess }, /* 376 = eaccess */
{ 0, (sy_call_t *)nosys }, /* 377 = afs_syscall */
{ AS(nmount_args), (sy_call_t *)nmount }, /* 378 = nmount */
{ 0, (sy_call_t *)kse_exit }, /* 379 = kse_exit */
{ 0, (sy_call_t *)kse_wakeup }, /* 380 = kse_wakeup */
{ AS(kse_new_args), (sy_call_t *)kse_new }, /* 381 = kse_new */
{ AS(thread_wakeup_args), (sy_call_t *)thread_wakeup }, /* 382 = thread_wakeup */
{ 0, (sy_call_t *)kse_yield }, /* 383 = kse_yield */
{ 0, (sy_call_t *)nosys }, /* 384 = __mac_get_proc */
{ 0, (sy_call_t *)nosys }, /* 385 = __mac_set_proc */
{ 0, (sy_call_t *)nosys }, /* 386 = __mac_get_fd */
{ 0, (sy_call_t *)nosys }, /* 387 = __mac_get_file */
{ 0, (sy_call_t *)nosys }, /* 388 = __mac_set_fd */
{ 0, (sy_call_t *)nosys }, /* 389 = __mac_set_file */
};

View File

@ -0,0 +1,12 @@
# $FreeBSD$
sysnames="/dev/null"
sysproto="ia32_proto.h"
sysproto_h=_IA32_SYSPROTO_H_
syshdr="ia32_syscall.h"
syssw="ia32_sysent.c"
sysmk="/dev/null"
syshide="/dev/null"
syscallprefix="IA32_SYS_"
switchname="ia32_sysent"
namesname="ia32_syscallnames"
sysvec="\n"

View File

@ -0,0 +1,562 @@
$FreeBSD$
; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94
; from: src/sys/kern/syscalls.master 1.107
;
; System call name/number master file.
; Processed to created init_sysent.c, syscalls.c and syscall.h.
; Columns: number [M]type nargs namespc name alt{name,tag,rtyp}/comments
; number system call number, must be in order
; type one of [M]STD, [M]OBSOL, [M]UNIMPL, [M]COMPAT, [M]CPT_NOA,
; [M]LIBCOMPAT, [M]NODEF, [M]NOARGS, [M]NOPROTO, [M]NOIMPL,
; [M]NOSTD
; namespc one of POSIX, BSD, NOHIDE
; name psuedo-prototype of syscall routine
; If one of the following alts is different, then all appear:
; altname name of system call if different
; alttag name of args struct tag if different from [o]`name'"_args"
; altrtyp return type if not int (bogus - syscalls always return int)
; for UNIMPL/OBSOL, name continues with comments
; types:
; [M] e.g. like MSTD -- means the system call is MP-safe. If no
; M prefix is used, the syscall wrapper will obtain the Giant
; lock for the syscall.
; STD always included
; COMPAT included on COMPAT #ifdef
; LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
; OBSOL obsolete, not included in system, only specifies name
; UNIMPL not implemented, placeholder only
; NOSTD implemented but as a lkm that can be statically
; compiled in sysent entry will be filled with lkmsys
; so the SYSCALL_MODULE macro works
; #ifdef's, etc. may be included, and are copied to the output files.
#include <sys/param.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>
; Reserved/unimplemented system calls in the range 0-150 inclusive
; are reserved for use in future Berkeley releases.
; Additional system calls implemented in vendor and other
; redistributions should be placed in the reserved range at the end
; of the current calls.
0 STD NOHIDE { int nosys(void); } syscall nosys_args int
1 MSTD NOHIDE { void sys_exit(int rval); } exit sys_exit_args void
2 MSTD POSIX { int fork(void); }
3 MSTD POSIX { ssize_t read(int fd, void *buf, size_t nbyte); }
4 MSTD POSIX { ssize_t write(int fd, const void *buf, size_t nbyte); }
5 STD POSIX { int open(char *path, int flags, int mode); }
; XXX should be { int open(const char *path, int flags, ...); }
; but we're not ready for `const' or varargs.
; XXX man page says `mode_t mode'.
6 MSTD POSIX { int close(int fd); }
7 MSTD BSD { int wait4(int pid, int *status, int options, \
struct rusage *rusage); } wait4 wait_args int
8 COMPAT BSD { int creat(char *path, int mode); }
9 STD POSIX { int link(char *path, char *link); }
10 STD POSIX { int unlink(char *path); }
11 OBSOL NOHIDE execv
12 STD POSIX { int chdir(char *path); }
13 STD BSD { int fchdir(int fd); }
14 STD POSIX { int mknod(char *path, int mode, int dev); }
15 STD POSIX { int chmod(char *path, int mode); }
16 STD POSIX { int chown(char *path, int uid, int gid); }
17 MSTD BSD { int obreak(char *nsize); } break obreak_args int
18 STD BSD { int getfsstat(struct statfs *buf, long bufsize, \
int flags); }
19 COMPAT POSIX { long lseek(int fd, long offset, int whence); }
20 MSTD POSIX { pid_t getpid(void); }
21 STD BSD { int mount(char *type, char *path, int flags, \
caddr_t data); }
; XXX `path' should have type `const char *' but we're not ready for that.
22 STD BSD { int unmount(char *path, int flags); }
23 MSTD POSIX { int setuid(uid_t uid); }
24 MSTD POSIX { uid_t getuid(void); }
25 MSTD POSIX { uid_t geteuid(void); }
26 STD BSD { int ptrace(int req, pid_t pid, caddr_t addr, \
int data); }
27 MSTD BSD { int recvmsg(int s, struct msghdr *msg, int flags); }
28 MSTD BSD { int sendmsg(int s, caddr_t msg, int flags); }
29 MSTD BSD { int recvfrom(int s, caddr_t buf, size_t len, \
int flags, caddr_t from, int *fromlenaddr); }
30 MSTD BSD { int accept(int s, caddr_t name, int *anamelen); }
31 MSTD BSD { int getpeername(int fdes, caddr_t asa, int *alen); }
32 MSTD BSD { int getsockname(int fdes, caddr_t asa, int *alen); }
33 STD POSIX { int access(char *path, int flags); }
34 STD BSD { int chflags(char *path, int flags); }
35 STD BSD { int fchflags(int fd, int flags); }
36 STD BSD { int sync(void); }
37 MSTD POSIX { int kill(int pid, int signum); }
38 COMPAT POSIX { int stat(char *path, struct ostat *ub); }
39 MSTD POSIX { pid_t getppid(void); }
40 COMPAT POSIX { int lstat(char *path, struct ostat *ub); }
41 STD POSIX { int dup(u_int fd); }
42 STD POSIX { int pipe(void); }
43 MSTD POSIX { gid_t getegid(void); }
44 MSTD BSD { int profil(caddr_t samples, size_t size, \
size_t offset, u_int scale); }
45 STD BSD { int ktrace(const char *fname, int ops, int facs, \
int pid); }
46 MCOMPAT POSIX { int sigaction(int signum, struct osigaction *nsa, \
struct osigaction *osa); }
47 MSTD POSIX { gid_t getgid(void); }
48 MCOMPAT POSIX { int sigprocmask(int how, osigset_t mask); }
; XXX note nonstandard (bogus) calling convention - the libc stub passes
; us the mask, not a pointer to it, and we return the old mask as the
; (int) return value.
49 MSTD BSD { int getlogin(char *namebuf, u_int namelen); }
50 MSTD BSD { int setlogin(char *namebuf); }
51 MSTD BSD { int acct(char *path); }
52 MCOMPAT POSIX { int sigpending(void); }
53 MSTD BSD { int sigaltstack(stack_t *ss, stack_t *oss); }
54 MSTD POSIX { int ioctl(int fd, u_long com, caddr_t data); }
55 MSTD BSD { int reboot(int opt); }
56 STD POSIX { int revoke(char *path); }
57 STD POSIX { int symlink(char *path, char *link); }
58 STD POSIX { int readlink(char *path, char *buf, int count); }
59 MSTD POSIX { int execve(char *fname, char **argv, char **envv); }
60 MSTD POSIX { int umask(int newmask); } umask umask_args int
61 STD BSD { int chroot(char *path); }
62 MCOMPAT POSIX { int fstat(int fd, struct ostat *sb); }
63 MCOMPAT BSD { int getkerninfo(int op, char *where, size_t *size, \
int arg); } getkerninfo getkerninfo_args int
64 MCOMPAT BSD { int getpagesize(void); } \
getpagesize getpagesize_args int
65 STD BSD { int msync(void *addr, size_t len, int flags); }
66 MSTD BSD { int vfork(void); }
67 OBSOL NOHIDE vread
68 OBSOL NOHIDE vwrite
69 MSTD BSD { int sbrk(int incr); }
70 MSTD BSD { int sstk(int incr); }
71 MCOMPAT BSD { int mmap(void *addr, int len, int prot, \
int flags, int fd, long pos); }
72 MSTD BSD { int ovadvise(int anom); } vadvise ovadvise_args int
73 MSTD BSD { int munmap(void *addr, size_t len); }
74 MSTD BSD { int mprotect(const void *addr, size_t len, int prot); }
75 MSTD BSD { int madvise(void *addr, size_t len, int behav); }
76 OBSOL NOHIDE vhangup
77 OBSOL NOHIDE vlimit
78 MSTD BSD { int mincore(const void *addr, size_t len, \
char *vec); }
79 MSTD POSIX { int getgroups(u_int gidsetsize, gid_t *gidset); }
80 MSTD POSIX { int setgroups(u_int gidsetsize, gid_t *gidset); }
81 MSTD POSIX { int getpgrp(void); }
82 MSTD POSIX { int setpgid(int pid, int pgid); }
83 MSTD BSD { int setitimer(u_int which, struct itimerval *itv, \
struct itimerval *oitv); }
84 MCOMPAT BSD { int wait(void); }
85 MSTD BSD { int swapon(char *name); }
86 MSTD BSD { int getitimer(u_int which, struct itimerval *itv); }
87 MCOMPAT BSD { int gethostname(char *hostname, u_int len); } \
gethostname gethostname_args int
88 MCOMPAT BSD { int sethostname(char *hostname, u_int len); } \
sethostname sethostname_args int
89 MSTD BSD { int getdtablesize(void); }
90 MSTD POSIX { int dup2(u_int from, u_int to); }
91 UNIMPL BSD getdopt
92 MSTD POSIX { int fcntl(int fd, int cmd, long arg); }
; XXX should be { int fcntl(int fd, int cmd, ...); }
; but we're not ready for varargs.
; XXX man page says `int arg' too.
93 MSTD BSD { int select(int nd, fd_set *in, fd_set *ou, \
fd_set *ex, struct timeval *tv); }
94 UNIMPL BSD setdopt
95 STD POSIX { int fsync(int fd); }
96 MSTD BSD { int setpriority(int which, int who, int prio); }
97 MSTD BSD { int socket(int domain, int type, int protocol); }
98 MSTD BSD { int connect(int s, caddr_t name, int namelen); }
99 MCPT_NOA BSD { int accept(int s, caddr_t name, int *anamelen); } \
accept accept_args int
100 MSTD BSD { int getpriority(int which, int who); }
101 MCOMPAT BSD { int send(int s, caddr_t buf, int len, int flags); }
102 MCOMPAT BSD { int recv(int s, caddr_t buf, int len, int flags); }
103 STD BSD { int osigreturn(struct osigcontext *sigcntxp); }
104 MSTD BSD { int bind(int s, caddr_t name, int namelen); }
105 MSTD BSD { int setsockopt(int s, int level, int name, \
caddr_t val, int valsize); }
106 MSTD BSD { int listen(int s, int backlog); }
107 OBSOL NOHIDE vtimes
108 MCOMPAT BSD { int sigvec(int signum, struct sigvec *nsv, \
struct sigvec *osv); }
109 MCOMPAT BSD { int sigblock(int mask); }
110 MCOMPAT BSD { int sigsetmask(int mask); }
111 MCOMPAT POSIX { int sigsuspend(osigset_t mask); }
; XXX note nonstandard (bogus) calling convention - the libc stub passes
; us the mask, not a pointer to it.
112 MCOMPAT BSD { int sigstack(struct sigstack *nss, \
struct sigstack *oss); }
113 MCOMPAT BSD { int recvmsg(int s, struct omsghdr *msg, int flags); }
114 MCOMPAT BSD { int sendmsg(int s, caddr_t msg, int flags); }
115 OBSOL NOHIDE vtrace
116 MSTD BSD { int gettimeofday(struct timeval *tp, \
struct timezone *tzp); }
117 MSTD BSD { int getrusage(int who, struct rusage *rusage); }
118 MSTD BSD { int getsockopt(int s, int level, int name, \
caddr_t val, int *avalsize); }
119 UNIMPL NOHIDE resuba (BSD/OS 2.x)
120 MSTD BSD { int readv(int fd, struct iovec *iovp, u_int iovcnt); }
121 MSTD BSD { int writev(int fd, struct iovec *iovp, \
u_int iovcnt); }
122 MSTD BSD { int settimeofday(struct timeval *tv, \
struct timezone *tzp); }
123 STD BSD { int fchown(int fd, int uid, int gid); }
124 STD BSD { int fchmod(int fd, int mode); }
125 MCPT_NOA BSD { int recvfrom(int s, caddr_t buf, size_t len, \
int flags, caddr_t from, int *fromlenaddr); } \
recvfrom recvfrom_args int
126 MSTD BSD { int setreuid(int ruid, int euid); }
127 MSTD BSD { int setregid(int rgid, int egid); }
128 STD POSIX { int rename(char *from, char *to); }
129 COMPAT BSD { int truncate(char *path, long length); }
130 COMPAT BSD { int ftruncate(int fd, long length); }
131 MSTD BSD { int flock(int fd, int how); }
132 STD POSIX { int mkfifo(char *path, int mode); }
133 MSTD BSD { int sendto(int s, caddr_t buf, size_t len, \
int flags, caddr_t to, int tolen); }
134 MSTD BSD { int shutdown(int s, int how); }
135 MSTD BSD { int socketpair(int domain, int type, int protocol, \
int *rsv); }
136 STD POSIX { int mkdir(char *path, int mode); }
137 STD POSIX { int rmdir(char *path); }
138 STD BSD { int utimes(char *path, struct timeval *tptr); }
139 OBSOL NOHIDE 4.2 sigreturn
140 MSTD BSD { int adjtime(struct timeval *delta, \
struct timeval *olddelta); }
141 MCOMPAT BSD { int getpeername(int fdes, caddr_t asa, int *alen); }
142 MCOMPAT BSD { long gethostid(void); }
143 MCOMPAT BSD { int sethostid(long hostid); }
144 MCOMPAT BSD { int getrlimit(u_int which, struct orlimit *rlp); }
145 MCOMPAT BSD { int setrlimit(u_int which, struct orlimit *rlp); }
146 MCOMPAT BSD { int killpg(int pgid, int signum); }
147 MSTD POSIX { int setsid(void); }
148 STD BSD { int quotactl(char *path, int cmd, int uid, \
caddr_t arg); }
149 MCOMPAT BSD { int quota(void); }
150 MCPT_NOA BSD { int getsockname(int fdec, caddr_t asa, int *alen); }\
getsockname getsockname_args int
; Syscalls 151-180 inclusive are reserved for vendor-specific
; system calls. (This includes various calls added for compatibity
; with other Unix variants.)
; Some of these calls are now supported by BSD...
151 UNIMPL NOHIDE sem_lock (BSD/OS 2.x)
152 UNIMPL NOHIDE sem_wakeup (BSD/OS 2.x)
153 UNIMPL NOHIDE asyncdaemon (BSD/OS 2.x)
154 UNIMPL NOHIDE nosys
; 155 is initialized by the NFS code, if present.
155 MNOIMPL BSD { int nfssvc(int flag, caddr_t argp); }
156 COMPAT BSD { int getdirentries(int fd, char *buf, u_int count, \
long *basep); }
157 STD BSD { int statfs(char *path, struct statfs *buf); }
158 STD BSD { int fstatfs(int fd, struct statfs *buf); }
159 UNIMPL NOHIDE nosys
160 UNIMPL NOHIDE nosys
161 STD BSD { int getfh(char *fname, struct fhandle *fhp); }
162 MSTD BSD { int getdomainname(char *domainname, int len); }
163 MSTD BSD { int setdomainname(char *domainname, int len); }
164 MSTD BSD { int uname(struct utsname *name); }
165 STD BSD { int sysarch(int op, char *parms); }
166 MSTD BSD { int rtprio(int function, pid_t pid, \
struct rtprio *rtp); }
167 UNIMPL NOHIDE nosys
168 UNIMPL NOHIDE nosys
; 169 is initialized by the SYSVSEM code if present or loaded
169 MNOSTD BSD { int semsys(int which, int a2, int a3, int a4, \
int a5); }
; 169 is initialized by the SYSVMSG code if present or loaded
; XXX should be { int semsys(int which, ...); }
170 MNOSTD BSD { int msgsys(int which, int a2, int a3, int a4, \
int a5, int a6); }
; 169 is initialized by the SYSVSHM code if present or loaded
; XXX should be { int msgsys(int which, ...); }
171 MNOSTD BSD { int shmsys(int which, int a2, int a3, int a4); }
; XXX should be { int shmsys(int which, ...); }
172 UNIMPL NOHIDE nosys
173 MSTD POSIX { ssize_t pread(int fd, void *buf, size_t nbyte, \
int pad, off_t offset); }
174 MSTD POSIX { ssize_t pwrite(int fd, const void *buf, \
size_t nbyte, int pad, off_t offset); }
175 UNIMPL NOHIDE nosys
176 MSTD BSD { int ntp_adjtime(struct timex *tp); }
177 UNIMPL NOHIDE sfork (BSD/OS 2.x)
178 UNIMPL NOHIDE getdescriptor (BSD/OS 2.x)
179 UNIMPL NOHIDE setdescriptor (BSD/OS 2.x)
180 UNIMPL NOHIDE nosys
; Syscalls 181-199 are used by/reserved for BSD
181 MSTD POSIX { int setgid(gid_t gid); }
182 MSTD BSD { int setegid(gid_t egid); }
183 MSTD BSD { int seteuid(uid_t euid); }
184 UNIMPL BSD lfs_bmapv
185 UNIMPL BSD lfs_markv
186 UNIMPL BSD lfs_segclean
187 UNIMPL BSD lfs_segwait
188 STD POSIX { int stat(char *path, struct stat *ub); }
189 MSTD POSIX { int fstat(int fd, struct stat *sb); }
190 STD POSIX { int lstat(char *path, struct stat *ub); }
191 STD POSIX { int pathconf(char *path, int name); }
192 MSTD POSIX { int fpathconf(int fd, int name); }
193 UNIMPL NOHIDE nosys
194 MSTD BSD { int getrlimit(u_int which, \
struct rlimit *rlp); } \
getrlimit __getrlimit_args int
195 MSTD BSD { int setrlimit(u_int which, \
struct rlimit *rlp); } \
setrlimit __setrlimit_args int
196 STD BSD { int getdirentries(int fd, char *buf, u_int count, \
long *basep); }
197 MSTD BSD { caddr_t mmap(caddr_t addr, size_t len, int prot, \
int flags, int fd, int pad, off_t pos); }
198 STD NOHIDE { int nosys(void); } __syscall __syscall_args int
199 STD POSIX { off_t lseek(int fd, int pad, off_t offset, \
int whence); }
200 STD BSD { int truncate(char *path, int pad, off_t length); }
201 STD BSD { int ftruncate(int fd, int pad, off_t length); }
202 MSTD BSD { int __sysctl(int *name, u_int namelen, void *old, \
size_t *oldlenp, void *new, size_t newlen); } \
__sysctl sysctl_args int
; properly, __sysctl should be a NOHIDE, but making an exception
; here allows to avoid one in libc/sys/Makefile.inc.
203 MSTD BSD { int mlock(const void *addr, size_t len); }
204 MSTD BSD { int munlock(const void *addr, size_t len); }
205 STD BSD { int undelete(char *path); }
206 STD BSD { int futimes(int fd, struct timeval *tptr); }
207 MSTD BSD { int getpgid(pid_t pid); }
208 UNIMPL NOHIDE newreboot (NetBSD)
209 MSTD BSD { int poll(struct pollfd *fds, u_int nfds, \
int timeout); }
;
; The following are reserved for loadable syscalls
;
210 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
211 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
212 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
213 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
214 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
215 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
216 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
217 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
218 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
219 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
;
; The following were introduced with NetBSD/4.4Lite-2
; They are initialized by thier respective modules/sysinits
220 MNOSTD BSD { int __semctl(int semid, int semnum, int cmd, \
union semun *arg); }
221 MNOSTD BSD { int semget(key_t key, int nsems, int semflg); }
222 MNOSTD BSD { int semop(int semid, struct sembuf *sops, \
u_int nsops); }
223 UNIMPL NOHIDE semconfig
224 MNOSTD BSD { int msgctl(int msqid, int cmd, \
struct msqid_ds *buf); }
225 MNOSTD BSD { int msgget(key_t key, int msgflg); }
226 MNOSTD BSD { int msgsnd(int msqid, void *msgp, size_t msgsz, \
int msgflg); }
227 MNOSTD BSD { int msgrcv(int msqid, void *msgp, size_t msgsz, \
long msgtyp, int msgflg); }
228 MNOSTD BSD { int shmat(int shmid, void *shmaddr, int shmflg); }
229 MNOSTD BSD { int shmctl(int shmid, int cmd, \
struct shmid_ds *buf); }
230 MNOSTD BSD { int shmdt(void *shmaddr); }
231 MNOSTD BSD { int shmget(key_t key, int size, int shmflg); }
;
232 MSTD POSIX { int clock_gettime(clockid_t clock_id, \
struct timespec *tp); }
233 MSTD POSIX { int clock_settime(clockid_t clock_id, \
const struct timespec *tp); }
234 MSTD POSIX { int clock_getres(clockid_t clock_id, \
struct timespec *tp); }
235 UNIMPL NOHIDE timer_create
236 UNIMPL NOHIDE timer_delete
237 UNIMPL NOHIDE timer_settime
238 UNIMPL NOHIDE timer_gettime
239 UNIMPL NOHIDE timer_getoverrun
240 MSTD POSIX { int nanosleep(const struct timespec *rqtp, \
struct timespec *rmtp); }
241 UNIMPL NOHIDE nosys
242 UNIMPL NOHIDE nosys
243 UNIMPL NOHIDE nosys
244 UNIMPL NOHIDE nosys
245 UNIMPL NOHIDE nosys
246 UNIMPL NOHIDE nosys
247 UNIMPL NOHIDE nosys
248 UNIMPL NOHIDE nosys
249 UNIMPL NOHIDE nosys
; syscall numbers initially used in OpenBSD
250 MSTD BSD { int minherit(void *addr, size_t len, int inherit); }
251 MSTD BSD { int rfork(int flags); }
252 MSTD BSD { int openbsd_poll(struct pollfd *fds, u_int nfds, \
int timeout); }
253 STD BSD { int issetugid(void); }
254 STD BSD { int lchown(char *path, int uid, int gid); }
255 UNIMPL NOHIDE nosys
256 UNIMPL NOHIDE nosys
257 UNIMPL NOHIDE nosys
258 UNIMPL NOHIDE nosys
259 UNIMPL NOHIDE nosys
260 UNIMPL NOHIDE nosys
261 UNIMPL NOHIDE nosys
262 UNIMPL NOHIDE nosys
263 UNIMPL NOHIDE nosys
264 UNIMPL NOHIDE nosys
265 UNIMPL NOHIDE nosys
266 UNIMPL NOHIDE nosys
267 UNIMPL NOHIDE nosys
268 UNIMPL NOHIDE nosys
269 UNIMPL NOHIDE nosys
270 UNIMPL NOHIDE nosys
271 UNIMPL NOHIDE nosys
272 STD BSD { int getdents(int fd, char *buf, size_t count); }
273 UNIMPL NOHIDE nosys
274 STD BSD { int lchmod(char *path, mode_t mode); }
275 NOPROTO BSD { int lchown(char *path, uid_t uid, gid_t gid); } netbsd_lchown lchown_args int
276 STD BSD { int lutimes(char *path, struct timeval *tptr); }
277 MNOPROTO BSD { int msync(void *addr, size_t len, int flags); } netbsd_msync msync_args int
278 STD BSD { int nstat(char *path, struct nstat *ub); }
279 MSTD BSD { int nfstat(int fd, struct nstat *sb); }
280 STD BSD { int nlstat(char *path, struct nstat *ub); }
281 UNIMPL NOHIDE nosys
282 UNIMPL NOHIDE nosys
283 UNIMPL NOHIDE nosys
284 UNIMPL NOHIDE nosys
285 UNIMPL NOHIDE nosys
286 UNIMPL NOHIDE nosys
287 UNIMPL NOHIDE nosys
288 UNIMPL NOHIDE nosys
289 UNIMPL NOHIDE nosys
290 UNIMPL NOHIDE nosys
291 UNIMPL NOHIDE nosys
292 UNIMPL NOHIDE nosys
293 UNIMPL NOHIDE nosys
294 UNIMPL NOHIDE nosys
295 UNIMPL NOHIDE nosys
296 UNIMPL NOHIDE nosys
; XXX 297 is 300 in NetBSD
297 STD BSD { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); }
298 STD BSD { int fhopen(const struct fhandle *u_fhp, int flags); }
299 STD BSD { int fhstat(const struct fhandle *u_fhp, struct stat *sb); }
; syscall numbers for FreeBSD
300 MSTD BSD { int modnext(int modid); }
301 MSTD BSD { int modstat(int modid, struct module_stat* stat); }
302 MSTD BSD { int modfnext(int modid); }
303 MSTD BSD { int modfind(const char *name); }
304 MSTD BSD { int kldload(const char *file); }
305 MSTD BSD { int kldunload(int fileid); }
306 MSTD BSD { int kldfind(const char *file); }
307 MSTD BSD { int kldnext(int fileid); }
308 MSTD BSD { int kldstat(int fileid, struct kld_file_stat* stat); }
309 MSTD BSD { int kldfirstmod(int fileid); }
310 MSTD BSD { int getsid(pid_t pid); }
311 MSTD BSD { int setresuid(uid_t ruid, uid_t euid, uid_t suid); }
312 MSTD BSD { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); }
313 OBSOL NOHIDE signanosleep
314 NOSTD BSD { int aio_return(struct aiocb *aiocbp); }
315 NOSTD BSD { int aio_suspend(struct aiocb * const * aiocbp, int nent, const struct timespec *timeout); }
316 NOSTD BSD { int aio_cancel(int fd, struct aiocb *aiocbp); }
317 NOSTD BSD { int aio_error(struct aiocb *aiocbp); }
318 NOSTD BSD { int aio_read(struct aiocb *aiocbp); }
319 NOSTD BSD { int aio_write(struct aiocb *aiocbp); }
320 NOSTD BSD { int lio_listio(int mode, struct aiocb * const *acb_list, int nent, struct sigevent *sig); }
321 MSTD BSD { int yield(void); }
322 OBSOL NOHIDE thr_sleep
323 OBSOL NOHIDE thr_wakeup
324 MSTD BSD { int mlockall(int how); }
325 MSTD BSD { int munlockall(void); }
326 STD BSD { int __getcwd(u_char *buf, u_int buflen); }
327 MSTD POSIX { int sched_setparam (pid_t pid, const struct sched_param *param); }
328 MSTD POSIX { int sched_getparam (pid_t pid, struct sched_param *param); }
329 MSTD POSIX { int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); }
330 MSTD POSIX { int sched_getscheduler (pid_t pid); }
331 MSTD POSIX { int sched_yield (void); }
332 MSTD POSIX { int sched_get_priority_max (int policy); }
333 MSTD POSIX { int sched_get_priority_min (int policy); }
334 MSTD POSIX { int sched_rr_get_interval (pid_t pid, struct timespec *interval); }
335 STD BSD { int utrace(const void *addr, size_t len); }
336 MSTD BSD { int sendfile(int fd, int s, off_t offset, size_t nbytes, \
struct sf_hdtr *hdtr, off_t *sbytes, int flags); }
337 STD BSD { int kldsym(int fileid, int cmd, void *data); }
338 MSTD BSD { int jail(struct jail *jail); }
339 UNIMPL BSD pioctl
340 MSTD POSIX { int sigprocmask(int how, const sigset_t *set, \
sigset_t *oset); }
341 MSTD POSIX { int sigsuspend(const sigset_t *sigmask); }
342 MSTD POSIX { int sigaction(int sig, const struct sigaction *act, \
struct sigaction *oact); }
343 MSTD POSIX { int sigpending(sigset_t *set); }
344 STD BSD { int sigreturn(const struct __ucontext *sigcntxp); }
345 UNIMPL NOHIDE sigtimedwait
346 UNIMPL NOHIDE sigwaitinfo
347 MSTD BSD { int __acl_get_file(const char *path, \
acl_type_t type, struct acl *aclp); }
348 MSTD BSD { int __acl_set_file(const char *path, \
acl_type_t type, struct acl *aclp); }
349 MSTD BSD { int __acl_get_fd(int filedes, acl_type_t type, \
struct acl *aclp); }
350 MSTD BSD { int __acl_set_fd(int filedes, acl_type_t type, \
struct acl *aclp); }
351 MSTD BSD { int __acl_delete_file(const char *path, \
acl_type_t type); }
352 MSTD BSD { int __acl_delete_fd(int filedes, acl_type_t type); }
353 MSTD BSD { int __acl_aclcheck_file(const char *path, \
acl_type_t type, struct acl *aclp); }
354 MSTD BSD { int __acl_aclcheck_fd(int filedes, acl_type_t type, \
struct acl *aclp); }
355 STD BSD { int extattrctl(const char *path, int cmd, \
const char *filename, int attrnamespace, \
const char *attrname); }
356 STD BSD { int extattr_set_file(const char *path, \
int attrnamespace, const char *attrname, \
void *data, size_t nbytes); }
357 STD BSD { ssize_t extattr_get_file(const char *path, \
int attrnamespace, const char *attrname, \
void *data, size_t nbytes); }
358 STD BSD { int extattr_delete_file(const char *path, \
int attrnamespace, const char *attrname); }
359 NOSTD BSD { int aio_waitcomplete(struct aiocb **aiocbp, struct timespec *timeout); }
360 MSTD BSD { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); }
361 MSTD BSD { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); }
362 MSTD BSD { int kqueue(void); }
363 MSTD BSD { int kevent(int fd, \
const struct kevent *changelist, int nchanges, \
struct kevent *eventlist, int nevents, \
const struct timespec *timeout); }
364 STD BSD { int __cap_get_proc(struct cap *cap_p); }
365 STD BSD { int __cap_set_proc(struct cap *cap_p); }
366 STD BSD { int __cap_get_fd(int fd, struct cap *cap_p); }
367 STD BSD { int __cap_get_file(const char *path_p, struct cap *cap_p); }
368 STD BSD { int __cap_set_fd(int fd, struct cap *cap_p); }
369 STD BSD { int __cap_set_file(const char *path_p, struct cap *cap_p); }
370 NODEF NOHIDE lkmressys lkmressys nosys_args int
371 STD BSD { int extattr_set_fd(int fd, int attrnamespace, \
const char *attrname, void *data, \
size_t nbytes); }
372 STD BSD { ssize_t extattr_get_fd(int fd, int attrnamespace, \
const char *attrname, void *data, size_t nbytes); }
373 STD BSD { int extattr_delete_fd(int fd, int attrnamespace, \
const char *attrname); }
374 MSTD BSD { int __setugid(int flag); }
375 NOIMPL BSD { int nfsclnt(int flag, caddr_t argp); }
376 STD BSD { int eaccess(char *path, int flags); }
377 UNIMPL BSD afs_syscall
378 STD BSD { int nmount(struct iovec *iovp, unsigned int iovcnt, \
int flags); }
379 STD BSD { int kse_exit(void); }
380 STD BSD { int kse_wakeup(void); }
381 STD BSD { int kse_new(struct kse_mailbox * mbx, \
int new_grp_flag); }
382 STD BSD { int thread_wakeup(struct thread_mailbox *tmbx); }
383 STD BSD { int kse_yield(void); }
384 UNIMPL BSD __mac_get_proc
385 UNIMPL BSD __mac_set_proc
386 UNIMPL BSD __mac_get_fd
387 UNIMPL BSD __mac_get_file
388 UNIMPL BSD __mac_set_fd
389 UNIMPL BSD __mac_set_file

15
sys/ia64/ia32/Makefile Normal file
View File

@ -0,0 +1,15 @@
# Makefile for syscall tables
#
# $FreeBSD$
all:
@echo "make sysent only"
sysent: ia32_sysent.c ia32_syscall.h ia32_proto.h
ia32_sysent.c ia32_syscall.h ia32_proto.h: ../../kern/makesyscalls.sh \
syscalls.master syscalls.conf
-mv -f ia32_sysent.c ia32_sysent.c.bak
-mv -f ia32_syscall.h ia32_syscall.h.bak
-mv -f ia32_proto.h ia32_proto.h.bak
sh ../../kern/makesyscalls.sh syscalls.master syscalls.conf

1529
sys/ia64/ia32/ia32_proto.h Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,306 @@
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD
*/
#define IA32_SYS_syscall 0
#define IA32_SYS_exit 1
#define IA32_SYS_fork 2
#define IA32_SYS_read 3
#define IA32_SYS_write 4
#define IA32_SYS_open 5
#define IA32_SYS_close 6
#define IA32_SYS_wait4 7
/* 8 is old creat */
#define IA32_SYS_link 9
#define IA32_SYS_unlink 10
/* 11 is obsolete execv */
#define IA32_SYS_chdir 12
#define IA32_SYS_fchdir 13
#define IA32_SYS_mknod 14
#define IA32_SYS_chmod 15
#define IA32_SYS_chown 16
#define IA32_SYS_break 17
#define IA32_SYS_getfsstat 18
/* 19 is old lseek */
#define IA32_SYS_getpid 20
#define IA32_SYS_mount 21
#define IA32_SYS_unmount 22
#define IA32_SYS_setuid 23
#define IA32_SYS_getuid 24
#define IA32_SYS_geteuid 25
#define IA32_SYS_ptrace 26
#define IA32_SYS_recvmsg 27
#define IA32_SYS_sendmsg 28
#define IA32_SYS_recvfrom 29
#define IA32_SYS_accept 30
#define IA32_SYS_getpeername 31
#define IA32_SYS_getsockname 32
#define IA32_SYS_access 33
#define IA32_SYS_chflags 34
#define IA32_SYS_fchflags 35
#define IA32_SYS_sync 36
#define IA32_SYS_kill 37
/* 38 is old stat */
#define IA32_SYS_getppid 39
/* 40 is old lstat */
#define IA32_SYS_dup 41
#define IA32_SYS_pipe 42
#define IA32_SYS_getegid 43
#define IA32_SYS_profil 44
#define IA32_SYS_ktrace 45
/* 46 is old sigaction */
#define IA32_SYS_getgid 47
/* 48 is old sigprocmask */
#define IA32_SYS_getlogin 49
#define IA32_SYS_setlogin 50
#define IA32_SYS_acct 51
/* 52 is old sigpending */
#define IA32_SYS_sigaltstack 53
#define IA32_SYS_ioctl 54
#define IA32_SYS_reboot 55
#define IA32_SYS_revoke 56
#define IA32_SYS_symlink 57
#define IA32_SYS_readlink 58
#define IA32_SYS_execve 59
#define IA32_SYS_umask 60
#define IA32_SYS_chroot 61
/* 62 is old fstat */
/* 63 is old getkerninfo */
/* 64 is old getpagesize */
#define IA32_SYS_msync 65
#define IA32_SYS_vfork 66
/* 67 is obsolete vread */
/* 68 is obsolete vwrite */
#define IA32_SYS_sbrk 69
#define IA32_SYS_sstk 70
/* 71 is old mmap */
#define IA32_SYS_vadvise 72
#define IA32_SYS_munmap 73
#define IA32_SYS_mprotect 74
#define IA32_SYS_madvise 75
/* 76 is obsolete vhangup */
/* 77 is obsolete vlimit */
#define IA32_SYS_mincore 78
#define IA32_SYS_getgroups 79
#define IA32_SYS_setgroups 80
#define IA32_SYS_getpgrp 81
#define IA32_SYS_setpgid 82
#define IA32_SYS_setitimer 83
/* 84 is old wait */
#define IA32_SYS_swapon 85
#define IA32_SYS_getitimer 86
/* 87 is old gethostname */
/* 88 is old sethostname */
#define IA32_SYS_getdtablesize 89
#define IA32_SYS_dup2 90
#define IA32_SYS_fcntl 92
#define IA32_SYS_select 93
#define IA32_SYS_fsync 95
#define IA32_SYS_setpriority 96
#define IA32_SYS_socket 97
#define IA32_SYS_connect 98
/* 99 is old accept */
#define IA32_SYS_getpriority 100
/* 101 is old send */
/* 102 is old recv */
#define IA32_SYS_osigreturn 103
#define IA32_SYS_bind 104
#define IA32_SYS_setsockopt 105
#define IA32_SYS_listen 106
/* 107 is obsolete vtimes */
/* 108 is old sigvec */
/* 109 is old sigblock */
/* 110 is old sigsetmask */
/* 111 is old sigsuspend */
/* 112 is old sigstack */
/* 113 is old recvmsg */
/* 114 is old sendmsg */
/* 115 is obsolete vtrace */
#define IA32_SYS_gettimeofday 116
#define IA32_SYS_getrusage 117
#define IA32_SYS_getsockopt 118
#define IA32_SYS_readv 120
#define IA32_SYS_writev 121
#define IA32_SYS_settimeofday 122
#define IA32_SYS_fchown 123
#define IA32_SYS_fchmod 124
/* 125 is old recvfrom */
#define IA32_SYS_setreuid 126
#define IA32_SYS_setregid 127
#define IA32_SYS_rename 128
/* 129 is old truncate */
/* 130 is old ftruncate */
#define IA32_SYS_flock 131
#define IA32_SYS_mkfifo 132
#define IA32_SYS_sendto 133
#define IA32_SYS_shutdown 134
#define IA32_SYS_socketpair 135
#define IA32_SYS_mkdir 136
#define IA32_SYS_rmdir 137
#define IA32_SYS_utimes 138
/* 139 is obsolete 4.2 sigreturn */
#define IA32_SYS_adjtime 140
/* 141 is old getpeername */
/* 142 is old gethostid */
/* 143 is old sethostid */
/* 144 is old getrlimit */
/* 145 is old setrlimit */
/* 146 is old killpg */
#define IA32_SYS_setsid 147
#define IA32_SYS_quotactl 148
/* 149 is old quota */
/* 150 is old getsockname */
#define IA32_SYS_nfssvc 155
/* 156 is old getdirentries */
#define IA32_SYS_statfs 157
#define IA32_SYS_fstatfs 158
#define IA32_SYS_getfh 161
#define IA32_SYS_getdomainname 162
#define IA32_SYS_setdomainname 163
#define IA32_SYS_uname 164
#define IA32_SYS_sysarch 165
#define IA32_SYS_rtprio 166
#define IA32_SYS_semsys 169
#define IA32_SYS_msgsys 170
#define IA32_SYS_shmsys 171
#define IA32_SYS_pread 173
#define IA32_SYS_pwrite 174
#define IA32_SYS_ntp_adjtime 176
#define IA32_SYS_setgid 181
#define IA32_SYS_setegid 182
#define IA32_SYS_seteuid 183
#define IA32_SYS_stat 188
#define IA32_SYS_fstat 189
#define IA32_SYS_lstat 190
#define IA32_SYS_pathconf 191
#define IA32_SYS_fpathconf 192
#define IA32_SYS_getrlimit 194
#define IA32_SYS_setrlimit 195
#define IA32_SYS_getdirentries 196
#define IA32_SYS_mmap 197
#define IA32_SYS___syscall 198
#define IA32_SYS_lseek 199
#define IA32_SYS_truncate 200
#define IA32_SYS_ftruncate 201
#define IA32_SYS___sysctl 202
#define IA32_SYS_mlock 203
#define IA32_SYS_munlock 204
#define IA32_SYS_undelete 205
#define IA32_SYS_futimes 206
#define IA32_SYS_getpgid 207
#define IA32_SYS_poll 209
#define IA32_SYS___semctl 220
#define IA32_SYS_semget 221
#define IA32_SYS_semop 222
#define IA32_SYS_msgctl 224
#define IA32_SYS_msgget 225
#define IA32_SYS_msgsnd 226
#define IA32_SYS_msgrcv 227
#define IA32_SYS_shmat 228
#define IA32_SYS_shmctl 229
#define IA32_SYS_shmdt 230
#define IA32_SYS_shmget 231
#define IA32_SYS_clock_gettime 232
#define IA32_SYS_clock_settime 233
#define IA32_SYS_clock_getres 234
#define IA32_SYS_nanosleep 240
#define IA32_SYS_minherit 250
#define IA32_SYS_rfork 251
#define IA32_SYS_openbsd_poll 252
#define IA32_SYS_issetugid 253
#define IA32_SYS_lchown 254
#define IA32_SYS_getdents 272
#define IA32_SYS_lchmod 274
#define IA32_SYS_netbsd_lchown 275
#define IA32_SYS_lutimes 276
#define IA32_SYS_netbsd_msync 277
#define IA32_SYS_nstat 278
#define IA32_SYS_nfstat 279
#define IA32_SYS_nlstat 280
#define IA32_SYS_fhstatfs 297
#define IA32_SYS_fhopen 298
#define IA32_SYS_fhstat 299
#define IA32_SYS_modnext 300
#define IA32_SYS_modstat 301
#define IA32_SYS_modfnext 302
#define IA32_SYS_modfind 303
#define IA32_SYS_kldload 304
#define IA32_SYS_kldunload 305
#define IA32_SYS_kldfind 306
#define IA32_SYS_kldnext 307
#define IA32_SYS_kldstat 308
#define IA32_SYS_kldfirstmod 309
#define IA32_SYS_getsid 310
#define IA32_SYS_setresuid 311
#define IA32_SYS_setresgid 312
/* 313 is obsolete signanosleep */
#define IA32_SYS_aio_return 314
#define IA32_SYS_aio_suspend 315
#define IA32_SYS_aio_cancel 316
#define IA32_SYS_aio_error 317
#define IA32_SYS_aio_read 318
#define IA32_SYS_aio_write 319
#define IA32_SYS_lio_listio 320
#define IA32_SYS_yield 321
/* 322 is obsolete thr_sleep */
/* 323 is obsolete thr_wakeup */
#define IA32_SYS_mlockall 324
#define IA32_SYS_munlockall 325
#define IA32_SYS___getcwd 326
#define IA32_SYS_sched_setparam 327
#define IA32_SYS_sched_getparam 328
#define IA32_SYS_sched_setscheduler 329
#define IA32_SYS_sched_getscheduler 330
#define IA32_SYS_sched_yield 331
#define IA32_SYS_sched_get_priority_max 332
#define IA32_SYS_sched_get_priority_min 333
#define IA32_SYS_sched_rr_get_interval 334
#define IA32_SYS_utrace 335
#define IA32_SYS_sendfile 336
#define IA32_SYS_kldsym 337
#define IA32_SYS_jail 338
#define IA32_SYS_sigprocmask 340
#define IA32_SYS_sigsuspend 341
#define IA32_SYS_sigaction 342
#define IA32_SYS_sigpending 343
#define IA32_SYS_sigreturn 344
#define IA32_SYS___acl_get_file 347
#define IA32_SYS___acl_set_file 348
#define IA32_SYS___acl_get_fd 349
#define IA32_SYS___acl_set_fd 350
#define IA32_SYS___acl_delete_file 351
#define IA32_SYS___acl_delete_fd 352
#define IA32_SYS___acl_aclcheck_file 353
#define IA32_SYS___acl_aclcheck_fd 354
#define IA32_SYS_extattrctl 355
#define IA32_SYS_extattr_set_file 356
#define IA32_SYS_extattr_get_file 357
#define IA32_SYS_extattr_delete_file 358
#define IA32_SYS_aio_waitcomplete 359
#define IA32_SYS_getresuid 360
#define IA32_SYS_getresgid 361
#define IA32_SYS_kqueue 362
#define IA32_SYS_kevent 363
#define IA32_SYS___cap_get_proc 364
#define IA32_SYS___cap_set_proc 365
#define IA32_SYS___cap_get_fd 366
#define IA32_SYS___cap_get_file 367
#define IA32_SYS___cap_set_fd 368
#define IA32_SYS___cap_set_file 369
#define IA32_SYS_extattr_set_fd 371
#define IA32_SYS_extattr_get_fd 372
#define IA32_SYS_extattr_delete_fd 373
#define IA32_SYS___setugid 374
#define IA32_SYS_nfsclnt 375
#define IA32_SYS_eaccess 376
#define IA32_SYS_nmount 378
#define IA32_SYS_kse_exit 379
#define IA32_SYS_kse_wakeup 380
#define IA32_SYS_kse_new 381
#define IA32_SYS_thread_wakeup 382
#define IA32_SYS_kse_yield 383
#define IA32_SYS_MAXSYSCALL 390

415
sys/ia64/ia32/ia32_sysent.c Normal file
View File

@ -0,0 +1,415 @@
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD
*/
#include "opt_compat.h"
#include <sys/param.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>
#define AS(name) (sizeof(struct name) / sizeof(register_t))
#ifdef COMPAT_43
#define compat(n, name) n, (sy_call_t *)__CONCAT(o,name)
#else
#define compat(n, name) 0, (sy_call_t *)nosys
#endif
/* The casts are bogus but will do for now. */
struct sysent ia32_sysent[] = {
{ 0, (sy_call_t *)nosys }, /* 0 = syscall */
{ SYF_MPSAFE | AS(sys_exit_args), (sy_call_t *)sys_exit }, /* 1 = exit */
{ SYF_MPSAFE | 0, (sy_call_t *)fork }, /* 2 = fork */
{ SYF_MPSAFE | AS(read_args), (sy_call_t *)read }, /* 3 = read */
{ SYF_MPSAFE | AS(write_args), (sy_call_t *)write }, /* 4 = write */
{ AS(open_args), (sy_call_t *)open }, /* 5 = open */
{ SYF_MPSAFE | AS(close_args), (sy_call_t *)close }, /* 6 = close */
{ SYF_MPSAFE | AS(wait_args), (sy_call_t *)wait4 }, /* 7 = wait4 */
{ compat(AS(ocreat_args),creat) }, /* 8 = old creat */
{ AS(link_args), (sy_call_t *)link }, /* 9 = link */
{ AS(unlink_args), (sy_call_t *)unlink }, /* 10 = unlink */
{ 0, (sy_call_t *)nosys }, /* 11 = obsolete execv */
{ AS(chdir_args), (sy_call_t *)chdir }, /* 12 = chdir */
{ AS(fchdir_args), (sy_call_t *)fchdir }, /* 13 = fchdir */
{ AS(mknod_args), (sy_call_t *)mknod }, /* 14 = mknod */
{ AS(chmod_args), (sy_call_t *)chmod }, /* 15 = chmod */
{ AS(chown_args), (sy_call_t *)chown }, /* 16 = chown */
{ SYF_MPSAFE | AS(obreak_args), (sy_call_t *)obreak }, /* 17 = break */
{ AS(getfsstat_args), (sy_call_t *)getfsstat }, /* 18 = getfsstat */
{ compat(AS(olseek_args),lseek) }, /* 19 = old lseek */
{ SYF_MPSAFE | 0, (sy_call_t *)getpid }, /* 20 = getpid */
{ AS(mount_args), (sy_call_t *)mount }, /* 21 = mount */
{ AS(unmount_args), (sy_call_t *)unmount }, /* 22 = unmount */
{ SYF_MPSAFE | AS(setuid_args), (sy_call_t *)setuid }, /* 23 = setuid */
{ SYF_MPSAFE | 0, (sy_call_t *)getuid }, /* 24 = getuid */
{ SYF_MPSAFE | 0, (sy_call_t *)geteuid }, /* 25 = geteuid */
{ AS(ptrace_args), (sy_call_t *)ptrace }, /* 26 = ptrace */
{ SYF_MPSAFE | AS(recvmsg_args), (sy_call_t *)recvmsg }, /* 27 = recvmsg */
{ SYF_MPSAFE | AS(sendmsg_args), (sy_call_t *)sendmsg }, /* 28 = sendmsg */
{ SYF_MPSAFE | AS(recvfrom_args), (sy_call_t *)recvfrom }, /* 29 = recvfrom */
{ SYF_MPSAFE | AS(accept_args), (sy_call_t *)accept }, /* 30 = accept */
{ SYF_MPSAFE | AS(getpeername_args), (sy_call_t *)getpeername }, /* 31 = getpeername */
{ SYF_MPSAFE | AS(getsockname_args), (sy_call_t *)getsockname }, /* 32 = getsockname */
{ AS(access_args), (sy_call_t *)access }, /* 33 = access */
{ AS(chflags_args), (sy_call_t *)chflags }, /* 34 = chflags */
{ AS(fchflags_args), (sy_call_t *)fchflags }, /* 35 = fchflags */
{ 0, (sy_call_t *)sync }, /* 36 = sync */
{ SYF_MPSAFE | AS(kill_args), (sy_call_t *)kill }, /* 37 = kill */
{ compat(AS(ostat_args),stat) }, /* 38 = old stat */
{ SYF_MPSAFE | 0, (sy_call_t *)getppid }, /* 39 = getppid */
{ compat(AS(olstat_args),lstat) }, /* 40 = old lstat */
{ AS(dup_args), (sy_call_t *)dup }, /* 41 = dup */
{ 0, (sy_call_t *)pipe }, /* 42 = pipe */
{ SYF_MPSAFE | 0, (sy_call_t *)getegid }, /* 43 = getegid */
{ SYF_MPSAFE | AS(profil_args), (sy_call_t *)profil }, /* 44 = profil */
{ AS(ktrace_args), (sy_call_t *)ktrace }, /* 45 = ktrace */
{ compat(SYF_MPSAFE | AS(osigaction_args),sigaction) }, /* 46 = old sigaction */
{ SYF_MPSAFE | 0, (sy_call_t *)getgid }, /* 47 = getgid */
{ compat(SYF_MPSAFE | AS(osigprocmask_args),sigprocmask) }, /* 48 = old sigprocmask */
{ SYF_MPSAFE | AS(getlogin_args), (sy_call_t *)getlogin }, /* 49 = getlogin */
{ SYF_MPSAFE | AS(setlogin_args), (sy_call_t *)setlogin }, /* 50 = setlogin */
{ SYF_MPSAFE | AS(acct_args), (sy_call_t *)acct }, /* 51 = acct */
{ compat(SYF_MPSAFE | 0,sigpending) }, /* 52 = old sigpending */
{ SYF_MPSAFE | AS(sigaltstack_args), (sy_call_t *)sigaltstack }, /* 53 = sigaltstack */
{ SYF_MPSAFE | AS(ioctl_args), (sy_call_t *)ioctl }, /* 54 = ioctl */
{ SYF_MPSAFE | AS(reboot_args), (sy_call_t *)reboot }, /* 55 = reboot */
{ AS(revoke_args), (sy_call_t *)revoke }, /* 56 = revoke */
{ AS(symlink_args), (sy_call_t *)symlink }, /* 57 = symlink */
{ AS(readlink_args), (sy_call_t *)readlink }, /* 58 = readlink */
{ SYF_MPSAFE | AS(execve_args), (sy_call_t *)execve }, /* 59 = execve */
{ SYF_MPSAFE | AS(umask_args), (sy_call_t *)umask }, /* 60 = umask */
{ AS(chroot_args), (sy_call_t *)chroot }, /* 61 = chroot */
{ compat(SYF_MPSAFE | AS(ofstat_args),fstat) }, /* 62 = old fstat */
{ compat(SYF_MPSAFE | AS(getkerninfo_args),getkerninfo) }, /* 63 = old getkerninfo */
{ compat(SYF_MPSAFE | 0,getpagesize) }, /* 64 = old getpagesize */
{ AS(msync_args), (sy_call_t *)msync }, /* 65 = msync */
{ SYF_MPSAFE | 0, (sy_call_t *)vfork }, /* 66 = vfork */
{ 0, (sy_call_t *)nosys }, /* 67 = obsolete vread */
{ 0, (sy_call_t *)nosys }, /* 68 = obsolete vwrite */
{ SYF_MPSAFE | AS(sbrk_args), (sy_call_t *)sbrk }, /* 69 = sbrk */
{ SYF_MPSAFE | AS(sstk_args), (sy_call_t *)sstk }, /* 70 = sstk */
{ compat(SYF_MPSAFE | AS(ommap_args),mmap) }, /* 71 = old mmap */
{ SYF_MPSAFE | AS(ovadvise_args), (sy_call_t *)ovadvise }, /* 72 = vadvise */
{ SYF_MPSAFE | AS(munmap_args), (sy_call_t *)munmap }, /* 73 = munmap */
{ SYF_MPSAFE | AS(mprotect_args), (sy_call_t *)mprotect }, /* 74 = mprotect */
{ SYF_MPSAFE | AS(madvise_args), (sy_call_t *)madvise }, /* 75 = madvise */
{ 0, (sy_call_t *)nosys }, /* 76 = obsolete vhangup */
{ 0, (sy_call_t *)nosys }, /* 77 = obsolete vlimit */
{ SYF_MPSAFE | AS(mincore_args), (sy_call_t *)mincore }, /* 78 = mincore */
{ SYF_MPSAFE | AS(getgroups_args), (sy_call_t *)getgroups }, /* 79 = getgroups */
{ SYF_MPSAFE | AS(setgroups_args), (sy_call_t *)setgroups }, /* 80 = setgroups */
{ SYF_MPSAFE | 0, (sy_call_t *)getpgrp }, /* 81 = getpgrp */
{ SYF_MPSAFE | AS(setpgid_args), (sy_call_t *)setpgid }, /* 82 = setpgid */
{ SYF_MPSAFE | AS(setitimer_args), (sy_call_t *)setitimer }, /* 83 = setitimer */
{ compat(SYF_MPSAFE | 0,wait) }, /* 84 = old wait */
{ SYF_MPSAFE | AS(swapon_args), (sy_call_t *)swapon }, /* 85 = swapon */
{ SYF_MPSAFE | AS(getitimer_args), (sy_call_t *)getitimer }, /* 86 = getitimer */
{ compat(SYF_MPSAFE | AS(gethostname_args),gethostname) }, /* 87 = old gethostname */
{ compat(SYF_MPSAFE | AS(sethostname_args),sethostname) }, /* 88 = old sethostname */
{ SYF_MPSAFE | 0, (sy_call_t *)getdtablesize }, /* 89 = getdtablesize */
{ SYF_MPSAFE | AS(dup2_args), (sy_call_t *)dup2 }, /* 90 = dup2 */
{ 0, (sy_call_t *)nosys }, /* 91 = getdopt */
{ SYF_MPSAFE | AS(fcntl_args), (sy_call_t *)fcntl }, /* 92 = fcntl */
{ SYF_MPSAFE | AS(select_args), (sy_call_t *)select }, /* 93 = select */
{ 0, (sy_call_t *)nosys }, /* 94 = setdopt */
{ AS(fsync_args), (sy_call_t *)fsync }, /* 95 = fsync */
{ SYF_MPSAFE | AS(setpriority_args), (sy_call_t *)setpriority }, /* 96 = setpriority */
{ SYF_MPSAFE | AS(socket_args), (sy_call_t *)socket }, /* 97 = socket */
{ SYF_MPSAFE | AS(connect_args), (sy_call_t *)connect }, /* 98 = connect */
{ compat(SYF_MPSAFE | AS(accept_args),accept) }, /* 99 = old accept */
{ SYF_MPSAFE | AS(getpriority_args), (sy_call_t *)getpriority }, /* 100 = getpriority */
{ compat(SYF_MPSAFE | AS(osend_args),send) }, /* 101 = old send */
{ compat(SYF_MPSAFE | AS(orecv_args),recv) }, /* 102 = old recv */
{ AS(osigreturn_args), (sy_call_t *)osigreturn }, /* 103 = osigreturn */
{ SYF_MPSAFE | AS(bind_args), (sy_call_t *)bind }, /* 104 = bind */
{ SYF_MPSAFE | AS(setsockopt_args), (sy_call_t *)setsockopt }, /* 105 = setsockopt */
{ SYF_MPSAFE | AS(listen_args), (sy_call_t *)listen }, /* 106 = listen */
{ 0, (sy_call_t *)nosys }, /* 107 = obsolete vtimes */
{ compat(SYF_MPSAFE | AS(osigvec_args),sigvec) }, /* 108 = old sigvec */
{ compat(SYF_MPSAFE | AS(osigblock_args),sigblock) }, /* 109 = old sigblock */
{ compat(SYF_MPSAFE | AS(osigsetmask_args),sigsetmask) }, /* 110 = old sigsetmask */
{ compat(SYF_MPSAFE | AS(osigsuspend_args),sigsuspend) }, /* 111 = old sigsuspend */
{ compat(SYF_MPSAFE | AS(osigstack_args),sigstack) }, /* 112 = old sigstack */
{ compat(SYF_MPSAFE | AS(orecvmsg_args),recvmsg) }, /* 113 = old recvmsg */
{ compat(SYF_MPSAFE | AS(osendmsg_args),sendmsg) }, /* 114 = old sendmsg */
{ 0, (sy_call_t *)nosys }, /* 115 = obsolete vtrace */
{ SYF_MPSAFE | AS(gettimeofday_args), (sy_call_t *)gettimeofday }, /* 116 = gettimeofday */
{ SYF_MPSAFE | AS(getrusage_args), (sy_call_t *)getrusage }, /* 117 = getrusage */
{ SYF_MPSAFE | AS(getsockopt_args), (sy_call_t *)getsockopt }, /* 118 = getsockopt */
{ 0, (sy_call_t *)nosys }, /* 119 = resuba */
{ SYF_MPSAFE | AS(readv_args), (sy_call_t *)readv }, /* 120 = readv */
{ SYF_MPSAFE | AS(writev_args), (sy_call_t *)writev }, /* 121 = writev */
{ SYF_MPSAFE | AS(settimeofday_args), (sy_call_t *)settimeofday }, /* 122 = settimeofday */
{ AS(fchown_args), (sy_call_t *)fchown }, /* 123 = fchown */
{ AS(fchmod_args), (sy_call_t *)fchmod }, /* 124 = fchmod */
{ compat(SYF_MPSAFE | AS(recvfrom_args),recvfrom) }, /* 125 = old recvfrom */
{ SYF_MPSAFE | AS(setreuid_args), (sy_call_t *)setreuid }, /* 126 = setreuid */
{ SYF_MPSAFE | AS(setregid_args), (sy_call_t *)setregid }, /* 127 = setregid */
{ AS(rename_args), (sy_call_t *)rename }, /* 128 = rename */
{ compat(AS(otruncate_args),truncate) }, /* 129 = old truncate */
{ compat(AS(oftruncate_args),ftruncate) }, /* 130 = old ftruncate */
{ SYF_MPSAFE | AS(flock_args), (sy_call_t *)flock }, /* 131 = flock */
{ AS(mkfifo_args), (sy_call_t *)mkfifo }, /* 132 = mkfifo */
{ SYF_MPSAFE | AS(sendto_args), (sy_call_t *)sendto }, /* 133 = sendto */
{ SYF_MPSAFE | AS(shutdown_args), (sy_call_t *)shutdown }, /* 134 = shutdown */
{ SYF_MPSAFE | AS(socketpair_args), (sy_call_t *)socketpair }, /* 135 = socketpair */
{ AS(mkdir_args), (sy_call_t *)mkdir }, /* 136 = mkdir */
{ AS(rmdir_args), (sy_call_t *)rmdir }, /* 137 = rmdir */
{ AS(utimes_args), (sy_call_t *)utimes }, /* 138 = utimes */
{ 0, (sy_call_t *)nosys }, /* 139 = obsolete 4.2 sigreturn */
{ SYF_MPSAFE | AS(adjtime_args), (sy_call_t *)adjtime }, /* 140 = adjtime */
{ compat(SYF_MPSAFE | AS(ogetpeername_args),getpeername) }, /* 141 = old getpeername */
{ compat(SYF_MPSAFE | 0,gethostid) }, /* 142 = old gethostid */
{ compat(SYF_MPSAFE | AS(osethostid_args),sethostid) }, /* 143 = old sethostid */
{ compat(SYF_MPSAFE | AS(ogetrlimit_args),getrlimit) }, /* 144 = old getrlimit */
{ compat(SYF_MPSAFE | AS(osetrlimit_args),setrlimit) }, /* 145 = old setrlimit */
{ compat(SYF_MPSAFE | AS(okillpg_args),killpg) }, /* 146 = old killpg */
{ SYF_MPSAFE | 0, (sy_call_t *)setsid }, /* 147 = setsid */
{ AS(quotactl_args), (sy_call_t *)quotactl }, /* 148 = quotactl */
{ compat(SYF_MPSAFE | 0,quota) }, /* 149 = old quota */
{ compat(SYF_MPSAFE | AS(getsockname_args),getsockname) }, /* 150 = old getsockname */
{ 0, (sy_call_t *)nosys }, /* 151 = sem_lock */
{ 0, (sy_call_t *)nosys }, /* 152 = sem_wakeup */
{ 0, (sy_call_t *)nosys }, /* 153 = asyncdaemon */
{ 0, (sy_call_t *)nosys }, /* 154 = nosys */
{ SYF_MPSAFE | AS(nfssvc_args), (sy_call_t *)nosys }, /* 155 = nfssvc */
{ compat(AS(ogetdirentries_args),getdirentries) }, /* 156 = old getdirentries */
{ AS(statfs_args), (sy_call_t *)statfs }, /* 157 = statfs */
{ AS(fstatfs_args), (sy_call_t *)fstatfs }, /* 158 = fstatfs */
{ 0, (sy_call_t *)nosys }, /* 159 = nosys */
{ 0, (sy_call_t *)nosys }, /* 160 = nosys */
{ AS(getfh_args), (sy_call_t *)getfh }, /* 161 = getfh */
{ SYF_MPSAFE | AS(getdomainname_args), (sy_call_t *)getdomainname }, /* 162 = getdomainname */
{ SYF_MPSAFE | AS(setdomainname_args), (sy_call_t *)setdomainname }, /* 163 = setdomainname */
{ SYF_MPSAFE | AS(uname_args), (sy_call_t *)uname }, /* 164 = uname */
{ AS(sysarch_args), (sy_call_t *)sysarch }, /* 165 = sysarch */
{ SYF_MPSAFE | AS(rtprio_args), (sy_call_t *)rtprio }, /* 166 = rtprio */
{ 0, (sy_call_t *)nosys }, /* 167 = nosys */
{ 0, (sy_call_t *)nosys }, /* 168 = nosys */
{ SYF_MPSAFE | AS(semsys_args), (sy_call_t *)lkmressys }, /* 169 = semsys */
{ SYF_MPSAFE | AS(msgsys_args), (sy_call_t *)lkmressys }, /* 170 = msgsys */
{ SYF_MPSAFE | AS(shmsys_args), (sy_call_t *)lkmressys }, /* 171 = shmsys */
{ 0, (sy_call_t *)nosys }, /* 172 = nosys */
{ SYF_MPSAFE | AS(pread_args), (sy_call_t *)pread }, /* 173 = pread */
{ SYF_MPSAFE | AS(pwrite_args), (sy_call_t *)pwrite }, /* 174 = pwrite */
{ 0, (sy_call_t *)nosys }, /* 175 = nosys */
{ SYF_MPSAFE | AS(ntp_adjtime_args), (sy_call_t *)ntp_adjtime }, /* 176 = ntp_adjtime */
{ 0, (sy_call_t *)nosys }, /* 177 = sfork */
{ 0, (sy_call_t *)nosys }, /* 178 = getdescriptor */
{ 0, (sy_call_t *)nosys }, /* 179 = setdescriptor */
{ 0, (sy_call_t *)nosys }, /* 180 = nosys */
{ SYF_MPSAFE | AS(setgid_args), (sy_call_t *)setgid }, /* 181 = setgid */
{ SYF_MPSAFE | AS(setegid_args), (sy_call_t *)setegid }, /* 182 = setegid */
{ SYF_MPSAFE | AS(seteuid_args), (sy_call_t *)seteuid }, /* 183 = seteuid */
{ 0, (sy_call_t *)nosys }, /* 184 = lfs_bmapv */
{ 0, (sy_call_t *)nosys }, /* 185 = lfs_markv */
{ 0, (sy_call_t *)nosys }, /* 186 = lfs_segclean */
{ 0, (sy_call_t *)nosys }, /* 187 = lfs_segwait */
{ AS(stat_args), (sy_call_t *)stat }, /* 188 = stat */
{ SYF_MPSAFE | AS(fstat_args), (sy_call_t *)fstat }, /* 189 = fstat */
{ AS(lstat_args), (sy_call_t *)lstat }, /* 190 = lstat */
{ AS(pathconf_args), (sy_call_t *)pathconf }, /* 191 = pathconf */
{ SYF_MPSAFE | AS(fpathconf_args), (sy_call_t *)fpathconf }, /* 192 = fpathconf */
{ 0, (sy_call_t *)nosys }, /* 193 = nosys */
{ SYF_MPSAFE | AS(__getrlimit_args), (sy_call_t *)getrlimit }, /* 194 = getrlimit */
{ SYF_MPSAFE | AS(__setrlimit_args), (sy_call_t *)setrlimit }, /* 195 = setrlimit */
{ AS(getdirentries_args), (sy_call_t *)getdirentries }, /* 196 = getdirentries */
{ SYF_MPSAFE | AS(mmap_args), (sy_call_t *)mmap }, /* 197 = mmap */
{ 0, (sy_call_t *)nosys }, /* 198 = __syscall */
{ AS(lseek_args), (sy_call_t *)lseek }, /* 199 = lseek */
{ AS(truncate_args), (sy_call_t *)truncate }, /* 200 = truncate */
{ AS(ftruncate_args), (sy_call_t *)ftruncate }, /* 201 = ftruncate */
{ SYF_MPSAFE | AS(sysctl_args), (sy_call_t *)__sysctl }, /* 202 = __sysctl */
{ SYF_MPSAFE | AS(mlock_args), (sy_call_t *)mlock }, /* 203 = mlock */
{ SYF_MPSAFE | AS(munlock_args), (sy_call_t *)munlock }, /* 204 = munlock */
{ AS(undelete_args), (sy_call_t *)undelete }, /* 205 = undelete */
{ AS(futimes_args), (sy_call_t *)futimes }, /* 206 = futimes */
{ SYF_MPSAFE | AS(getpgid_args), (sy_call_t *)getpgid }, /* 207 = getpgid */
{ 0, (sy_call_t *)nosys }, /* 208 = newreboot */
{ SYF_MPSAFE | AS(poll_args), (sy_call_t *)poll }, /* 209 = poll */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 210 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 211 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 212 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 213 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 214 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 215 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 216 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 217 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 218 = lkmnosys */
{ AS(nosys_args), (sy_call_t *)lkmnosys }, /* 219 = lkmnosys */
{ SYF_MPSAFE | AS(__semctl_args), (sy_call_t *)lkmressys }, /* 220 = __semctl */
{ SYF_MPSAFE | AS(semget_args), (sy_call_t *)lkmressys }, /* 221 = semget */
{ SYF_MPSAFE | AS(semop_args), (sy_call_t *)lkmressys }, /* 222 = semop */
{ 0, (sy_call_t *)nosys }, /* 223 = semconfig */
{ SYF_MPSAFE | AS(msgctl_args), (sy_call_t *)lkmressys }, /* 224 = msgctl */
{ SYF_MPSAFE | AS(msgget_args), (sy_call_t *)lkmressys }, /* 225 = msgget */
{ SYF_MPSAFE | AS(msgsnd_args), (sy_call_t *)lkmressys }, /* 226 = msgsnd */
{ SYF_MPSAFE | AS(msgrcv_args), (sy_call_t *)lkmressys }, /* 227 = msgrcv */
{ SYF_MPSAFE | AS(shmat_args), (sy_call_t *)lkmressys }, /* 228 = shmat */
{ SYF_MPSAFE | AS(shmctl_args), (sy_call_t *)lkmressys }, /* 229 = shmctl */
{ SYF_MPSAFE | AS(shmdt_args), (sy_call_t *)lkmressys }, /* 230 = shmdt */
{ SYF_MPSAFE | AS(shmget_args), (sy_call_t *)lkmressys }, /* 231 = shmget */
{ SYF_MPSAFE | AS(clock_gettime_args), (sy_call_t *)clock_gettime }, /* 232 = clock_gettime */
{ SYF_MPSAFE | AS(clock_settime_args), (sy_call_t *)clock_settime }, /* 233 = clock_settime */
{ SYF_MPSAFE | AS(clock_getres_args), (sy_call_t *)clock_getres }, /* 234 = clock_getres */
{ 0, (sy_call_t *)nosys }, /* 235 = timer_create */
{ 0, (sy_call_t *)nosys }, /* 236 = timer_delete */
{ 0, (sy_call_t *)nosys }, /* 237 = timer_settime */
{ 0, (sy_call_t *)nosys }, /* 238 = timer_gettime */
{ 0, (sy_call_t *)nosys }, /* 239 = timer_getoverrun */
{ SYF_MPSAFE | AS(nanosleep_args), (sy_call_t *)nanosleep }, /* 240 = nanosleep */
{ 0, (sy_call_t *)nosys }, /* 241 = nosys */
{ 0, (sy_call_t *)nosys }, /* 242 = nosys */
{ 0, (sy_call_t *)nosys }, /* 243 = nosys */
{ 0, (sy_call_t *)nosys }, /* 244 = nosys */
{ 0, (sy_call_t *)nosys }, /* 245 = nosys */
{ 0, (sy_call_t *)nosys }, /* 246 = nosys */
{ 0, (sy_call_t *)nosys }, /* 247 = nosys */
{ 0, (sy_call_t *)nosys }, /* 248 = nosys */
{ 0, (sy_call_t *)nosys }, /* 249 = nosys */
{ SYF_MPSAFE | AS(minherit_args), (sy_call_t *)minherit }, /* 250 = minherit */
{ SYF_MPSAFE | AS(rfork_args), (sy_call_t *)rfork }, /* 251 = rfork */
{ SYF_MPSAFE | AS(openbsd_poll_args), (sy_call_t *)openbsd_poll }, /* 252 = openbsd_poll */
{ 0, (sy_call_t *)issetugid }, /* 253 = issetugid */
{ AS(lchown_args), (sy_call_t *)lchown }, /* 254 = lchown */
{ 0, (sy_call_t *)nosys }, /* 255 = nosys */
{ 0, (sy_call_t *)nosys }, /* 256 = nosys */
{ 0, (sy_call_t *)nosys }, /* 257 = nosys */
{ 0, (sy_call_t *)nosys }, /* 258 = nosys */
{ 0, (sy_call_t *)nosys }, /* 259 = nosys */
{ 0, (sy_call_t *)nosys }, /* 260 = nosys */
{ 0, (sy_call_t *)nosys }, /* 261 = nosys */
{ 0, (sy_call_t *)nosys }, /* 262 = nosys */
{ 0, (sy_call_t *)nosys }, /* 263 = nosys */
{ 0, (sy_call_t *)nosys }, /* 264 = nosys */
{ 0, (sy_call_t *)nosys }, /* 265 = nosys */
{ 0, (sy_call_t *)nosys }, /* 266 = nosys */
{ 0, (sy_call_t *)nosys }, /* 267 = nosys */
{ 0, (sy_call_t *)nosys }, /* 268 = nosys */
{ 0, (sy_call_t *)nosys }, /* 269 = nosys */
{ 0, (sy_call_t *)nosys }, /* 270 = nosys */
{ 0, (sy_call_t *)nosys }, /* 271 = nosys */
{ AS(getdents_args), (sy_call_t *)getdents }, /* 272 = getdents */
{ 0, (sy_call_t *)nosys }, /* 273 = nosys */
{ AS(lchmod_args), (sy_call_t *)lchmod }, /* 274 = lchmod */
{ AS(lchown_args), (sy_call_t *)lchown }, /* 275 = netbsd_lchown */
{ AS(lutimes_args), (sy_call_t *)lutimes }, /* 276 = lutimes */
{ SYF_MPSAFE | AS(msync_args), (sy_call_t *)msync }, /* 277 = netbsd_msync */
{ AS(nstat_args), (sy_call_t *)nstat }, /* 278 = nstat */
{ SYF_MPSAFE | AS(nfstat_args), (sy_call_t *)nfstat }, /* 279 = nfstat */
{ AS(nlstat_args), (sy_call_t *)nlstat }, /* 280 = nlstat */
{ 0, (sy_call_t *)nosys }, /* 281 = nosys */
{ 0, (sy_call_t *)nosys }, /* 282 = nosys */
{ 0, (sy_call_t *)nosys }, /* 283 = nosys */
{ 0, (sy_call_t *)nosys }, /* 284 = nosys */
{ 0, (sy_call_t *)nosys }, /* 285 = nosys */
{ 0, (sy_call_t *)nosys }, /* 286 = nosys */
{ 0, (sy_call_t *)nosys }, /* 287 = nosys */
{ 0, (sy_call_t *)nosys }, /* 288 = nosys */
{ 0, (sy_call_t *)nosys }, /* 289 = nosys */
{ 0, (sy_call_t *)nosys }, /* 290 = nosys */
{ 0, (sy_call_t *)nosys }, /* 291 = nosys */
{ 0, (sy_call_t *)nosys }, /* 292 = nosys */
{ 0, (sy_call_t *)nosys }, /* 293 = nosys */
{ 0, (sy_call_t *)nosys }, /* 294 = nosys */
{ 0, (sy_call_t *)nosys }, /* 295 = nosys */
{ 0, (sy_call_t *)nosys }, /* 296 = nosys */
{ AS(fhstatfs_args), (sy_call_t *)fhstatfs }, /* 297 = fhstatfs */
{ AS(fhopen_args), (sy_call_t *)fhopen }, /* 298 = fhopen */
{ AS(fhstat_args), (sy_call_t *)fhstat }, /* 299 = fhstat */
{ SYF_MPSAFE | AS(modnext_args), (sy_call_t *)modnext }, /* 300 = modnext */
{ SYF_MPSAFE | AS(modstat_args), (sy_call_t *)modstat }, /* 301 = modstat */
{ SYF_MPSAFE | AS(modfnext_args), (sy_call_t *)modfnext }, /* 302 = modfnext */
{ SYF_MPSAFE | AS(modfind_args), (sy_call_t *)modfind }, /* 303 = modfind */
{ SYF_MPSAFE | AS(kldload_args), (sy_call_t *)kldload }, /* 304 = kldload */
{ SYF_MPSAFE | AS(kldunload_args), (sy_call_t *)kldunload }, /* 305 = kldunload */
{ SYF_MPSAFE | AS(kldfind_args), (sy_call_t *)kldfind }, /* 306 = kldfind */
{ SYF_MPSAFE | AS(kldnext_args), (sy_call_t *)kldnext }, /* 307 = kldnext */
{ SYF_MPSAFE | AS(kldstat_args), (sy_call_t *)kldstat }, /* 308 = kldstat */
{ SYF_MPSAFE | AS(kldfirstmod_args), (sy_call_t *)kldfirstmod }, /* 309 = kldfirstmod */
{ SYF_MPSAFE | AS(getsid_args), (sy_call_t *)getsid }, /* 310 = getsid */
{ SYF_MPSAFE | AS(setresuid_args), (sy_call_t *)setresuid }, /* 311 = setresuid */
{ SYF_MPSAFE | AS(setresgid_args), (sy_call_t *)setresgid }, /* 312 = setresgid */
{ 0, (sy_call_t *)nosys }, /* 313 = obsolete signanosleep */
{ AS(aio_return_args), (sy_call_t *)lkmressys }, /* 314 = aio_return */
{ AS(aio_suspend_args), (sy_call_t *)lkmressys }, /* 315 = aio_suspend */
{ AS(aio_cancel_args), (sy_call_t *)lkmressys }, /* 316 = aio_cancel */
{ AS(aio_error_args), (sy_call_t *)lkmressys }, /* 317 = aio_error */
{ AS(aio_read_args), (sy_call_t *)lkmressys }, /* 318 = aio_read */
{ AS(aio_write_args), (sy_call_t *)lkmressys }, /* 319 = aio_write */
{ AS(lio_listio_args), (sy_call_t *)lkmressys }, /* 320 = lio_listio */
{ SYF_MPSAFE | 0, (sy_call_t *)yield }, /* 321 = yield */
{ 0, (sy_call_t *)nosys }, /* 322 = obsolete thr_sleep */
{ 0, (sy_call_t *)nosys }, /* 323 = obsolete thr_wakeup */
{ SYF_MPSAFE | AS(mlockall_args), (sy_call_t *)mlockall }, /* 324 = mlockall */
{ SYF_MPSAFE | 0, (sy_call_t *)munlockall }, /* 325 = munlockall */
{ AS(__getcwd_args), (sy_call_t *)__getcwd }, /* 326 = __getcwd */
{ SYF_MPSAFE | AS(sched_setparam_args), (sy_call_t *)sched_setparam }, /* 327 = sched_setparam */
{ SYF_MPSAFE | AS(sched_getparam_args), (sy_call_t *)sched_getparam }, /* 328 = sched_getparam */
{ SYF_MPSAFE | AS(sched_setscheduler_args), (sy_call_t *)sched_setscheduler }, /* 329 = sched_setscheduler */
{ SYF_MPSAFE | AS(sched_getscheduler_args), (sy_call_t *)sched_getscheduler }, /* 330 = sched_getscheduler */
{ SYF_MPSAFE | 0, (sy_call_t *)sched_yield }, /* 331 = sched_yield */
{ SYF_MPSAFE | AS(sched_get_priority_max_args), (sy_call_t *)sched_get_priority_max }, /* 332 = sched_get_priority_max */
{ SYF_MPSAFE | AS(sched_get_priority_min_args), (sy_call_t *)sched_get_priority_min }, /* 333 = sched_get_priority_min */
{ SYF_MPSAFE | AS(sched_rr_get_interval_args), (sy_call_t *)sched_rr_get_interval }, /* 334 = sched_rr_get_interval */
{ AS(utrace_args), (sy_call_t *)utrace }, /* 335 = utrace */
{ SYF_MPSAFE | AS(sendfile_args), (sy_call_t *)sendfile }, /* 336 = sendfile */
{ AS(kldsym_args), (sy_call_t *)kldsym }, /* 337 = kldsym */
{ SYF_MPSAFE | AS(jail_args), (sy_call_t *)jail }, /* 338 = jail */
{ 0, (sy_call_t *)nosys }, /* 339 = pioctl */
{ SYF_MPSAFE | AS(sigprocmask_args), (sy_call_t *)sigprocmask }, /* 340 = sigprocmask */
{ SYF_MPSAFE | AS(sigsuspend_args), (sy_call_t *)sigsuspend }, /* 341 = sigsuspend */
{ SYF_MPSAFE | AS(sigaction_args), (sy_call_t *)sigaction }, /* 342 = sigaction */
{ SYF_MPSAFE | AS(sigpending_args), (sy_call_t *)sigpending }, /* 343 = sigpending */
{ AS(sigreturn_args), (sy_call_t *)sigreturn }, /* 344 = sigreturn */
{ 0, (sy_call_t *)nosys }, /* 345 = sigtimedwait */
{ 0, (sy_call_t *)nosys }, /* 346 = sigwaitinfo */
{ SYF_MPSAFE | AS(__acl_get_file_args), (sy_call_t *)__acl_get_file }, /* 347 = __acl_get_file */
{ SYF_MPSAFE | AS(__acl_set_file_args), (sy_call_t *)__acl_set_file }, /* 348 = __acl_set_file */
{ SYF_MPSAFE | AS(__acl_get_fd_args), (sy_call_t *)__acl_get_fd }, /* 349 = __acl_get_fd */
{ SYF_MPSAFE | AS(__acl_set_fd_args), (sy_call_t *)__acl_set_fd }, /* 350 = __acl_set_fd */
{ SYF_MPSAFE | AS(__acl_delete_file_args), (sy_call_t *)__acl_delete_file }, /* 351 = __acl_delete_file */
{ SYF_MPSAFE | AS(__acl_delete_fd_args), (sy_call_t *)__acl_delete_fd }, /* 352 = __acl_delete_fd */
{ SYF_MPSAFE | AS(__acl_aclcheck_file_args), (sy_call_t *)__acl_aclcheck_file }, /* 353 = __acl_aclcheck_file */
{ SYF_MPSAFE | AS(__acl_aclcheck_fd_args), (sy_call_t *)__acl_aclcheck_fd }, /* 354 = __acl_aclcheck_fd */
{ AS(extattrctl_args), (sy_call_t *)extattrctl }, /* 355 = extattrctl */
{ AS(extattr_set_file_args), (sy_call_t *)extattr_set_file }, /* 356 = extattr_set_file */
{ AS(extattr_get_file_args), (sy_call_t *)extattr_get_file }, /* 357 = extattr_get_file */
{ AS(extattr_delete_file_args), (sy_call_t *)extattr_delete_file }, /* 358 = extattr_delete_file */
{ AS(aio_waitcomplete_args), (sy_call_t *)lkmressys }, /* 359 = aio_waitcomplete */
{ SYF_MPSAFE | AS(getresuid_args), (sy_call_t *)getresuid }, /* 360 = getresuid */
{ SYF_MPSAFE | AS(getresgid_args), (sy_call_t *)getresgid }, /* 361 = getresgid */
{ SYF_MPSAFE | 0, (sy_call_t *)kqueue }, /* 362 = kqueue */
{ SYF_MPSAFE | AS(kevent_args), (sy_call_t *)kevent }, /* 363 = kevent */
{ AS(__cap_get_proc_args), (sy_call_t *)__cap_get_proc }, /* 364 = __cap_get_proc */
{ AS(__cap_set_proc_args), (sy_call_t *)__cap_set_proc }, /* 365 = __cap_set_proc */
{ AS(__cap_get_fd_args), (sy_call_t *)__cap_get_fd }, /* 366 = __cap_get_fd */
{ AS(__cap_get_file_args), (sy_call_t *)__cap_get_file }, /* 367 = __cap_get_file */
{ AS(__cap_set_fd_args), (sy_call_t *)__cap_set_fd }, /* 368 = __cap_set_fd */
{ AS(__cap_set_file_args), (sy_call_t *)__cap_set_file }, /* 369 = __cap_set_file */
{ AS(nosys_args), (sy_call_t *)lkmressys }, /* 370 = lkmressys */
{ AS(extattr_set_fd_args), (sy_call_t *)extattr_set_fd }, /* 371 = extattr_set_fd */
{ AS(extattr_get_fd_args), (sy_call_t *)extattr_get_fd }, /* 372 = extattr_get_fd */
{ AS(extattr_delete_fd_args), (sy_call_t *)extattr_delete_fd }, /* 373 = extattr_delete_fd */
{ SYF_MPSAFE | AS(__setugid_args), (sy_call_t *)__setugid }, /* 374 = __setugid */
{ AS(nfsclnt_args), (sy_call_t *)nosys }, /* 375 = nfsclnt */
{ AS(eaccess_args), (sy_call_t *)eaccess }, /* 376 = eaccess */
{ 0, (sy_call_t *)nosys }, /* 377 = afs_syscall */
{ AS(nmount_args), (sy_call_t *)nmount }, /* 378 = nmount */
{ 0, (sy_call_t *)kse_exit }, /* 379 = kse_exit */
{ 0, (sy_call_t *)kse_wakeup }, /* 380 = kse_wakeup */
{ AS(kse_new_args), (sy_call_t *)kse_new }, /* 381 = kse_new */
{ AS(thread_wakeup_args), (sy_call_t *)thread_wakeup }, /* 382 = thread_wakeup */
{ 0, (sy_call_t *)kse_yield }, /* 383 = kse_yield */
{ 0, (sy_call_t *)nosys }, /* 384 = __mac_get_proc */
{ 0, (sy_call_t *)nosys }, /* 385 = __mac_set_proc */
{ 0, (sy_call_t *)nosys }, /* 386 = __mac_get_fd */
{ 0, (sy_call_t *)nosys }, /* 387 = __mac_get_file */
{ 0, (sy_call_t *)nosys }, /* 388 = __mac_set_fd */
{ 0, (sy_call_t *)nosys }, /* 389 = __mac_set_file */
};

1445
sys/ia64/ia32/imgact_ia32.c Normal file

File diff suppressed because it is too large Load Diff

112
sys/ia64/ia32/imgact_ia32.h Normal file
View File

@ -0,0 +1,112 @@
/*-
* Copyright (c) 1995-1996 Søren Schmidt
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer
* in this position and unchanged.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software withough specific prior written permission
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $FreeBSD$
*/
#ifndef _IA64_IA32_IMGACT_ELF_H_
#define _IA64_IA32_IMGACT_ELF_H_
#include <i386/include/elf.h>
#ifdef _KERNEL
#define AUXARGS_ENTRY(pos, id, val) {suword(pos++, id); suword(pos++, val);}
#if ELF_TARG_CLASS == ELFCLASS32
/*
* Structure used to pass infomation from the loader to the
* stack fixup routine.
*/
typedef struct {
Elf32_Sword execfd;
Elf32_Word phdr;
Elf32_Word phent;
Elf32_Word phnum;
Elf32_Word pagesz;
Elf32_Word base;
Elf32_Word flags;
Elf32_Word entry;
Elf32_Word trace;
} Elf32_Auxargs;
typedef struct {
int brand;
const char *compat_3_brand; /* pre Binutils 2.10 method (FBSD 3) */
const char *emul_path;
const char *interp_path;
struct sysentvec *sysvec;
} Elf32_Brandinfo;
#define MAX_BRANDS 8
int elf_brand_inuse(Elf32_Brandinfo *entry);
int elf_insert_brand_entry(Elf32_Brandinfo *entry);
int elf_remove_brand_entry(Elf32_Brandinfo *entry);
#else /* !(ELF_TARG_CLASS == ELFCLASS32) */
/*
* Structure used to pass infomation from the loader to the
* stack fixup routine.
*/
typedef struct {
Elf64_Sword execfd;
Elf64_Addr phdr;
Elf64_Word phent;
Elf64_Word phnum;
Elf64_Word pagesz;
Elf64_Addr base;
Elf64_Word flags;
Elf64_Addr entry;
Elf64_Word trace;
} Elf64_Auxargs;
typedef struct {
int brand;
const char *compat_3_brand; /* pre Binutils 2.10 method (FBSD 3) */
const char *emul_path;
const char *interp_path;
struct sysentvec *sysvec;
} Elf64_Brandinfo;
#define MAX_BRANDS 8
int elf_brand_inuse(Elf64_Brandinfo *entry);
int elf_insert_brand_entry(Elf64_Brandinfo *entry);
int elf_remove_brand_entry(Elf64_Brandinfo *entry);
#endif /* ELF_TARG_CLASS == ELFCLASS32 */
struct thread;
int elf_coredump(struct thread *, struct vnode *, off_t);
#endif /* _KERNEL */
#endif /* !_IA64_IA32_IMGACT_ELF_H_ */

View File

@ -0,0 +1,12 @@
# $FreeBSD$
sysnames="/dev/null"
sysproto="ia32_proto.h"
sysproto_h=_IA32_SYSPROTO_H_
syshdr="ia32_syscall.h"
syssw="ia32_sysent.c"
sysmk="/dev/null"
syshide="/dev/null"
syscallprefix="IA32_SYS_"
switchname="ia32_sysent"
namesname="ia32_syscallnames"
sysvec="\n"

View File

@ -0,0 +1,562 @@
$FreeBSD$
; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94
; from: src/sys/kern/syscalls.master 1.107
;
; System call name/number master file.
; Processed to created init_sysent.c, syscalls.c and syscall.h.
; Columns: number [M]type nargs namespc name alt{name,tag,rtyp}/comments
; number system call number, must be in order
; type one of [M]STD, [M]OBSOL, [M]UNIMPL, [M]COMPAT, [M]CPT_NOA,
; [M]LIBCOMPAT, [M]NODEF, [M]NOARGS, [M]NOPROTO, [M]NOIMPL,
; [M]NOSTD
; namespc one of POSIX, BSD, NOHIDE
; name psuedo-prototype of syscall routine
; If one of the following alts is different, then all appear:
; altname name of system call if different
; alttag name of args struct tag if different from [o]`name'"_args"
; altrtyp return type if not int (bogus - syscalls always return int)
; for UNIMPL/OBSOL, name continues with comments
; types:
; [M] e.g. like MSTD -- means the system call is MP-safe. If no
; M prefix is used, the syscall wrapper will obtain the Giant
; lock for the syscall.
; STD always included
; COMPAT included on COMPAT #ifdef
; LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
; OBSOL obsolete, not included in system, only specifies name
; UNIMPL not implemented, placeholder only
; NOSTD implemented but as a lkm that can be statically
; compiled in sysent entry will be filled with lkmsys
; so the SYSCALL_MODULE macro works
; #ifdef's, etc. may be included, and are copied to the output files.
#include <sys/param.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>
; Reserved/unimplemented system calls in the range 0-150 inclusive
; are reserved for use in future Berkeley releases.
; Additional system calls implemented in vendor and other
; redistributions should be placed in the reserved range at the end
; of the current calls.
0 STD NOHIDE { int nosys(void); } syscall nosys_args int
1 MSTD NOHIDE { void sys_exit(int rval); } exit sys_exit_args void
2 MSTD POSIX { int fork(void); }
3 MSTD POSIX { ssize_t read(int fd, void *buf, size_t nbyte); }
4 MSTD POSIX { ssize_t write(int fd, const void *buf, size_t nbyte); }
5 STD POSIX { int open(char *path, int flags, int mode); }
; XXX should be { int open(const char *path, int flags, ...); }
; but we're not ready for `const' or varargs.
; XXX man page says `mode_t mode'.
6 MSTD POSIX { int close(int fd); }
7 MSTD BSD { int wait4(int pid, int *status, int options, \
struct rusage *rusage); } wait4 wait_args int
8 COMPAT BSD { int creat(char *path, int mode); }
9 STD POSIX { int link(char *path, char *link); }
10 STD POSIX { int unlink(char *path); }
11 OBSOL NOHIDE execv
12 STD POSIX { int chdir(char *path); }
13 STD BSD { int fchdir(int fd); }
14 STD POSIX { int mknod(char *path, int mode, int dev); }
15 STD POSIX { int chmod(char *path, int mode); }
16 STD POSIX { int chown(char *path, int uid, int gid); }
17 MSTD BSD { int obreak(char *nsize); } break obreak_args int
18 STD BSD { int getfsstat(struct statfs *buf, long bufsize, \
int flags); }
19 COMPAT POSIX { long lseek(int fd, long offset, int whence); }
20 MSTD POSIX { pid_t getpid(void); }
21 STD BSD { int mount(char *type, char *path, int flags, \
caddr_t data); }
; XXX `path' should have type `const char *' but we're not ready for that.
22 STD BSD { int unmount(char *path, int flags); }
23 MSTD POSIX { int setuid(uid_t uid); }
24 MSTD POSIX { uid_t getuid(void); }
25 MSTD POSIX { uid_t geteuid(void); }
26 STD BSD { int ptrace(int req, pid_t pid, caddr_t addr, \
int data); }
27 MSTD BSD { int recvmsg(int s, struct msghdr *msg, int flags); }
28 MSTD BSD { int sendmsg(int s, caddr_t msg, int flags); }
29 MSTD BSD { int recvfrom(int s, caddr_t buf, size_t len, \
int flags, caddr_t from, int *fromlenaddr); }
30 MSTD BSD { int accept(int s, caddr_t name, int *anamelen); }
31 MSTD BSD { int getpeername(int fdes, caddr_t asa, int *alen); }
32 MSTD BSD { int getsockname(int fdes, caddr_t asa, int *alen); }
33 STD POSIX { int access(char *path, int flags); }
34 STD BSD { int chflags(char *path, int flags); }
35 STD BSD { int fchflags(int fd, int flags); }
36 STD BSD { int sync(void); }
37 MSTD POSIX { int kill(int pid, int signum); }
38 COMPAT POSIX { int stat(char *path, struct ostat *ub); }
39 MSTD POSIX { pid_t getppid(void); }
40 COMPAT POSIX { int lstat(char *path, struct ostat *ub); }
41 STD POSIX { int dup(u_int fd); }
42 STD POSIX { int pipe(void); }
43 MSTD POSIX { gid_t getegid(void); }
44 MSTD BSD { int profil(caddr_t samples, size_t size, \
size_t offset, u_int scale); }
45 STD BSD { int ktrace(const char *fname, int ops, int facs, \
int pid); }
46 MCOMPAT POSIX { int sigaction(int signum, struct osigaction *nsa, \
struct osigaction *osa); }
47 MSTD POSIX { gid_t getgid(void); }
48 MCOMPAT POSIX { int sigprocmask(int how, osigset_t mask); }
; XXX note nonstandard (bogus) calling convention - the libc stub passes
; us the mask, not a pointer to it, and we return the old mask as the
; (int) return value.
49 MSTD BSD { int getlogin(char *namebuf, u_int namelen); }
50 MSTD BSD { int setlogin(char *namebuf); }
51 MSTD BSD { int acct(char *path); }
52 MCOMPAT POSIX { int sigpending(void); }
53 MSTD BSD { int sigaltstack(stack_t *ss, stack_t *oss); }
54 MSTD POSIX { int ioctl(int fd, u_long com, caddr_t data); }
55 MSTD BSD { int reboot(int opt); }
56 STD POSIX { int revoke(char *path); }
57 STD POSIX { int symlink(char *path, char *link); }
58 STD POSIX { int readlink(char *path, char *buf, int count); }
59 MSTD POSIX { int execve(char *fname, char **argv, char **envv); }
60 MSTD POSIX { int umask(int newmask); } umask umask_args int
61 STD BSD { int chroot(char *path); }
62 MCOMPAT POSIX { int fstat(int fd, struct ostat *sb); }
63 MCOMPAT BSD { int getkerninfo(int op, char *where, size_t *size, \
int arg); } getkerninfo getkerninfo_args int
64 MCOMPAT BSD { int getpagesize(void); } \
getpagesize getpagesize_args int
65 STD BSD { int msync(void *addr, size_t len, int flags); }
66 MSTD BSD { int vfork(void); }
67 OBSOL NOHIDE vread
68 OBSOL NOHIDE vwrite
69 MSTD BSD { int sbrk(int incr); }
70 MSTD BSD { int sstk(int incr); }
71 MCOMPAT BSD { int mmap(void *addr, int len, int prot, \
int flags, int fd, long pos); }
72 MSTD BSD { int ovadvise(int anom); } vadvise ovadvise_args int
73 MSTD BSD { int munmap(void *addr, size_t len); }
74 MSTD BSD { int mprotect(const void *addr, size_t len, int prot); }
75 MSTD BSD { int madvise(void *addr, size_t len, int behav); }
76 OBSOL NOHIDE vhangup
77 OBSOL NOHIDE vlimit
78 MSTD BSD { int mincore(const void *addr, size_t len, \
char *vec); }
79 MSTD POSIX { int getgroups(u_int gidsetsize, gid_t *gidset); }
80 MSTD POSIX { int setgroups(u_int gidsetsize, gid_t *gidset); }
81 MSTD POSIX { int getpgrp(void); }
82 MSTD POSIX { int setpgid(int pid, int pgid); }
83 MSTD BSD { int setitimer(u_int which, struct itimerval *itv, \
struct itimerval *oitv); }
84 MCOMPAT BSD { int wait(void); }
85 MSTD BSD { int swapon(char *name); }
86 MSTD BSD { int getitimer(u_int which, struct itimerval *itv); }
87 MCOMPAT BSD { int gethostname(char *hostname, u_int len); } \
gethostname gethostname_args int
88 MCOMPAT BSD { int sethostname(char *hostname, u_int len); } \
sethostname sethostname_args int
89 MSTD BSD { int getdtablesize(void); }
90 MSTD POSIX { int dup2(u_int from, u_int to); }
91 UNIMPL BSD getdopt
92 MSTD POSIX { int fcntl(int fd, int cmd, long arg); }
; XXX should be { int fcntl(int fd, int cmd, ...); }
; but we're not ready for varargs.
; XXX man page says `int arg' too.
93 MSTD BSD { int select(int nd, fd_set *in, fd_set *ou, \
fd_set *ex, struct timeval *tv); }
94 UNIMPL BSD setdopt
95 STD POSIX { int fsync(int fd); }
96 MSTD BSD { int setpriority(int which, int who, int prio); }
97 MSTD BSD { int socket(int domain, int type, int protocol); }
98 MSTD BSD { int connect(int s, caddr_t name, int namelen); }
99 MCPT_NOA BSD { int accept(int s, caddr_t name, int *anamelen); } \
accept accept_args int
100 MSTD BSD { int getpriority(int which, int who); }
101 MCOMPAT BSD { int send(int s, caddr_t buf, int len, int flags); }
102 MCOMPAT BSD { int recv(int s, caddr_t buf, int len, int flags); }
103 STD BSD { int osigreturn(struct osigcontext *sigcntxp); }
104 MSTD BSD { int bind(int s, caddr_t name, int namelen); }
105 MSTD BSD { int setsockopt(int s, int level, int name, \
caddr_t val, int valsize); }
106 MSTD BSD { int listen(int s, int backlog); }
107 OBSOL NOHIDE vtimes
108 MCOMPAT BSD { int sigvec(int signum, struct sigvec *nsv, \
struct sigvec *osv); }
109 MCOMPAT BSD { int sigblock(int mask); }
110 MCOMPAT BSD { int sigsetmask(int mask); }
111 MCOMPAT POSIX { int sigsuspend(osigset_t mask); }
; XXX note nonstandard (bogus) calling convention - the libc stub passes
; us the mask, not a pointer to it.
112 MCOMPAT BSD { int sigstack(struct sigstack *nss, \
struct sigstack *oss); }
113 MCOMPAT BSD { int recvmsg(int s, struct omsghdr *msg, int flags); }
114 MCOMPAT BSD { int sendmsg(int s, caddr_t msg, int flags); }
115 OBSOL NOHIDE vtrace
116 MSTD BSD { int gettimeofday(struct timeval *tp, \
struct timezone *tzp); }
117 MSTD BSD { int getrusage(int who, struct rusage *rusage); }
118 MSTD BSD { int getsockopt(int s, int level, int name, \
caddr_t val, int *avalsize); }
119 UNIMPL NOHIDE resuba (BSD/OS 2.x)
120 MSTD BSD { int readv(int fd, struct iovec *iovp, u_int iovcnt); }
121 MSTD BSD { int writev(int fd, struct iovec *iovp, \
u_int iovcnt); }
122 MSTD BSD { int settimeofday(struct timeval *tv, \
struct timezone *tzp); }
123 STD BSD { int fchown(int fd, int uid, int gid); }
124 STD BSD { int fchmod(int fd, int mode); }
125 MCPT_NOA BSD { int recvfrom(int s, caddr_t buf, size_t len, \
int flags, caddr_t from, int *fromlenaddr); } \
recvfrom recvfrom_args int
126 MSTD BSD { int setreuid(int ruid, int euid); }
127 MSTD BSD { int setregid(int rgid, int egid); }
128 STD POSIX { int rename(char *from, char *to); }
129 COMPAT BSD { int truncate(char *path, long length); }
130 COMPAT BSD { int ftruncate(int fd, long length); }
131 MSTD BSD { int flock(int fd, int how); }
132 STD POSIX { int mkfifo(char *path, int mode); }
133 MSTD BSD { int sendto(int s, caddr_t buf, size_t len, \
int flags, caddr_t to, int tolen); }
134 MSTD BSD { int shutdown(int s, int how); }
135 MSTD BSD { int socketpair(int domain, int type, int protocol, \
int *rsv); }
136 STD POSIX { int mkdir(char *path, int mode); }
137 STD POSIX { int rmdir(char *path); }
138 STD BSD { int utimes(char *path, struct timeval *tptr); }
139 OBSOL NOHIDE 4.2 sigreturn
140 MSTD BSD { int adjtime(struct timeval *delta, \
struct timeval *olddelta); }
141 MCOMPAT BSD { int getpeername(int fdes, caddr_t asa, int *alen); }
142 MCOMPAT BSD { long gethostid(void); }
143 MCOMPAT BSD { int sethostid(long hostid); }
144 MCOMPAT BSD { int getrlimit(u_int which, struct orlimit *rlp); }
145 MCOMPAT BSD { int setrlimit(u_int which, struct orlimit *rlp); }
146 MCOMPAT BSD { int killpg(int pgid, int signum); }
147 MSTD POSIX { int setsid(void); }
148 STD BSD { int quotactl(char *path, int cmd, int uid, \
caddr_t arg); }
149 MCOMPAT BSD { int quota(void); }
150 MCPT_NOA BSD { int getsockname(int fdec, caddr_t asa, int *alen); }\
getsockname getsockname_args int
; Syscalls 151-180 inclusive are reserved for vendor-specific
; system calls. (This includes various calls added for compatibity
; with other Unix variants.)
; Some of these calls are now supported by BSD...
151 UNIMPL NOHIDE sem_lock (BSD/OS 2.x)
152 UNIMPL NOHIDE sem_wakeup (BSD/OS 2.x)
153 UNIMPL NOHIDE asyncdaemon (BSD/OS 2.x)
154 UNIMPL NOHIDE nosys
; 155 is initialized by the NFS code, if present.
155 MNOIMPL BSD { int nfssvc(int flag, caddr_t argp); }
156 COMPAT BSD { int getdirentries(int fd, char *buf, u_int count, \
long *basep); }
157 STD BSD { int statfs(char *path, struct statfs *buf); }
158 STD BSD { int fstatfs(int fd, struct statfs *buf); }
159 UNIMPL NOHIDE nosys
160 UNIMPL NOHIDE nosys
161 STD BSD { int getfh(char *fname, struct fhandle *fhp); }
162 MSTD BSD { int getdomainname(char *domainname, int len); }
163 MSTD BSD { int setdomainname(char *domainname, int len); }
164 MSTD BSD { int uname(struct utsname *name); }
165 STD BSD { int sysarch(int op, char *parms); }
166 MSTD BSD { int rtprio(int function, pid_t pid, \
struct rtprio *rtp); }
167 UNIMPL NOHIDE nosys
168 UNIMPL NOHIDE nosys
; 169 is initialized by the SYSVSEM code if present or loaded
169 MNOSTD BSD { int semsys(int which, int a2, int a3, int a4, \
int a5); }
; 169 is initialized by the SYSVMSG code if present or loaded
; XXX should be { int semsys(int which, ...); }
170 MNOSTD BSD { int msgsys(int which, int a2, int a3, int a4, \
int a5, int a6); }
; 169 is initialized by the SYSVSHM code if present or loaded
; XXX should be { int msgsys(int which, ...); }
171 MNOSTD BSD { int shmsys(int which, int a2, int a3, int a4); }
; XXX should be { int shmsys(int which, ...); }
172 UNIMPL NOHIDE nosys
173 MSTD POSIX { ssize_t pread(int fd, void *buf, size_t nbyte, \
int pad, off_t offset); }
174 MSTD POSIX { ssize_t pwrite(int fd, const void *buf, \
size_t nbyte, int pad, off_t offset); }
175 UNIMPL NOHIDE nosys
176 MSTD BSD { int ntp_adjtime(struct timex *tp); }
177 UNIMPL NOHIDE sfork (BSD/OS 2.x)
178 UNIMPL NOHIDE getdescriptor (BSD/OS 2.x)
179 UNIMPL NOHIDE setdescriptor (BSD/OS 2.x)
180 UNIMPL NOHIDE nosys
; Syscalls 181-199 are used by/reserved for BSD
181 MSTD POSIX { int setgid(gid_t gid); }
182 MSTD BSD { int setegid(gid_t egid); }
183 MSTD BSD { int seteuid(uid_t euid); }
184 UNIMPL BSD lfs_bmapv
185 UNIMPL BSD lfs_markv
186 UNIMPL BSD lfs_segclean
187 UNIMPL BSD lfs_segwait
188 STD POSIX { int stat(char *path, struct stat *ub); }
189 MSTD POSIX { int fstat(int fd, struct stat *sb); }
190 STD POSIX { int lstat(char *path, struct stat *ub); }
191 STD POSIX { int pathconf(char *path, int name); }
192 MSTD POSIX { int fpathconf(int fd, int name); }
193 UNIMPL NOHIDE nosys
194 MSTD BSD { int getrlimit(u_int which, \
struct rlimit *rlp); } \
getrlimit __getrlimit_args int
195 MSTD BSD { int setrlimit(u_int which, \
struct rlimit *rlp); } \
setrlimit __setrlimit_args int
196 STD BSD { int getdirentries(int fd, char *buf, u_int count, \
long *basep); }
197 MSTD BSD { caddr_t mmap(caddr_t addr, size_t len, int prot, \
int flags, int fd, int pad, off_t pos); }
198 STD NOHIDE { int nosys(void); } __syscall __syscall_args int
199 STD POSIX { off_t lseek(int fd, int pad, off_t offset, \
int whence); }
200 STD BSD { int truncate(char *path, int pad, off_t length); }
201 STD BSD { int ftruncate(int fd, int pad, off_t length); }
202 MSTD BSD { int __sysctl(int *name, u_int namelen, void *old, \
size_t *oldlenp, void *new, size_t newlen); } \
__sysctl sysctl_args int
; properly, __sysctl should be a NOHIDE, but making an exception
; here allows to avoid one in libc/sys/Makefile.inc.
203 MSTD BSD { int mlock(const void *addr, size_t len); }
204 MSTD BSD { int munlock(const void *addr, size_t len); }
205 STD BSD { int undelete(char *path); }
206 STD BSD { int futimes(int fd, struct timeval *tptr); }
207 MSTD BSD { int getpgid(pid_t pid); }
208 UNIMPL NOHIDE newreboot (NetBSD)
209 MSTD BSD { int poll(struct pollfd *fds, u_int nfds, \
int timeout); }
;
; The following are reserved for loadable syscalls
;
210 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
211 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
212 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
213 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
214 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
215 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
216 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
217 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
218 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
219 NODEF NOHIDE lkmnosys lkmnosys nosys_args int
;
; The following were introduced with NetBSD/4.4Lite-2
; They are initialized by thier respective modules/sysinits
220 MNOSTD BSD { int __semctl(int semid, int semnum, int cmd, \
union semun *arg); }
221 MNOSTD BSD { int semget(key_t key, int nsems, int semflg); }
222 MNOSTD BSD { int semop(int semid, struct sembuf *sops, \
u_int nsops); }
223 UNIMPL NOHIDE semconfig
224 MNOSTD BSD { int msgctl(int msqid, int cmd, \
struct msqid_ds *buf); }
225 MNOSTD BSD { int msgget(key_t key, int msgflg); }
226 MNOSTD BSD { int msgsnd(int msqid, void *msgp, size_t msgsz, \
int msgflg); }
227 MNOSTD BSD { int msgrcv(int msqid, void *msgp, size_t msgsz, \
long msgtyp, int msgflg); }
228 MNOSTD BSD { int shmat(int shmid, void *shmaddr, int shmflg); }
229 MNOSTD BSD { int shmctl(int shmid, int cmd, \
struct shmid_ds *buf); }
230 MNOSTD BSD { int shmdt(void *shmaddr); }
231 MNOSTD BSD { int shmget(key_t key, int size, int shmflg); }
;
232 MSTD POSIX { int clock_gettime(clockid_t clock_id, \
struct timespec *tp); }
233 MSTD POSIX { int clock_settime(clockid_t clock_id, \
const struct timespec *tp); }
234 MSTD POSIX { int clock_getres(clockid_t clock_id, \
struct timespec *tp); }
235 UNIMPL NOHIDE timer_create
236 UNIMPL NOHIDE timer_delete
237 UNIMPL NOHIDE timer_settime
238 UNIMPL NOHIDE timer_gettime
239 UNIMPL NOHIDE timer_getoverrun
240 MSTD POSIX { int nanosleep(const struct timespec *rqtp, \
struct timespec *rmtp); }
241 UNIMPL NOHIDE nosys
242 UNIMPL NOHIDE nosys
243 UNIMPL NOHIDE nosys
244 UNIMPL NOHIDE nosys
245 UNIMPL NOHIDE nosys
246 UNIMPL NOHIDE nosys
247 UNIMPL NOHIDE nosys
248 UNIMPL NOHIDE nosys
249 UNIMPL NOHIDE nosys
; syscall numbers initially used in OpenBSD
250 MSTD BSD { int minherit(void *addr, size_t len, int inherit); }
251 MSTD BSD { int rfork(int flags); }
252 MSTD BSD { int openbsd_poll(struct pollfd *fds, u_int nfds, \
int timeout); }
253 STD BSD { int issetugid(void); }
254 STD BSD { int lchown(char *path, int uid, int gid); }
255 UNIMPL NOHIDE nosys
256 UNIMPL NOHIDE nosys
257 UNIMPL NOHIDE nosys
258 UNIMPL NOHIDE nosys
259 UNIMPL NOHIDE nosys
260 UNIMPL NOHIDE nosys
261 UNIMPL NOHIDE nosys
262 UNIMPL NOHIDE nosys
263 UNIMPL NOHIDE nosys
264 UNIMPL NOHIDE nosys
265 UNIMPL NOHIDE nosys
266 UNIMPL NOHIDE nosys
267 UNIMPL NOHIDE nosys
268 UNIMPL NOHIDE nosys
269 UNIMPL NOHIDE nosys
270 UNIMPL NOHIDE nosys
271 UNIMPL NOHIDE nosys
272 STD BSD { int getdents(int fd, char *buf, size_t count); }
273 UNIMPL NOHIDE nosys
274 STD BSD { int lchmod(char *path, mode_t mode); }
275 NOPROTO BSD { int lchown(char *path, uid_t uid, gid_t gid); } netbsd_lchown lchown_args int
276 STD BSD { int lutimes(char *path, struct timeval *tptr); }
277 MNOPROTO BSD { int msync(void *addr, size_t len, int flags); } netbsd_msync msync_args int
278 STD BSD { int nstat(char *path, struct nstat *ub); }
279 MSTD BSD { int nfstat(int fd, struct nstat *sb); }
280 STD BSD { int nlstat(char *path, struct nstat *ub); }
281 UNIMPL NOHIDE nosys
282 UNIMPL NOHIDE nosys
283 UNIMPL NOHIDE nosys
284 UNIMPL NOHIDE nosys
285 UNIMPL NOHIDE nosys
286 UNIMPL NOHIDE nosys
287 UNIMPL NOHIDE nosys
288 UNIMPL NOHIDE nosys
289 UNIMPL NOHIDE nosys
290 UNIMPL NOHIDE nosys
291 UNIMPL NOHIDE nosys
292 UNIMPL NOHIDE nosys
293 UNIMPL NOHIDE nosys
294 UNIMPL NOHIDE nosys
295 UNIMPL NOHIDE nosys
296 UNIMPL NOHIDE nosys
; XXX 297 is 300 in NetBSD
297 STD BSD { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); }
298 STD BSD { int fhopen(const struct fhandle *u_fhp, int flags); }
299 STD BSD { int fhstat(const struct fhandle *u_fhp, struct stat *sb); }
; syscall numbers for FreeBSD
300 MSTD BSD { int modnext(int modid); }
301 MSTD BSD { int modstat(int modid, struct module_stat* stat); }
302 MSTD BSD { int modfnext(int modid); }
303 MSTD BSD { int modfind(const char *name); }
304 MSTD BSD { int kldload(const char *file); }
305 MSTD BSD { int kldunload(int fileid); }
306 MSTD BSD { int kldfind(const char *file); }
307 MSTD BSD { int kldnext(int fileid); }
308 MSTD BSD { int kldstat(int fileid, struct kld_file_stat* stat); }
309 MSTD BSD { int kldfirstmod(int fileid); }
310 MSTD BSD { int getsid(pid_t pid); }
311 MSTD BSD { int setresuid(uid_t ruid, uid_t euid, uid_t suid); }
312 MSTD BSD { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); }
313 OBSOL NOHIDE signanosleep
314 NOSTD BSD { int aio_return(struct aiocb *aiocbp); }
315 NOSTD BSD { int aio_suspend(struct aiocb * const * aiocbp, int nent, const struct timespec *timeout); }
316 NOSTD BSD { int aio_cancel(int fd, struct aiocb *aiocbp); }
317 NOSTD BSD { int aio_error(struct aiocb *aiocbp); }
318 NOSTD BSD { int aio_read(struct aiocb *aiocbp); }
319 NOSTD BSD { int aio_write(struct aiocb *aiocbp); }
320 NOSTD BSD { int lio_listio(int mode, struct aiocb * const *acb_list, int nent, struct sigevent *sig); }
321 MSTD BSD { int yield(void); }
322 OBSOL NOHIDE thr_sleep
323 OBSOL NOHIDE thr_wakeup
324 MSTD BSD { int mlockall(int how); }
325 MSTD BSD { int munlockall(void); }
326 STD BSD { int __getcwd(u_char *buf, u_int buflen); }
327 MSTD POSIX { int sched_setparam (pid_t pid, const struct sched_param *param); }
328 MSTD POSIX { int sched_getparam (pid_t pid, struct sched_param *param); }
329 MSTD POSIX { int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); }
330 MSTD POSIX { int sched_getscheduler (pid_t pid); }
331 MSTD POSIX { int sched_yield (void); }
332 MSTD POSIX { int sched_get_priority_max (int policy); }
333 MSTD POSIX { int sched_get_priority_min (int policy); }
334 MSTD POSIX { int sched_rr_get_interval (pid_t pid, struct timespec *interval); }
335 STD BSD { int utrace(const void *addr, size_t len); }
336 MSTD BSD { int sendfile(int fd, int s, off_t offset, size_t nbytes, \
struct sf_hdtr *hdtr, off_t *sbytes, int flags); }
337 STD BSD { int kldsym(int fileid, int cmd, void *data); }
338 MSTD BSD { int jail(struct jail *jail); }
339 UNIMPL BSD pioctl
340 MSTD POSIX { int sigprocmask(int how, const sigset_t *set, \
sigset_t *oset); }
341 MSTD POSIX { int sigsuspend(const sigset_t *sigmask); }
342 MSTD POSIX { int sigaction(int sig, const struct sigaction *act, \
struct sigaction *oact); }
343 MSTD POSIX { int sigpending(sigset_t *set); }
344 STD BSD { int sigreturn(const struct __ucontext *sigcntxp); }
345 UNIMPL NOHIDE sigtimedwait
346 UNIMPL NOHIDE sigwaitinfo
347 MSTD BSD { int __acl_get_file(const char *path, \
acl_type_t type, struct acl *aclp); }
348 MSTD BSD { int __acl_set_file(const char *path, \
acl_type_t type, struct acl *aclp); }
349 MSTD BSD { int __acl_get_fd(int filedes, acl_type_t type, \
struct acl *aclp); }
350 MSTD BSD { int __acl_set_fd(int filedes, acl_type_t type, \
struct acl *aclp); }
351 MSTD BSD { int __acl_delete_file(const char *path, \
acl_type_t type); }
352 MSTD BSD { int __acl_delete_fd(int filedes, acl_type_t type); }
353 MSTD BSD { int __acl_aclcheck_file(const char *path, \
acl_type_t type, struct acl *aclp); }
354 MSTD BSD { int __acl_aclcheck_fd(int filedes, acl_type_t type, \
struct acl *aclp); }
355 STD BSD { int extattrctl(const char *path, int cmd, \
const char *filename, int attrnamespace, \
const char *attrname); }
356 STD BSD { int extattr_set_file(const char *path, \
int attrnamespace, const char *attrname, \
void *data, size_t nbytes); }
357 STD BSD { ssize_t extattr_get_file(const char *path, \
int attrnamespace, const char *attrname, \
void *data, size_t nbytes); }
358 STD BSD { int extattr_delete_file(const char *path, \
int attrnamespace, const char *attrname); }
359 NOSTD BSD { int aio_waitcomplete(struct aiocb **aiocbp, struct timespec *timeout); }
360 MSTD BSD { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); }
361 MSTD BSD { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); }
362 MSTD BSD { int kqueue(void); }
363 MSTD BSD { int kevent(int fd, \
const struct kevent *changelist, int nchanges, \
struct kevent *eventlist, int nevents, \
const struct timespec *timeout); }
364 STD BSD { int __cap_get_proc(struct cap *cap_p); }
365 STD BSD { int __cap_set_proc(struct cap *cap_p); }
366 STD BSD { int __cap_get_fd(int fd, struct cap *cap_p); }
367 STD BSD { int __cap_get_file(const char *path_p, struct cap *cap_p); }
368 STD BSD { int __cap_set_fd(int fd, struct cap *cap_p); }
369 STD BSD { int __cap_set_file(const char *path_p, struct cap *cap_p); }
370 NODEF NOHIDE lkmressys lkmressys nosys_args int
371 STD BSD { int extattr_set_fd(int fd, int attrnamespace, \
const char *attrname, void *data, \
size_t nbytes); }
372 STD BSD { ssize_t extattr_get_fd(int fd, int attrnamespace, \
const char *attrname, void *data, size_t nbytes); }
373 STD BSD { int extattr_delete_fd(int fd, int attrnamespace, \
const char *attrname); }
374 MSTD BSD { int __setugid(int flag); }
375 NOIMPL BSD { int nfsclnt(int flag, caddr_t argp); }
376 STD BSD { int eaccess(char *path, int flags); }
377 UNIMPL BSD afs_syscall
378 STD BSD { int nmount(struct iovec *iovp, unsigned int iovcnt, \
int flags); }
379 STD BSD { int kse_exit(void); }
380 STD BSD { int kse_wakeup(void); }
381 STD BSD { int kse_new(struct kse_mailbox * mbx, \
int new_grp_flag); }
382 STD BSD { int thread_wakeup(struct thread_mailbox *tmbx); }
383 STD BSD { int kse_yield(void); }
384 UNIMPL BSD __mac_get_proc
385 UNIMPL BSD __mac_set_proc
386 UNIMPL BSD __mac_get_fd
387 UNIMPL BSD __mac_get_file
388 UNIMPL BSD __mac_set_fd
389 UNIMPL BSD __mac_set_file