Index: head/sys/amd64/ia32/ia32_proto.h =================================================================== --- head/sys/amd64/ia32/ia32_proto.h (revision 114987) +++ head/sys/amd64/ia32/ia32_proto.h (revision 114988) @@ -1,279 +1,302 @@ /* * System call prototypes. * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/ia64/ia32/syscalls.master,v 1.21 2003/04/25 15:59:18 jhb Exp + * created from FreeBSD: src/sys/amd64/ia32/syscalls.master,v 1.22 2003/05/14 04:10:49 peter Exp */ #ifndef _IA32_SYSPROTO_H_ #define _IA32_SYSPROTO_H_ #include #include #include #include #include #include struct proc; struct thread; #define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \ 0 : sizeof(register_t) - sizeof(t)) #if BYTE_ORDER == LITTLE_ENDIAN #define PADL_(t) 0 #define PADR_(t) PAD_(t) #else #define PADL_(t) PAD_(t) #define PADR_(t) 0 #endif struct ia32_open_args { char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)]; }; struct ia32_wait4_args { char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)]; char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)]; char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)]; char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)]; }; struct ia32_getfsstat_args { char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; char bufsize_l_[PADL_(long)]; long bufsize; char bufsize_r_[PADR_(long)]; char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; }; struct ia32_access_args { char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; }; struct ia32_chflags_args { char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; }; struct ia32_sigaltstack_args { char ss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * ss; char ss_r_[PADR_(struct sigaltstack32 *)]; char oss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * oss; char oss_r_[PADR_(struct sigaltstack32 *)]; }; struct ia32_execve_args { char fname_l_[PADL_(char *)]; char * fname; char fname_r_[PADR_(char *)]; char argv_l_[PADL_(u_int32_t *)]; u_int32_t * argv; char argv_r_[PADR_(u_int32_t *)]; char envv_l_[PADL_(u_int32_t *)]; u_int32_t * envv; char envv_r_[PADR_(u_int32_t *)]; }; struct ia32_setitimer_args { char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)]; char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)]; char oitv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * oitv; char oitv_r_[PADR_(struct itimerval32 *)]; }; struct ia32_select_args { char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)]; char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)]; char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)]; char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)]; char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)]; }; struct ia32_gettimeofday_args { char tp_l_[PADL_(struct timeval32 *)]; struct timeval32 * tp; char tp_r_[PADR_(struct timeval32 *)]; char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)]; }; struct ia32_getrusage_args { char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)]; char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)]; }; struct ia32_readv_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)]; }; struct ia32_writev_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)]; }; struct ia32_settimeofday_args { char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)]; char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)]; }; struct ia32_utimes_args { char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)]; }; struct ia32_adjtime_args { char delta_l_[PADL_(struct timeval32 *)]; struct timeval32 * delta; char delta_r_[PADR_(struct timeval32 *)]; char olddelta_l_[PADL_(struct timeval32 *)]; struct timeval32 * olddelta; char olddelta_r_[PADR_(struct timeval32 *)]; }; struct ia32_statfs_args { char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; }; struct ia32_fstatfs_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; }; struct ia32_semsys_args { char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)]; char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)]; char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)]; char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)]; }; struct ia32_msgsys_args { char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)]; char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)]; char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)]; char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)]; char a6_l_[PADL_(int)]; int a6; char a6_r_[PADR_(int)]; }; struct ia32_shmsys_args { char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)]; char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)]; char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)]; }; struct ia32_pread_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)]; char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)]; char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)]; }; struct ia32_pwrite_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)]; char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)]; char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)]; }; struct ia32_stat_args { char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)]; }; struct ia32_fstat_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)]; }; struct ia32_lstat_args { char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)]; }; struct ia32_mmap_args { char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)]; char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)]; char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)]; char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; char poslo_l_[PADL_(u_int32_t)]; u_int32_t poslo; char poslo_r_[PADR_(u_int32_t)]; char poshi_l_[PADL_(u_int32_t)]; u_int32_t poshi; char poshi_r_[PADR_(u_int32_t)]; }; struct ia32_lseek_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)]; char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)]; char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)]; }; struct ia32_truncate_args { char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; char lengthlo_l_[PADL_(u_int32_t)]; u_int32_t lengthlo; char lengthlo_r_[PADR_(u_int32_t)]; char lengthhi_l_[PADL_(u_int32_t)]; u_int32_t lengthhi; char lengthhi_r_[PADR_(u_int32_t)]; }; struct ia32_ftruncate_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; char lengthlo_l_[PADL_(u_int32_t)]; u_int32_t lengthlo; char lengthlo_r_[PADR_(u_int32_t)]; char lengthhi_l_[PADL_(u_int32_t)]; u_int32_t lengthhi; char lengthhi_r_[PADR_(u_int32_t)]; }; struct ia32_sysctl_args { char name_l_[PADL_(int *)]; int * name; char name_r_[PADR_(int *)]; char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)]; char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)]; char oldlenp_l_[PADL_(u_int32_t *)]; u_int32_t * oldlenp; char oldlenp_r_[PADR_(u_int32_t *)]; char new_l_[PADL_(void *)]; void * new; char new_r_[PADR_(void *)]; char newlen_l_[PADL_(u_int32_t)]; u_int32_t newlen; char newlen_r_[PADR_(u_int32_t)]; }; -struct ia32_sigaction_args { - char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)]; - char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)]; - char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)]; +struct ia32_kevent_args { + char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; + char changelist_l_[PADL_(const struct kevent *)]; const struct kevent * changelist; char changelist_r_[PADR_(const struct kevent *)]; + char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)]; + char eventlist_l_[PADL_(struct kevent *)]; struct kevent * eventlist; char eventlist_r_[PADR_(struct kevent *)]; + char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)]; + char timeout_l_[PADL_(const struct timespec *)]; const struct timespec * timeout; char timeout_r_[PADR_(const struct timespec *)]; }; struct ia32_sendfile_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)]; char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)]; char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)]; char hdtr_l_[PADL_(struct sf_hdtr *)]; struct sf_hdtr * hdtr; char hdtr_r_[PADR_(struct sf_hdtr *)]; char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)]; char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; }; +struct ia32_sigreturn_args { + char sigcntxp_l_[PADL_(const struct ia32_ucontext *)]; const struct ia32_ucontext * sigcntxp; char sigcntxp_r_[PADR_(const struct ia32_ucontext *)]; +}; +struct ia32_sigaction_args { + char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)]; + char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)]; + char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)]; +}; int ia32_open(struct thread *, struct ia32_open_args *); int ia32_wait4(struct thread *, struct ia32_wait4_args *); int ia32_getfsstat(struct thread *, struct ia32_getfsstat_args *); int ia32_access(struct thread *, struct ia32_access_args *); int ia32_chflags(struct thread *, struct ia32_chflags_args *); int ia32_sigaltstack(struct thread *, struct ia32_sigaltstack_args *); int ia32_execve(struct thread *, struct ia32_execve_args *); int ia32_setitimer(struct thread *, struct ia32_setitimer_args *); int ia32_select(struct thread *, struct ia32_select_args *); int ia32_gettimeofday(struct thread *, struct ia32_gettimeofday_args *); int ia32_getrusage(struct thread *, struct ia32_getrusage_args *); int ia32_readv(struct thread *, struct ia32_readv_args *); int ia32_writev(struct thread *, struct ia32_writev_args *); int ia32_settimeofday(struct thread *, struct ia32_settimeofday_args *); int ia32_utimes(struct thread *, struct ia32_utimes_args *); int ia32_adjtime(struct thread *, struct ia32_adjtime_args *); int ia32_statfs(struct thread *, struct ia32_statfs_args *); int ia32_fstatfs(struct thread *, struct ia32_fstatfs_args *); int ia32_semsys(struct thread *, struct ia32_semsys_args *); int ia32_msgsys(struct thread *, struct ia32_msgsys_args *); int ia32_shmsys(struct thread *, struct ia32_shmsys_args *); int ia32_pread(struct thread *, struct ia32_pread_args *); int ia32_pwrite(struct thread *, struct ia32_pwrite_args *); int ia32_stat(struct thread *, struct ia32_stat_args *); int ia32_fstat(struct thread *, struct ia32_fstat_args *); int ia32_lstat(struct thread *, struct ia32_lstat_args *); int ia32_mmap(struct thread *, struct ia32_mmap_args *); int ia32_lseek(struct thread *, struct ia32_lseek_args *); int ia32_truncate(struct thread *, struct ia32_truncate_args *); int ia32_ftruncate(struct thread *, struct ia32_ftruncate_args *); int ia32_sysctl(struct thread *, struct ia32_sysctl_args *); -int ia32_sigaction(struct thread *, struct ia32_sigaction_args *); +int ia32_kevent(struct thread *, struct ia32_kevent_args *); int ia32_sendfile(struct thread *, struct ia32_sendfile_args *); +int ia32_sigreturn(struct thread *, struct ia32_sigreturn_args *); +int ia32_sigaction(struct thread *, struct ia32_sigaction_args *); #ifdef COMPAT_43 #endif /* COMPAT_43 */ #ifdef COMPAT_FREEBSD4 struct freebsd4_ia32_sendfile_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)]; char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)]; char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)]; char hdtr_l_[PADL_(struct sf_hdtr *)]; struct sf_hdtr * hdtr; char hdtr_r_[PADR_(struct sf_hdtr *)]; char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)]; char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; }; +struct freebsd4_ia32_sigaction_args { + char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)]; + char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)]; + char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)]; +}; +struct freebsd4_ia32_sigreturn_args { + char sigcntxp_l_[PADL_(const struct __ucontext *)]; const struct __ucontext * sigcntxp; char sigcntxp_r_[PADR_(const struct __ucontext *)]; +}; int freebsd4_ia32_sendfile(struct thread *, struct freebsd4_ia32_sendfile_args *); +int freebsd4_ia32_sigaction(struct thread *, struct freebsd4_ia32_sigaction_args *); +int freebsd4_ia32_sigreturn(struct thread *, struct freebsd4_ia32_sigreturn_args *); #endif /* COMPAT_FREEBSD4 */ #undef PAD_ #undef PADL_ #undef PADR_ #endif /* !_IA32_SYSPROTO_H_ */ Index: head/sys/amd64/ia32/ia32_syscall.h =================================================================== --- head/sys/amd64/ia32/ia32_syscall.h (revision 114987) +++ head/sys/amd64/ia32/ia32_syscall.h (revision 114988) @@ -1,296 +1,298 @@ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/ia64/ia32/syscalls.master,v 1.21 2003/04/25 15:59:18 jhb Exp + * created from FreeBSD: src/sys/amd64/ia32/syscalls.master,v 1.22 2003/05/14 04:10:49 peter Exp */ #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_ia32_open 5 #define IA32_SYS_close 6 #define IA32_SYS_ia32_wait4 7 /* 8 is obsolete 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_ia32_getfsstat 18 /* 19 is obsolete olseek */ #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_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_ia32_access 33 #define IA32_SYS_ia32_chflags 34 #define IA32_SYS_fchflags 35 #define IA32_SYS_sync 36 #define IA32_SYS_kill 37 #define IA32_SYS_getppid 39 #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 #define IA32_SYS_getgid 47 #define IA32_SYS_getlogin 49 #define IA32_SYS_setlogin 50 #define IA32_SYS_acct 51 #define IA32_SYS_sigpending 52 #define IA32_SYS_ia32_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_ia32_execve 59 #define IA32_SYS_umask 60 #define IA32_SYS_chroot 61 /* 62 is obsolete ofstat */ /* 63 is obsolete ogetkerninfo */ /* 64 is obsolete ogetpagesize */ /* 65 is obsolete omsync */ /* 66 is obsolete ovfork */ /* 67 is obsolete vread */ /* 68 is obsolete vwrite */ #define IA32_SYS_sbrk 69 #define IA32_SYS_sstk 70 /* 71 is obsolete ommap */ #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_ia32_setitimer 83 /* 84 is obsolete owait */ /* 85 is obsolete oswapon */ /* 86 is obsolete ogetitimer */ /* 87 is obsolete ogethostname */ /* 88 is obsolete osethostname */ #define IA32_SYS_getdtablesize 89 #define IA32_SYS_dup2 90 #define IA32_SYS_fcntl 92 #define IA32_SYS_ia32_select 93 #define IA32_SYS_fsync 95 #define IA32_SYS_setpriority 96 #define IA32_SYS_socket 97 #define IA32_SYS_connect 98 #define IA32_SYS_accept 99 #define IA32_SYS_getpriority 100 /* 101 is obsolete osend */ /* 102 is obsolete orecv */ /* 103 is obsolete osigreturn */ #define IA32_SYS_bind 104 #define IA32_SYS_setsockopt 105 #define IA32_SYS_listen 106 /* 107 is obsolete vtimes */ /* 108 is obsolete osigvec */ /* 109 is obsolete osigblock */ /* 110 is obsolete osigsetmask */ /* 111 is obsolete osigsuspend */ /* 112 is obsolete osigstack */ /* 113 is obsolete orecvmsg */ /* 114 is obsolete osendmsg */ /* 115 is obsolete vtrace */ #define IA32_SYS_ia32_gettimeofday 116 #define IA32_SYS_ia32_getrusage 117 #define IA32_SYS_getsockopt 118 #define IA32_SYS_ia32_readv 120 #define IA32_SYS_ia32_writev 121 #define IA32_SYS_ia32_settimeofday 122 #define IA32_SYS_fchown 123 #define IA32_SYS_fchmod 124 #define IA32_SYS_recvfrom 125 #define IA32_SYS_setreuid 126 #define IA32_SYS_setregid 127 #define IA32_SYS_rename 128 /* 129 is obsolete otruncate */ /* 130 is obsolete 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_ia32_utimes 138 /* 139 is obsolete 4.2 sigreturn */ #define IA32_SYS_ia32_adjtime 140 /* 141 is obsolete ogetpeername */ /* 142 is obsolete ogethostid */ /* 143 is obsolete sethostid */ /* 144 is obsolete getrlimit */ /* 145 is obsolete setrlimit */ /* 146 is obsolete killpg */ #define IA32_SYS_setsid 147 #define IA32_SYS_quotactl 148 /* 149 is obsolete oquota */ /* 150 is obsolete ogetsockname */ #define IA32_SYS_getdirentries 156 #define IA32_SYS_ia32_statfs 157 #define IA32_SYS_ia32_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_ia32_semsys 169 #define IA32_SYS_ia32_msgsys 170 #define IA32_SYS_ia32_shmsys 171 #define IA32_SYS_ia32_pread 173 #define IA32_SYS_ia32_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_ia32_stat 188 #define IA32_SYS_ia32_fstat 189 #define IA32_SYS_ia32_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_ia32_mmap 197 #define IA32_SYS___syscall 198 #define IA32_SYS_ia32_lseek 199 #define IA32_SYS_ia32_truncate 200 #define IA32_SYS_ia32_ftruncate 201 #define IA32_SYS_ia32_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_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 /* 336 is old ia32_sendfile */ #define IA32_SYS_kldsym 337 #define IA32_SYS_jail 338 #define IA32_SYS_sigprocmask 340 #define IA32_SYS_sigsuspend 341 -#define IA32_SYS_ia32_sigaction 342 + /* 342 is old ia32_sigaction */ #define IA32_SYS_sigpending 343 -#define IA32_SYS_sigreturn 344 + /* 344 is old ia32_sigreturn */ #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_getresuid 360 #define IA32_SYS_getresgid 361 #define IA32_SYS_kqueue 362 -#define IA32_SYS_kevent 363 +#define IA32_SYS_ia32_kevent 363 #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_eaccess 376 #define IA32_SYS_nmount 378 #define IA32_SYS_kse_exit 379 #define IA32_SYS_kse_wakeup 380 #define IA32_SYS_kse_create 381 #define IA32_SYS_kse_thr_interrupt 382 #define IA32_SYS_kse_release 383 #define IA32_SYS_kenv 390 #define IA32_SYS_lchflags 391 #define IA32_SYS_uuidgen 392 #define IA32_SYS_ia32_sendfile 393 +#define IA32_SYS_ia32_sigreturn 416 +#define IA32_SYS_ia32_sigaction 417 #define IA32_SYS_thr_create 430 #define IA32_SYS_thr_exit 431 #define IA32_SYS_thr_self 432 #define IA32_SYS_thr_kill 433 #define IA32_SYS__umtx_lock 434 #define IA32_SYS__umtx_unlock 435 #define IA32_SYS_jail_attach 436 #define IA32_SYS_MAXSYSCALL 437 Index: head/sys/amd64/ia32/ia32_sysent.c =================================================================== --- head/sys/amd64/ia32/ia32_sysent.c (revision 114987) +++ head/sys/amd64/ia32/ia32_sysent.c (revision 114988) @@ -1,465 +1,465 @@ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/ia64/ia32/syscalls.master,v 1.21 2003/04/25 15:59:18 jhb Exp + * created from FreeBSD: src/sys/amd64/ia32/syscalls.master,v 1.22 2003/05/14 04:10:49 peter Exp */ #include "opt_compat.h" #include #include #include #include -#include -#include +#include +#include #define AS(name) (sizeof(struct name) / sizeof(register_t)) #ifdef COMPAT_FREEBSD4 #define compat4(n, name) n, (sy_call_t *)__CONCAT(freebsd4_,name) #else #define compat4(n, name) 0, (sy_call_t *)nosys #endif /* The casts are bogus but will do for now. */ struct sysent ia32_sysent[] = { { SYF_MPSAFE | 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(ia32_open_args), (sy_call_t *)ia32_open }, /* 5 = ia32_open */ { SYF_MPSAFE | AS(close_args), (sy_call_t *)close }, /* 6 = close */ { SYF_MPSAFE | AS(ia32_wait4_args), (sy_call_t *)ia32_wait4 }, /* 7 = ia32_wait4 */ { 0, (sy_call_t *)nosys }, /* 8 = obsolete 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(ia32_getfsstat_args), (sy_call_t *)ia32_getfsstat }, /* 18 = ia32_getfsstat */ { 0, (sy_call_t *)nosys }, /* 19 = obsolete olseek */ { 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 */ { 0, (sy_call_t *)nosys }, /* 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(ia32_access_args), (sy_call_t *)ia32_access }, /* 33 = ia32_access */ { AS(ia32_chflags_args), (sy_call_t *)ia32_chflags }, /* 34 = ia32_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 */ { 0, (sy_call_t *)nosys }, /* 38 = ostat */ { SYF_MPSAFE | 0, (sy_call_t *)getppid }, /* 39 = getppid */ { 0, (sy_call_t *)nosys }, /* 40 = olstat */ { 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 */ { 0, (sy_call_t *)nosys }, /* 46 = osigaction */ { SYF_MPSAFE | 0, (sy_call_t *)getgid }, /* 47 = getgid */ { 0, (sy_call_t *)nosys }, /* 48 = osigprocmask */ { 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 */ { SYF_MPSAFE | 0, (sy_call_t *)sigpending }, /* 52 = sigpending */ { AS(ia32_sigaltstack_args), (sy_call_t *)ia32_sigaltstack }, /* 53 = ia32_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 */ { AS(ia32_execve_args), (sy_call_t *)ia32_execve }, /* 59 = ia32_execve */ { SYF_MPSAFE | AS(umask_args), (sy_call_t *)umask }, /* 60 = umask */ { AS(chroot_args), (sy_call_t *)chroot }, /* 61 = chroot */ { 0, (sy_call_t *)nosys }, /* 62 = obsolete ofstat */ { 0, (sy_call_t *)nosys }, /* 63 = obsolete ogetkerninfo */ { 0, (sy_call_t *)nosys }, /* 64 = obsolete ogetpagesize */ { 0, (sy_call_t *)nosys }, /* 65 = obsolete omsync */ { 0, (sy_call_t *)nosys }, /* 66 = obsolete ovfork */ { 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 */ { 0, (sy_call_t *)nosys }, /* 71 = obsolete ommap */ { 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 */ { AS(ia32_setitimer_args), (sy_call_t *)ia32_setitimer }, /* 83 = ia32_setitimer */ { 0, (sy_call_t *)nosys }, /* 84 = obsolete owait */ { 0, (sy_call_t *)nosys }, /* 85 = obsolete oswapon */ { 0, (sy_call_t *)nosys }, /* 86 = obsolete ogetitimer */ { 0, (sy_call_t *)nosys }, /* 87 = obsolete ogethostname */ { 0, (sy_call_t *)nosys }, /* 88 = obsolete osethostname */ { 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 */ { AS(ia32_select_args), (sy_call_t *)ia32_select }, /* 93 = ia32_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 */ { SYF_MPSAFE | AS(accept_args), (sy_call_t *)accept }, /* 99 = accept */ { SYF_MPSAFE | AS(getpriority_args), (sy_call_t *)getpriority }, /* 100 = getpriority */ { 0, (sy_call_t *)nosys }, /* 101 = obsolete osend */ { 0, (sy_call_t *)nosys }, /* 102 = obsolete orecv */ { 0, (sy_call_t *)nosys }, /* 103 = obsolete 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 */ { 0, (sy_call_t *)nosys }, /* 108 = obsolete osigvec */ { 0, (sy_call_t *)nosys }, /* 109 = obsolete osigblock */ { 0, (sy_call_t *)nosys }, /* 110 = obsolete osigsetmask */ { 0, (sy_call_t *)nosys }, /* 111 = obsolete osigsuspend */ { 0, (sy_call_t *)nosys }, /* 112 = obsolete osigstack */ { 0, (sy_call_t *)nosys }, /* 113 = obsolete orecvmsg */ { 0, (sy_call_t *)nosys }, /* 114 = obsolete osendmsg */ { 0, (sy_call_t *)nosys }, /* 115 = obsolete vtrace */ { AS(ia32_gettimeofday_args), (sy_call_t *)ia32_gettimeofday }, /* 116 = ia32_gettimeofday */ { AS(ia32_getrusage_args), (sy_call_t *)ia32_getrusage }, /* 117 = ia32_getrusage */ { SYF_MPSAFE | AS(getsockopt_args), (sy_call_t *)getsockopt }, /* 118 = getsockopt */ { 0, (sy_call_t *)nosys }, /* 119 = resuba */ { AS(ia32_readv_args), (sy_call_t *)ia32_readv }, /* 120 = ia32_readv */ { AS(ia32_writev_args), (sy_call_t *)ia32_writev }, /* 121 = ia32_writev */ { AS(ia32_settimeofday_args), (sy_call_t *)ia32_settimeofday }, /* 122 = ia32_settimeofday */ { AS(fchown_args), (sy_call_t *)fchown }, /* 123 = fchown */ { AS(fchmod_args), (sy_call_t *)fchmod }, /* 124 = fchmod */ { SYF_MPSAFE | AS(recvfrom_args), (sy_call_t *)recvfrom }, /* 125 = 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 */ { 0, (sy_call_t *)nosys }, /* 129 = obsolete otruncate */ { 0, (sy_call_t *)nosys }, /* 130 = obsolete 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(ia32_utimes_args), (sy_call_t *)ia32_utimes }, /* 138 = ia32_utimes */ { 0, (sy_call_t *)nosys }, /* 139 = obsolete 4.2 sigreturn */ { AS(ia32_adjtime_args), (sy_call_t *)ia32_adjtime }, /* 140 = ia32_adjtime */ { 0, (sy_call_t *)nosys }, /* 141 = obsolete ogetpeername */ { 0, (sy_call_t *)nosys }, /* 142 = obsolete ogethostid */ { 0, (sy_call_t *)nosys }, /* 143 = obsolete sethostid */ { 0, (sy_call_t *)nosys }, /* 144 = obsolete getrlimit */ { 0, (sy_call_t *)nosys }, /* 145 = obsolete setrlimit */ { 0, (sy_call_t *)nosys }, /* 146 = obsolete killpg */ { SYF_MPSAFE | 0, (sy_call_t *)setsid }, /* 147 = setsid */ { AS(quotactl_args), (sy_call_t *)quotactl }, /* 148 = quotactl */ { 0, (sy_call_t *)nosys }, /* 149 = obsolete oquota */ { 0, (sy_call_t *)nosys }, /* 150 = obsolete ogetsockname */ { 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 */ { 0, (sy_call_t *)nosys }, /* 155 = nfssvc */ { AS(getdirentries_args), (sy_call_t *)getdirentries }, /* 156 = getdirentries */ { AS(ia32_statfs_args), (sy_call_t *)ia32_statfs }, /* 157 = ia32_statfs */ { AS(ia32_fstatfs_args), (sy_call_t *)ia32_fstatfs }, /* 158 = ia32_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 */ { AS(ia32_semsys_args), (sy_call_t *)ia32_semsys }, /* 169 = ia32_semsys */ { AS(ia32_msgsys_args), (sy_call_t *)ia32_msgsys }, /* 170 = ia32_msgsys */ { AS(ia32_shmsys_args), (sy_call_t *)ia32_shmsys }, /* 171 = ia32_shmsys */ { 0, (sy_call_t *)nosys }, /* 172 = nosys */ { AS(ia32_pread_args), (sy_call_t *)ia32_pread }, /* 173 = ia32_pread */ { AS(ia32_pwrite_args), (sy_call_t *)ia32_pwrite }, /* 174 = ia32_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(ia32_stat_args), (sy_call_t *)ia32_stat }, /* 188 = ia32_stat */ { AS(ia32_fstat_args), (sy_call_t *)ia32_fstat }, /* 189 = ia32_fstat */ { AS(ia32_lstat_args), (sy_call_t *)ia32_lstat }, /* 190 = ia32_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 */ { AS(ia32_mmap_args), (sy_call_t *)ia32_mmap }, /* 197 = ia32_mmap */ { 0, (sy_call_t *)nosys }, /* 198 = __syscall */ { AS(ia32_lseek_args), (sy_call_t *)ia32_lseek }, /* 199 = ia32_lseek */ { AS(ia32_truncate_args), (sy_call_t *)ia32_truncate }, /* 200 = ia32_truncate */ { AS(ia32_ftruncate_args), (sy_call_t *)ia32_ftruncate }, /* 201 = ia32_ftruncate */ { SYF_MPSAFE | AS(ia32_sysctl_args), (sy_call_t *)ia32_sysctl }, /* 202 = ia32_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 */ { 0, (sy_call_t *)nosys }, /* 210 = */ { 0, (sy_call_t *)nosys }, /* 211 = */ { 0, (sy_call_t *)nosys }, /* 212 = */ { 0, (sy_call_t *)nosys }, /* 213 = */ { 0, (sy_call_t *)nosys }, /* 214 = */ { 0, (sy_call_t *)nosys }, /* 215 = */ { 0, (sy_call_t *)nosys }, /* 216 = */ { 0, (sy_call_t *)nosys }, /* 217 = */ { 0, (sy_call_t *)nosys }, /* 218 = */ { 0, (sy_call_t *)nosys }, /* 219 = */ { SYF_MPSAFE | AS(__semctl_args), (sy_call_t *)__semctl }, /* 220 = __semctl */ { SYF_MPSAFE | AS(semget_args), (sy_call_t *)semget }, /* 221 = semget */ { SYF_MPSAFE | AS(semop_args), (sy_call_t *)semop }, /* 222 = semop */ { 0, (sy_call_t *)nosys }, /* 223 = semconfig */ { SYF_MPSAFE | AS(msgctl_args), (sy_call_t *)msgctl }, /* 224 = msgctl */ { SYF_MPSAFE | AS(msgget_args), (sy_call_t *)msgget }, /* 225 = msgget */ { SYF_MPSAFE | AS(msgsnd_args), (sy_call_t *)msgsnd }, /* 226 = msgsnd */ { SYF_MPSAFE | AS(msgrcv_args), (sy_call_t *)msgrcv }, /* 227 = msgrcv */ { SYF_MPSAFE | AS(shmat_args), (sy_call_t *)shmat }, /* 228 = shmat */ { SYF_MPSAFE | AS(shmctl_args), (sy_call_t *)shmctl }, /* 229 = shmctl */ { SYF_MPSAFE | AS(shmdt_args), (sy_call_t *)shmdt }, /* 230 = shmdt */ { SYF_MPSAFE | AS(shmget_args), (sy_call_t *)shmget }, /* 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 */ { 0, (sy_call_t *)nosys }, /* 314 = aio_return */ { 0, (sy_call_t *)nosys }, /* 315 = aio_suspend */ { 0, (sy_call_t *)nosys }, /* 316 = aio_cancel */ { 0, (sy_call_t *)nosys }, /* 317 = aio_error */ { 0, (sy_call_t *)nosys }, /* 318 = aio_read */ { 0, (sy_call_t *)nosys }, /* 319 = aio_write */ { 0, (sy_call_t *)nosys }, /* 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 */ { compat4(SYF_MPSAFE | AS(freebsd4_ia32_sendfile_args),ia32_sendfile) }, /* 336 = old ia32_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 */ - { AS(ia32_sigaction_args), (sy_call_t *)ia32_sigaction }, /* 342 = ia32_sigaction */ + { compat4(AS(freebsd4_ia32_sigaction_args),ia32_sigaction) }, /* 342 = old ia32_sigaction */ { SYF_MPSAFE | AS(sigpending_args), (sy_call_t *)sigpending }, /* 343 = sigpending */ - { SYF_MPSAFE | AS(sigreturn_args), (sy_call_t *)sigreturn }, /* 344 = sigreturn */ + { compat4(SYF_MPSAFE | AS(freebsd4_ia32_sigreturn_args),ia32_sigreturn) }, /* 344 = old ia32_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 */ { 0, (sy_call_t *)nosys }, /* 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 */ + { SYF_MPSAFE | AS(ia32_kevent_args), (sy_call_t *)ia32_kevent }, /* 363 = ia32_kevent */ { 0, (sy_call_t *)nosys }, /* 364 = __cap_get_proc */ { 0, (sy_call_t *)nosys }, /* 365 = __cap_set_proc */ { 0, (sy_call_t *)nosys }, /* 366 = __cap_get_fd */ { 0, (sy_call_t *)nosys }, /* 367 = __cap_get_file */ { 0, (sy_call_t *)nosys }, /* 368 = __cap_set_fd */ { 0, (sy_call_t *)nosys }, /* 369 = __cap_set_file */ { 0, (sy_call_t *)nosys }, /* 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 */ { 0, (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 */ { AS(kse_wakeup_args), (sy_call_t *)kse_wakeup }, /* 380 = kse_wakeup */ { AS(kse_create_args), (sy_call_t *)kse_create }, /* 381 = kse_create */ { AS(kse_thr_interrupt_args), (sy_call_t *)kse_thr_interrupt }, /* 382 = kse_thr_interrupt */ { 0, (sy_call_t *)kse_release }, /* 383 = kse_release */ { 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 */ { AS(kenv_args), (sy_call_t *)kenv }, /* 390 = kenv */ { AS(lchflags_args), (sy_call_t *)lchflags }, /* 391 = lchflags */ { AS(uuidgen_args), (sy_call_t *)uuidgen }, /* 392 = uuidgen */ { SYF_MPSAFE | AS(ia32_sendfile_args), (sy_call_t *)ia32_sendfile }, /* 393 = ia32_sendfile */ { 0, (sy_call_t *)nosys }, /* 394 = mac_syscall */ { 0, (sy_call_t *)nosys }, /* 395 = nosys */ { 0, (sy_call_t *)nosys }, /* 396 = nosys */ { 0, (sy_call_t *)nosys }, /* 397 = nosys */ { 0, (sy_call_t *)nosys }, /* 398 = nosys */ { 0, (sy_call_t *)nosys }, /* 399 = nosys */ { 0, (sy_call_t *)nosys }, /* 400 = ksem_close */ { 0, (sy_call_t *)nosys }, /* 401 = ksem_post */ { 0, (sy_call_t *)nosys }, /* 402 = ksem_wait */ { 0, (sy_call_t *)nosys }, /* 403 = ksem_trywait */ { 0, (sy_call_t *)nosys }, /* 404 = ksem_init */ { 0, (sy_call_t *)nosys }, /* 405 = ksem_open */ { 0, (sy_call_t *)nosys }, /* 406 = ksem_unlink */ { 0, (sy_call_t *)nosys }, /* 407 = ksem_getvalue */ { 0, (sy_call_t *)nosys }, /* 408 = ksem_destroy */ { 0, (sy_call_t *)nosys }, /* 409 = __mac_get_pid */ { 0, (sy_call_t *)nosys }, /* 410 = __mac_get_link */ { 0, (sy_call_t *)nosys }, /* 411 = __mac_set_link */ { 0, (sy_call_t *)nosys }, /* 412 = extattr_set_link */ { 0, (sy_call_t *)nosys }, /* 413 = extattr_get_link */ { 0, (sy_call_t *)nosys }, /* 414 = extattr_delete_link */ { 0, (sy_call_t *)nosys }, /* 415 = __mac_execve */ - { 0, (sy_call_t *)nosys }, /* 416 = newsigreturn */ - { 0, (sy_call_t *)nosys }, /* 417 = newsigaction */ + { SYF_MPSAFE | AS(ia32_sigreturn_args), (sy_call_t *)ia32_sigreturn }, /* 416 = ia32_sigreturn */ + { AS(ia32_sigaction_args), (sy_call_t *)ia32_sigaction }, /* 417 = ia32_sigaction */ { 0, (sy_call_t *)nosys }, /* 418 = __xstat */ { 0, (sy_call_t *)nosys }, /* 419 = __xfstat */ { 0, (sy_call_t *)nosys }, /* 420 = __xlstat */ { 0, (sy_call_t *)nosys }, /* 421 = getcontext */ { 0, (sy_call_t *)nosys }, /* 422 = setcontext */ { 0, (sy_call_t *)nosys }, /* 423 = swapcontext */ { 0, (sy_call_t *)nosys }, /* 424 = swapoff */ { 0, (sy_call_t *)nosys }, /* 425 = __acl_get_link */ { 0, (sy_call_t *)nosys }, /* 426 = __acl_set_link */ { 0, (sy_call_t *)nosys }, /* 427 = __acl_delete_link */ { 0, (sy_call_t *)nosys }, /* 428 = __acl_aclcheck_link */ { 0, (sy_call_t *)nosys }, /* 429 = sigwait */ { SYF_MPSAFE | AS(thr_create_args), (sy_call_t *)thr_create }, /* 430 = thr_create */ { SYF_MPSAFE | 0, (sy_call_t *)thr_exit }, /* 431 = thr_exit */ { SYF_MPSAFE | AS(thr_self_args), (sy_call_t *)thr_self }, /* 432 = thr_self */ { SYF_MPSAFE | AS(thr_kill_args), (sy_call_t *)thr_kill }, /* 433 = thr_kill */ { SYF_MPSAFE | AS(_umtx_lock_args), (sy_call_t *)_umtx_lock }, /* 434 = _umtx_lock */ { SYF_MPSAFE | AS(_umtx_unlock_args), (sy_call_t *)_umtx_unlock }, /* 435 = _umtx_unlock */ { SYF_MPSAFE | AS(jail_attach_args), (sy_call_t *)jail_attach }, /* 436 = jail_attach */ }; Index: head/sys/compat/freebsd32/freebsd32_proto.h =================================================================== --- head/sys/compat/freebsd32/freebsd32_proto.h (revision 114987) +++ head/sys/compat/freebsd32/freebsd32_proto.h (revision 114988) @@ -1,279 +1,302 @@ /* * System call prototypes. * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/ia64/ia32/syscalls.master,v 1.21 2003/04/25 15:59:18 jhb Exp + * created from FreeBSD: src/sys/amd64/ia32/syscalls.master,v 1.22 2003/05/14 04:10:49 peter Exp */ #ifndef _IA32_SYSPROTO_H_ #define _IA32_SYSPROTO_H_ #include #include #include #include #include #include struct proc; struct thread; #define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \ 0 : sizeof(register_t) - sizeof(t)) #if BYTE_ORDER == LITTLE_ENDIAN #define PADL_(t) 0 #define PADR_(t) PAD_(t) #else #define PADL_(t) PAD_(t) #define PADR_(t) 0 #endif struct ia32_open_args { char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)]; }; struct ia32_wait4_args { char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)]; char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)]; char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)]; char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)]; }; struct ia32_getfsstat_args { char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; char bufsize_l_[PADL_(long)]; long bufsize; char bufsize_r_[PADR_(long)]; char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; }; struct ia32_access_args { char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; }; struct ia32_chflags_args { char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; }; struct ia32_sigaltstack_args { char ss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * ss; char ss_r_[PADR_(struct sigaltstack32 *)]; char oss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * oss; char oss_r_[PADR_(struct sigaltstack32 *)]; }; struct ia32_execve_args { char fname_l_[PADL_(char *)]; char * fname; char fname_r_[PADR_(char *)]; char argv_l_[PADL_(u_int32_t *)]; u_int32_t * argv; char argv_r_[PADR_(u_int32_t *)]; char envv_l_[PADL_(u_int32_t *)]; u_int32_t * envv; char envv_r_[PADR_(u_int32_t *)]; }; struct ia32_setitimer_args { char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)]; char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)]; char oitv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * oitv; char oitv_r_[PADR_(struct itimerval32 *)]; }; struct ia32_select_args { char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)]; char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)]; char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)]; char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)]; char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)]; }; struct ia32_gettimeofday_args { char tp_l_[PADL_(struct timeval32 *)]; struct timeval32 * tp; char tp_r_[PADR_(struct timeval32 *)]; char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)]; }; struct ia32_getrusage_args { char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)]; char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)]; }; struct ia32_readv_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)]; }; struct ia32_writev_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)]; char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)]; }; struct ia32_settimeofday_args { char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)]; char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)]; }; struct ia32_utimes_args { char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)]; }; struct ia32_adjtime_args { char delta_l_[PADL_(struct timeval32 *)]; struct timeval32 * delta; char delta_r_[PADR_(struct timeval32 *)]; char olddelta_l_[PADL_(struct timeval32 *)]; struct timeval32 * olddelta; char olddelta_r_[PADR_(struct timeval32 *)]; }; struct ia32_statfs_args { char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; }; struct ia32_fstatfs_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)]; }; struct ia32_semsys_args { char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)]; char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)]; char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)]; char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)]; }; struct ia32_msgsys_args { char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)]; char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)]; char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)]; char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)]; char a6_l_[PADL_(int)]; int a6; char a6_r_[PADR_(int)]; }; struct ia32_shmsys_args { char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)]; char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)]; char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)]; char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)]; }; struct ia32_pread_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)]; char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)]; char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)]; }; struct ia32_pwrite_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)]; char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)]; char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)]; }; struct ia32_stat_args { char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)]; }; struct ia32_fstat_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)]; }; struct ia32_lstat_args { char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)]; }; struct ia32_mmap_args { char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)]; char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)]; char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)]; char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; char poslo_l_[PADL_(u_int32_t)]; u_int32_t poslo; char poslo_r_[PADR_(u_int32_t)]; char poshi_l_[PADL_(u_int32_t)]; u_int32_t poshi; char poshi_r_[PADR_(u_int32_t)]; }; struct ia32_lseek_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)]; char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)]; char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)]; }; struct ia32_truncate_args { char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; char lengthlo_l_[PADL_(u_int32_t)]; u_int32_t lengthlo; char lengthlo_r_[PADR_(u_int32_t)]; char lengthhi_l_[PADL_(u_int32_t)]; u_int32_t lengthhi; char lengthhi_r_[PADR_(u_int32_t)]; }; struct ia32_ftruncate_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)]; char lengthlo_l_[PADL_(u_int32_t)]; u_int32_t lengthlo; char lengthlo_r_[PADR_(u_int32_t)]; char lengthhi_l_[PADL_(u_int32_t)]; u_int32_t lengthhi; char lengthhi_r_[PADR_(u_int32_t)]; }; struct ia32_sysctl_args { char name_l_[PADL_(int *)]; int * name; char name_r_[PADR_(int *)]; char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)]; char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)]; char oldlenp_l_[PADL_(u_int32_t *)]; u_int32_t * oldlenp; char oldlenp_r_[PADR_(u_int32_t *)]; char new_l_[PADL_(void *)]; void * new; char new_r_[PADR_(void *)]; char newlen_l_[PADL_(u_int32_t)]; u_int32_t newlen; char newlen_r_[PADR_(u_int32_t)]; }; -struct ia32_sigaction_args { - char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)]; - char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)]; - char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)]; +struct ia32_kevent_args { + char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; + char changelist_l_[PADL_(const struct kevent *)]; const struct kevent * changelist; char changelist_r_[PADR_(const struct kevent *)]; + char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)]; + char eventlist_l_[PADL_(struct kevent *)]; struct kevent * eventlist; char eventlist_r_[PADR_(struct kevent *)]; + char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)]; + char timeout_l_[PADL_(const struct timespec *)]; const struct timespec * timeout; char timeout_r_[PADR_(const struct timespec *)]; }; struct ia32_sendfile_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)]; char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)]; char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)]; char hdtr_l_[PADL_(struct sf_hdtr *)]; struct sf_hdtr * hdtr; char hdtr_r_[PADR_(struct sf_hdtr *)]; char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)]; char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; }; +struct ia32_sigreturn_args { + char sigcntxp_l_[PADL_(const struct ia32_ucontext *)]; const struct ia32_ucontext * sigcntxp; char sigcntxp_r_[PADR_(const struct ia32_ucontext *)]; +}; +struct ia32_sigaction_args { + char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)]; + char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)]; + char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)]; +}; int ia32_open(struct thread *, struct ia32_open_args *); int ia32_wait4(struct thread *, struct ia32_wait4_args *); int ia32_getfsstat(struct thread *, struct ia32_getfsstat_args *); int ia32_access(struct thread *, struct ia32_access_args *); int ia32_chflags(struct thread *, struct ia32_chflags_args *); int ia32_sigaltstack(struct thread *, struct ia32_sigaltstack_args *); int ia32_execve(struct thread *, struct ia32_execve_args *); int ia32_setitimer(struct thread *, struct ia32_setitimer_args *); int ia32_select(struct thread *, struct ia32_select_args *); int ia32_gettimeofday(struct thread *, struct ia32_gettimeofday_args *); int ia32_getrusage(struct thread *, struct ia32_getrusage_args *); int ia32_readv(struct thread *, struct ia32_readv_args *); int ia32_writev(struct thread *, struct ia32_writev_args *); int ia32_settimeofday(struct thread *, struct ia32_settimeofday_args *); int ia32_utimes(struct thread *, struct ia32_utimes_args *); int ia32_adjtime(struct thread *, struct ia32_adjtime_args *); int ia32_statfs(struct thread *, struct ia32_statfs_args *); int ia32_fstatfs(struct thread *, struct ia32_fstatfs_args *); int ia32_semsys(struct thread *, struct ia32_semsys_args *); int ia32_msgsys(struct thread *, struct ia32_msgsys_args *); int ia32_shmsys(struct thread *, struct ia32_shmsys_args *); int ia32_pread(struct thread *, struct ia32_pread_args *); int ia32_pwrite(struct thread *, struct ia32_pwrite_args *); int ia32_stat(struct thread *, struct ia32_stat_args *); int ia32_fstat(struct thread *, struct ia32_fstat_args *); int ia32_lstat(struct thread *, struct ia32_lstat_args *); int ia32_mmap(struct thread *, struct ia32_mmap_args *); int ia32_lseek(struct thread *, struct ia32_lseek_args *); int ia32_truncate(struct thread *, struct ia32_truncate_args *); int ia32_ftruncate(struct thread *, struct ia32_ftruncate_args *); int ia32_sysctl(struct thread *, struct ia32_sysctl_args *); -int ia32_sigaction(struct thread *, struct ia32_sigaction_args *); +int ia32_kevent(struct thread *, struct ia32_kevent_args *); int ia32_sendfile(struct thread *, struct ia32_sendfile_args *); +int ia32_sigreturn(struct thread *, struct ia32_sigreturn_args *); +int ia32_sigaction(struct thread *, struct ia32_sigaction_args *); #ifdef COMPAT_43 #endif /* COMPAT_43 */ #ifdef COMPAT_FREEBSD4 struct freebsd4_ia32_sendfile_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)]; char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)]; char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)]; char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)]; char hdtr_l_[PADL_(struct sf_hdtr *)]; struct sf_hdtr * hdtr; char hdtr_r_[PADR_(struct sf_hdtr *)]; char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)]; char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; }; +struct freebsd4_ia32_sigaction_args { + char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)]; + char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)]; + char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)]; +}; +struct freebsd4_ia32_sigreturn_args { + char sigcntxp_l_[PADL_(const struct __ucontext *)]; const struct __ucontext * sigcntxp; char sigcntxp_r_[PADR_(const struct __ucontext *)]; +}; int freebsd4_ia32_sendfile(struct thread *, struct freebsd4_ia32_sendfile_args *); +int freebsd4_ia32_sigaction(struct thread *, struct freebsd4_ia32_sigaction_args *); +int freebsd4_ia32_sigreturn(struct thread *, struct freebsd4_ia32_sigreturn_args *); #endif /* COMPAT_FREEBSD4 */ #undef PAD_ #undef PADL_ #undef PADR_ #endif /* !_IA32_SYSPROTO_H_ */ Index: head/sys/compat/freebsd32/freebsd32_syscall.h =================================================================== --- head/sys/compat/freebsd32/freebsd32_syscall.h (revision 114987) +++ head/sys/compat/freebsd32/freebsd32_syscall.h (revision 114988) @@ -1,296 +1,298 @@ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/ia64/ia32/syscalls.master,v 1.21 2003/04/25 15:59:18 jhb Exp + * created from FreeBSD: src/sys/amd64/ia32/syscalls.master,v 1.22 2003/05/14 04:10:49 peter Exp */ #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_ia32_open 5 #define IA32_SYS_close 6 #define IA32_SYS_ia32_wait4 7 /* 8 is obsolete 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_ia32_getfsstat 18 /* 19 is obsolete olseek */ #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_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_ia32_access 33 #define IA32_SYS_ia32_chflags 34 #define IA32_SYS_fchflags 35 #define IA32_SYS_sync 36 #define IA32_SYS_kill 37 #define IA32_SYS_getppid 39 #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 #define IA32_SYS_getgid 47 #define IA32_SYS_getlogin 49 #define IA32_SYS_setlogin 50 #define IA32_SYS_acct 51 #define IA32_SYS_sigpending 52 #define IA32_SYS_ia32_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_ia32_execve 59 #define IA32_SYS_umask 60 #define IA32_SYS_chroot 61 /* 62 is obsolete ofstat */ /* 63 is obsolete ogetkerninfo */ /* 64 is obsolete ogetpagesize */ /* 65 is obsolete omsync */ /* 66 is obsolete ovfork */ /* 67 is obsolete vread */ /* 68 is obsolete vwrite */ #define IA32_SYS_sbrk 69 #define IA32_SYS_sstk 70 /* 71 is obsolete ommap */ #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_ia32_setitimer 83 /* 84 is obsolete owait */ /* 85 is obsolete oswapon */ /* 86 is obsolete ogetitimer */ /* 87 is obsolete ogethostname */ /* 88 is obsolete osethostname */ #define IA32_SYS_getdtablesize 89 #define IA32_SYS_dup2 90 #define IA32_SYS_fcntl 92 #define IA32_SYS_ia32_select 93 #define IA32_SYS_fsync 95 #define IA32_SYS_setpriority 96 #define IA32_SYS_socket 97 #define IA32_SYS_connect 98 #define IA32_SYS_accept 99 #define IA32_SYS_getpriority 100 /* 101 is obsolete osend */ /* 102 is obsolete orecv */ /* 103 is obsolete osigreturn */ #define IA32_SYS_bind 104 #define IA32_SYS_setsockopt 105 #define IA32_SYS_listen 106 /* 107 is obsolete vtimes */ /* 108 is obsolete osigvec */ /* 109 is obsolete osigblock */ /* 110 is obsolete osigsetmask */ /* 111 is obsolete osigsuspend */ /* 112 is obsolete osigstack */ /* 113 is obsolete orecvmsg */ /* 114 is obsolete osendmsg */ /* 115 is obsolete vtrace */ #define IA32_SYS_ia32_gettimeofday 116 #define IA32_SYS_ia32_getrusage 117 #define IA32_SYS_getsockopt 118 #define IA32_SYS_ia32_readv 120 #define IA32_SYS_ia32_writev 121 #define IA32_SYS_ia32_settimeofday 122 #define IA32_SYS_fchown 123 #define IA32_SYS_fchmod 124 #define IA32_SYS_recvfrom 125 #define IA32_SYS_setreuid 126 #define IA32_SYS_setregid 127 #define IA32_SYS_rename 128 /* 129 is obsolete otruncate */ /* 130 is obsolete 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_ia32_utimes 138 /* 139 is obsolete 4.2 sigreturn */ #define IA32_SYS_ia32_adjtime 140 /* 141 is obsolete ogetpeername */ /* 142 is obsolete ogethostid */ /* 143 is obsolete sethostid */ /* 144 is obsolete getrlimit */ /* 145 is obsolete setrlimit */ /* 146 is obsolete killpg */ #define IA32_SYS_setsid 147 #define IA32_SYS_quotactl 148 /* 149 is obsolete oquota */ /* 150 is obsolete ogetsockname */ #define IA32_SYS_getdirentries 156 #define IA32_SYS_ia32_statfs 157 #define IA32_SYS_ia32_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_ia32_semsys 169 #define IA32_SYS_ia32_msgsys 170 #define IA32_SYS_ia32_shmsys 171 #define IA32_SYS_ia32_pread 173 #define IA32_SYS_ia32_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_ia32_stat 188 #define IA32_SYS_ia32_fstat 189 #define IA32_SYS_ia32_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_ia32_mmap 197 #define IA32_SYS___syscall 198 #define IA32_SYS_ia32_lseek 199 #define IA32_SYS_ia32_truncate 200 #define IA32_SYS_ia32_ftruncate 201 #define IA32_SYS_ia32_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_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 /* 336 is old ia32_sendfile */ #define IA32_SYS_kldsym 337 #define IA32_SYS_jail 338 #define IA32_SYS_sigprocmask 340 #define IA32_SYS_sigsuspend 341 -#define IA32_SYS_ia32_sigaction 342 + /* 342 is old ia32_sigaction */ #define IA32_SYS_sigpending 343 -#define IA32_SYS_sigreturn 344 + /* 344 is old ia32_sigreturn */ #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_getresuid 360 #define IA32_SYS_getresgid 361 #define IA32_SYS_kqueue 362 -#define IA32_SYS_kevent 363 +#define IA32_SYS_ia32_kevent 363 #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_eaccess 376 #define IA32_SYS_nmount 378 #define IA32_SYS_kse_exit 379 #define IA32_SYS_kse_wakeup 380 #define IA32_SYS_kse_create 381 #define IA32_SYS_kse_thr_interrupt 382 #define IA32_SYS_kse_release 383 #define IA32_SYS_kenv 390 #define IA32_SYS_lchflags 391 #define IA32_SYS_uuidgen 392 #define IA32_SYS_ia32_sendfile 393 +#define IA32_SYS_ia32_sigreturn 416 +#define IA32_SYS_ia32_sigaction 417 #define IA32_SYS_thr_create 430 #define IA32_SYS_thr_exit 431 #define IA32_SYS_thr_self 432 #define IA32_SYS_thr_kill 433 #define IA32_SYS__umtx_lock 434 #define IA32_SYS__umtx_unlock 435 #define IA32_SYS_jail_attach 436 #define IA32_SYS_MAXSYSCALL 437 Index: head/sys/compat/freebsd32/freebsd32_sysent.c =================================================================== --- head/sys/compat/freebsd32/freebsd32_sysent.c (revision 114987) +++ head/sys/compat/freebsd32/freebsd32_sysent.c (revision 114988) @@ -1,465 +1,465 @@ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/ia64/ia32/syscalls.master,v 1.21 2003/04/25 15:59:18 jhb Exp + * created from FreeBSD: src/sys/amd64/ia32/syscalls.master,v 1.22 2003/05/14 04:10:49 peter Exp */ #include "opt_compat.h" #include #include #include #include -#include -#include +#include +#include #define AS(name) (sizeof(struct name) / sizeof(register_t)) #ifdef COMPAT_FREEBSD4 #define compat4(n, name) n, (sy_call_t *)__CONCAT(freebsd4_,name) #else #define compat4(n, name) 0, (sy_call_t *)nosys #endif /* The casts are bogus but will do for now. */ struct sysent ia32_sysent[] = { { SYF_MPSAFE | 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(ia32_open_args), (sy_call_t *)ia32_open }, /* 5 = ia32_open */ { SYF_MPSAFE | AS(close_args), (sy_call_t *)close }, /* 6 = close */ { SYF_MPSAFE | AS(ia32_wait4_args), (sy_call_t *)ia32_wait4 }, /* 7 = ia32_wait4 */ { 0, (sy_call_t *)nosys }, /* 8 = obsolete 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(ia32_getfsstat_args), (sy_call_t *)ia32_getfsstat }, /* 18 = ia32_getfsstat */ { 0, (sy_call_t *)nosys }, /* 19 = obsolete olseek */ { 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 */ { 0, (sy_call_t *)nosys }, /* 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(ia32_access_args), (sy_call_t *)ia32_access }, /* 33 = ia32_access */ { AS(ia32_chflags_args), (sy_call_t *)ia32_chflags }, /* 34 = ia32_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 */ { 0, (sy_call_t *)nosys }, /* 38 = ostat */ { SYF_MPSAFE | 0, (sy_call_t *)getppid }, /* 39 = getppid */ { 0, (sy_call_t *)nosys }, /* 40 = olstat */ { 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 */ { 0, (sy_call_t *)nosys }, /* 46 = osigaction */ { SYF_MPSAFE | 0, (sy_call_t *)getgid }, /* 47 = getgid */ { 0, (sy_call_t *)nosys }, /* 48 = osigprocmask */ { 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 */ { SYF_MPSAFE | 0, (sy_call_t *)sigpending }, /* 52 = sigpending */ { AS(ia32_sigaltstack_args), (sy_call_t *)ia32_sigaltstack }, /* 53 = ia32_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 */ { AS(ia32_execve_args), (sy_call_t *)ia32_execve }, /* 59 = ia32_execve */ { SYF_MPSAFE | AS(umask_args), (sy_call_t *)umask }, /* 60 = umask */ { AS(chroot_args), (sy_call_t *)chroot }, /* 61 = chroot */ { 0, (sy_call_t *)nosys }, /* 62 = obsolete ofstat */ { 0, (sy_call_t *)nosys }, /* 63 = obsolete ogetkerninfo */ { 0, (sy_call_t *)nosys }, /* 64 = obsolete ogetpagesize */ { 0, (sy_call_t *)nosys }, /* 65 = obsolete omsync */ { 0, (sy_call_t *)nosys }, /* 66 = obsolete ovfork */ { 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 */ { 0, (sy_call_t *)nosys }, /* 71 = obsolete ommap */ { 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 */ { AS(ia32_setitimer_args), (sy_call_t *)ia32_setitimer }, /* 83 = ia32_setitimer */ { 0, (sy_call_t *)nosys }, /* 84 = obsolete owait */ { 0, (sy_call_t *)nosys }, /* 85 = obsolete oswapon */ { 0, (sy_call_t *)nosys }, /* 86 = obsolete ogetitimer */ { 0, (sy_call_t *)nosys }, /* 87 = obsolete ogethostname */ { 0, (sy_call_t *)nosys }, /* 88 = obsolete osethostname */ { 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 */ { AS(ia32_select_args), (sy_call_t *)ia32_select }, /* 93 = ia32_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 */ { SYF_MPSAFE | AS(accept_args), (sy_call_t *)accept }, /* 99 = accept */ { SYF_MPSAFE | AS(getpriority_args), (sy_call_t *)getpriority }, /* 100 = getpriority */ { 0, (sy_call_t *)nosys }, /* 101 = obsolete osend */ { 0, (sy_call_t *)nosys }, /* 102 = obsolete orecv */ { 0, (sy_call_t *)nosys }, /* 103 = obsolete 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 */ { 0, (sy_call_t *)nosys }, /* 108 = obsolete osigvec */ { 0, (sy_call_t *)nosys }, /* 109 = obsolete osigblock */ { 0, (sy_call_t *)nosys }, /* 110 = obsolete osigsetmask */ { 0, (sy_call_t *)nosys }, /* 111 = obsolete osigsuspend */ { 0, (sy_call_t *)nosys }, /* 112 = obsolete osigstack */ { 0, (sy_call_t *)nosys }, /* 113 = obsolete orecvmsg */ { 0, (sy_call_t *)nosys }, /* 114 = obsolete osendmsg */ { 0, (sy_call_t *)nosys }, /* 115 = obsolete vtrace */ { AS(ia32_gettimeofday_args), (sy_call_t *)ia32_gettimeofday }, /* 116 = ia32_gettimeofday */ { AS(ia32_getrusage_args), (sy_call_t *)ia32_getrusage }, /* 117 = ia32_getrusage */ { SYF_MPSAFE | AS(getsockopt_args), (sy_call_t *)getsockopt }, /* 118 = getsockopt */ { 0, (sy_call_t *)nosys }, /* 119 = resuba */ { AS(ia32_readv_args), (sy_call_t *)ia32_readv }, /* 120 = ia32_readv */ { AS(ia32_writev_args), (sy_call_t *)ia32_writev }, /* 121 = ia32_writev */ { AS(ia32_settimeofday_args), (sy_call_t *)ia32_settimeofday }, /* 122 = ia32_settimeofday */ { AS(fchown_args), (sy_call_t *)fchown }, /* 123 = fchown */ { AS(fchmod_args), (sy_call_t *)fchmod }, /* 124 = fchmod */ { SYF_MPSAFE | AS(recvfrom_args), (sy_call_t *)recvfrom }, /* 125 = 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 */ { 0, (sy_call_t *)nosys }, /* 129 = obsolete otruncate */ { 0, (sy_call_t *)nosys }, /* 130 = obsolete 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(ia32_utimes_args), (sy_call_t *)ia32_utimes }, /* 138 = ia32_utimes */ { 0, (sy_call_t *)nosys }, /* 139 = obsolete 4.2 sigreturn */ { AS(ia32_adjtime_args), (sy_call_t *)ia32_adjtime }, /* 140 = ia32_adjtime */ { 0, (sy_call_t *)nosys }, /* 141 = obsolete ogetpeername */ { 0, (sy_call_t *)nosys }, /* 142 = obsolete ogethostid */ { 0, (sy_call_t *)nosys }, /* 143 = obsolete sethostid */ { 0, (sy_call_t *)nosys }, /* 144 = obsolete getrlimit */ { 0, (sy_call_t *)nosys }, /* 145 = obsolete setrlimit */ { 0, (sy_call_t *)nosys }, /* 146 = obsolete killpg */ { SYF_MPSAFE | 0, (sy_call_t *)setsid }, /* 147 = setsid */ { AS(quotactl_args), (sy_call_t *)quotactl }, /* 148 = quotactl */ { 0, (sy_call_t *)nosys }, /* 149 = obsolete oquota */ { 0, (sy_call_t *)nosys }, /* 150 = obsolete ogetsockname */ { 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 */ { 0, (sy_call_t *)nosys }, /* 155 = nfssvc */ { AS(getdirentries_args), (sy_call_t *)getdirentries }, /* 156 = getdirentries */ { AS(ia32_statfs_args), (sy_call_t *)ia32_statfs }, /* 157 = ia32_statfs */ { AS(ia32_fstatfs_args), (sy_call_t *)ia32_fstatfs }, /* 158 = ia32_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 */ { AS(ia32_semsys_args), (sy_call_t *)ia32_semsys }, /* 169 = ia32_semsys */ { AS(ia32_msgsys_args), (sy_call_t *)ia32_msgsys }, /* 170 = ia32_msgsys */ { AS(ia32_shmsys_args), (sy_call_t *)ia32_shmsys }, /* 171 = ia32_shmsys */ { 0, (sy_call_t *)nosys }, /* 172 = nosys */ { AS(ia32_pread_args), (sy_call_t *)ia32_pread }, /* 173 = ia32_pread */ { AS(ia32_pwrite_args), (sy_call_t *)ia32_pwrite }, /* 174 = ia32_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(ia32_stat_args), (sy_call_t *)ia32_stat }, /* 188 = ia32_stat */ { AS(ia32_fstat_args), (sy_call_t *)ia32_fstat }, /* 189 = ia32_fstat */ { AS(ia32_lstat_args), (sy_call_t *)ia32_lstat }, /* 190 = ia32_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 */ { AS(ia32_mmap_args), (sy_call_t *)ia32_mmap }, /* 197 = ia32_mmap */ { 0, (sy_call_t *)nosys }, /* 198 = __syscall */ { AS(ia32_lseek_args), (sy_call_t *)ia32_lseek }, /* 199 = ia32_lseek */ { AS(ia32_truncate_args), (sy_call_t *)ia32_truncate }, /* 200 = ia32_truncate */ { AS(ia32_ftruncate_args), (sy_call_t *)ia32_ftruncate }, /* 201 = ia32_ftruncate */ { SYF_MPSAFE | AS(ia32_sysctl_args), (sy_call_t *)ia32_sysctl }, /* 202 = ia32_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 */ { 0, (sy_call_t *)nosys }, /* 210 = */ { 0, (sy_call_t *)nosys }, /* 211 = */ { 0, (sy_call_t *)nosys }, /* 212 = */ { 0, (sy_call_t *)nosys }, /* 213 = */ { 0, (sy_call_t *)nosys }, /* 214 = */ { 0, (sy_call_t *)nosys }, /* 215 = */ { 0, (sy_call_t *)nosys }, /* 216 = */ { 0, (sy_call_t *)nosys }, /* 217 = */ { 0, (sy_call_t *)nosys }, /* 218 = */ { 0, (sy_call_t *)nosys }, /* 219 = */ { SYF_MPSAFE | AS(__semctl_args), (sy_call_t *)__semctl }, /* 220 = __semctl */ { SYF_MPSAFE | AS(semget_args), (sy_call_t *)semget }, /* 221 = semget */ { SYF_MPSAFE | AS(semop_args), (sy_call_t *)semop }, /* 222 = semop */ { 0, (sy_call_t *)nosys }, /* 223 = semconfig */ { SYF_MPSAFE | AS(msgctl_args), (sy_call_t *)msgctl }, /* 224 = msgctl */ { SYF_MPSAFE | AS(msgget_args), (sy_call_t *)msgget }, /* 225 = msgget */ { SYF_MPSAFE | AS(msgsnd_args), (sy_call_t *)msgsnd }, /* 226 = msgsnd */ { SYF_MPSAFE | AS(msgrcv_args), (sy_call_t *)msgrcv }, /* 227 = msgrcv */ { SYF_MPSAFE | AS(shmat_args), (sy_call_t *)shmat }, /* 228 = shmat */ { SYF_MPSAFE | AS(shmctl_args), (sy_call_t *)shmctl }, /* 229 = shmctl */ { SYF_MPSAFE | AS(shmdt_args), (sy_call_t *)shmdt }, /* 230 = shmdt */ { SYF_MPSAFE | AS(shmget_args), (sy_call_t *)shmget }, /* 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 */ { 0, (sy_call_t *)nosys }, /* 314 = aio_return */ { 0, (sy_call_t *)nosys }, /* 315 = aio_suspend */ { 0, (sy_call_t *)nosys }, /* 316 = aio_cancel */ { 0, (sy_call_t *)nosys }, /* 317 = aio_error */ { 0, (sy_call_t *)nosys }, /* 318 = aio_read */ { 0, (sy_call_t *)nosys }, /* 319 = aio_write */ { 0, (sy_call_t *)nosys }, /* 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 */ { compat4(SYF_MPSAFE | AS(freebsd4_ia32_sendfile_args),ia32_sendfile) }, /* 336 = old ia32_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 */ - { AS(ia32_sigaction_args), (sy_call_t *)ia32_sigaction }, /* 342 = ia32_sigaction */ + { compat4(AS(freebsd4_ia32_sigaction_args),ia32_sigaction) }, /* 342 = old ia32_sigaction */ { SYF_MPSAFE | AS(sigpending_args), (sy_call_t *)sigpending }, /* 343 = sigpending */ - { SYF_MPSAFE | AS(sigreturn_args), (sy_call_t *)sigreturn }, /* 344 = sigreturn */ + { compat4(SYF_MPSAFE | AS(freebsd4_ia32_sigreturn_args),ia32_sigreturn) }, /* 344 = old ia32_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 */ { 0, (sy_call_t *)nosys }, /* 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 */ + { SYF_MPSAFE | AS(ia32_kevent_args), (sy_call_t *)ia32_kevent }, /* 363 = ia32_kevent */ { 0, (sy_call_t *)nosys }, /* 364 = __cap_get_proc */ { 0, (sy_call_t *)nosys }, /* 365 = __cap_set_proc */ { 0, (sy_call_t *)nosys }, /* 366 = __cap_get_fd */ { 0, (sy_call_t *)nosys }, /* 367 = __cap_get_file */ { 0, (sy_call_t *)nosys }, /* 368 = __cap_set_fd */ { 0, (sy_call_t *)nosys }, /* 369 = __cap_set_file */ { 0, (sy_call_t *)nosys }, /* 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 */ { 0, (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 */ { AS(kse_wakeup_args), (sy_call_t *)kse_wakeup }, /* 380 = kse_wakeup */ { AS(kse_create_args), (sy_call_t *)kse_create }, /* 381 = kse_create */ { AS(kse_thr_interrupt_args), (sy_call_t *)kse_thr_interrupt }, /* 382 = kse_thr_interrupt */ { 0, (sy_call_t *)kse_release }, /* 383 = kse_release */ { 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 */ { AS(kenv_args), (sy_call_t *)kenv }, /* 390 = kenv */ { AS(lchflags_args), (sy_call_t *)lchflags }, /* 391 = lchflags */ { AS(uuidgen_args), (sy_call_t *)uuidgen }, /* 392 = uuidgen */ { SYF_MPSAFE | AS(ia32_sendfile_args), (sy_call_t *)ia32_sendfile }, /* 393 = ia32_sendfile */ { 0, (sy_call_t *)nosys }, /* 394 = mac_syscall */ { 0, (sy_call_t *)nosys }, /* 395 = nosys */ { 0, (sy_call_t *)nosys }, /* 396 = nosys */ { 0, (sy_call_t *)nosys }, /* 397 = nosys */ { 0, (sy_call_t *)nosys }, /* 398 = nosys */ { 0, (sy_call_t *)nosys }, /* 399 = nosys */ { 0, (sy_call_t *)nosys }, /* 400 = ksem_close */ { 0, (sy_call_t *)nosys }, /* 401 = ksem_post */ { 0, (sy_call_t *)nosys }, /* 402 = ksem_wait */ { 0, (sy_call_t *)nosys }, /* 403 = ksem_trywait */ { 0, (sy_call_t *)nosys }, /* 404 = ksem_init */ { 0, (sy_call_t *)nosys }, /* 405 = ksem_open */ { 0, (sy_call_t *)nosys }, /* 406 = ksem_unlink */ { 0, (sy_call_t *)nosys }, /* 407 = ksem_getvalue */ { 0, (sy_call_t *)nosys }, /* 408 = ksem_destroy */ { 0, (sy_call_t *)nosys }, /* 409 = __mac_get_pid */ { 0, (sy_call_t *)nosys }, /* 410 = __mac_get_link */ { 0, (sy_call_t *)nosys }, /* 411 = __mac_set_link */ { 0, (sy_call_t *)nosys }, /* 412 = extattr_set_link */ { 0, (sy_call_t *)nosys }, /* 413 = extattr_get_link */ { 0, (sy_call_t *)nosys }, /* 414 = extattr_delete_link */ { 0, (sy_call_t *)nosys }, /* 415 = __mac_execve */ - { 0, (sy_call_t *)nosys }, /* 416 = newsigreturn */ - { 0, (sy_call_t *)nosys }, /* 417 = newsigaction */ + { SYF_MPSAFE | AS(ia32_sigreturn_args), (sy_call_t *)ia32_sigreturn }, /* 416 = ia32_sigreturn */ + { AS(ia32_sigaction_args), (sy_call_t *)ia32_sigaction }, /* 417 = ia32_sigaction */ { 0, (sy_call_t *)nosys }, /* 418 = __xstat */ { 0, (sy_call_t *)nosys }, /* 419 = __xfstat */ { 0, (sy_call_t *)nosys }, /* 420 = __xlstat */ { 0, (sy_call_t *)nosys }, /* 421 = getcontext */ { 0, (sy_call_t *)nosys }, /* 422 = setcontext */ { 0, (sy_call_t *)nosys }, /* 423 = swapcontext */ { 0, (sy_call_t *)nosys }, /* 424 = swapoff */ { 0, (sy_call_t *)nosys }, /* 425 = __acl_get_link */ { 0, (sy_call_t *)nosys }, /* 426 = __acl_set_link */ { 0, (sy_call_t *)nosys }, /* 427 = __acl_delete_link */ { 0, (sy_call_t *)nosys }, /* 428 = __acl_aclcheck_link */ { 0, (sy_call_t *)nosys }, /* 429 = sigwait */ { SYF_MPSAFE | AS(thr_create_args), (sy_call_t *)thr_create }, /* 430 = thr_create */ { SYF_MPSAFE | 0, (sy_call_t *)thr_exit }, /* 431 = thr_exit */ { SYF_MPSAFE | AS(thr_self_args), (sy_call_t *)thr_self }, /* 432 = thr_self */ { SYF_MPSAFE | AS(thr_kill_args), (sy_call_t *)thr_kill }, /* 433 = thr_kill */ { SYF_MPSAFE | AS(_umtx_lock_args), (sy_call_t *)_umtx_lock }, /* 434 = _umtx_lock */ { SYF_MPSAFE | AS(_umtx_unlock_args), (sy_call_t *)_umtx_unlock }, /* 435 = _umtx_unlock */ { SYF_MPSAFE | AS(jail_attach_args), (sy_call_t *)jail_attach }, /* 436 = jail_attach */ };