From 354ba222e6c16e25b505815ef89f1109170dc95b Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 9 Jun 1999 04:50:32 +0000 Subject: [PATCH] Regen --- sys/compat/netbsd32/netbsd32_syscall.h | 58 +++++++--- sys/compat/netbsd32/netbsd32_syscallargs.h | 59 +++++----- sys/compat/netbsd32/netbsd32_syscalls.c | 116 +++++++++---------- sys/compat/netbsd32/netbsd32_sysent.c | 125 ++++++++++----------- 4 files changed, 186 insertions(+), 172 deletions(-) diff --git a/sys/compat/netbsd32/netbsd32_syscall.h b/sys/compat/netbsd32/netbsd32_syscall.h index 9ec32cecd8cc..5710c509f5ae 100644 --- a/sys/compat/netbsd32/netbsd32_syscall.h +++ b/sys/compat/netbsd32/netbsd32_syscall.h @@ -1,10 +1,10 @@ -/* $NetBSD: netbsd32_syscall.h,v 1.9 1999/03/25 16:32:27 mrg Exp $ */ +/* $NetBSD: netbsd32_syscall.h,v 1.10 1999/06/09 04:50:32 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.7 1999/03/25 16:22:50 mrg Exp + * created from NetBSD: syscalls.master,v 1.8 1999/06/09 04:50:11 christos Exp */ /* syscall: "syscall" ret: "int" args: "int" "..." */ @@ -139,6 +139,7 @@ /* syscall: "compat_netbsd32_ktrace" ret: "int" args: "const netbsd32_charp" "int" "int" "int" */ #define netbsd32_SYS_compat_netbsd32_ktrace 45 + /* 45 is excluded compat_netbsd32_ktrace */ /* syscall: "compat_netbsd32_sigaction" ret: "int" args: "int" "const netbsd32_sigactionp_t" "netbsd32_sigactionp_t" */ #define netbsd32_SYS_compat_netbsd32_sigaction 46 @@ -309,9 +310,6 @@ #define netbsd32_SYS_compat_43_compat_netbsd32_osendmsg 114 -/* syscall: "compat_netbsd32_vtrace" ret: "int" args: "int" "int" */ -#define netbsd32_SYS_compat_netbsd32_vtrace 115 - /* 115 is obsolete vtrace */ /* syscall: "compat_netbsd32_gettimeofday" ret: "int" args: "netbsd32_timevalp_t" "netbsd32_timezonep_t" */ #define netbsd32_SYS_compat_netbsd32_gettimeofday 116 @@ -408,6 +406,7 @@ /* syscall: "compat_netbsd32_nfssvc" ret: "int" args: "int" "netbsd32_voidp" */ #define netbsd32_SYS_compat_netbsd32_nfssvc 155 + /* 155 is excluded compat_netbsd32_nfssvc */ #define netbsd32_SYS_compat_43_compat_netbsd32_ogetdirentries 156 /* syscall: "compat_netbsd32_statfs" ret: "int" args: "const netbsd32_charp" "netbsd32_statfsp_t" */ @@ -419,6 +418,7 @@ /* syscall: "compat_netbsd32_getfh" ret: "int" args: "const netbsd32_charp" "netbsd32_fhandlep_t" */ #define netbsd32_SYS_compat_netbsd32_getfh 161 + /* 161 is excluded compat_netbsd32_getfh */ #define netbsd32_SYS_compat_09_compat_netbsd32_ogetdomainname 162 #define netbsd32_SYS_compat_09_compat_netbsd32_osetdomainname 163 @@ -431,12 +431,15 @@ /* syscall: "osemsys" ret: "int" args: "int" "int" "int" "int" "int" */ #define netbsd32_SYS_osemsys 169 + /* 169 is excluded 1.0 semsys */ /* syscall: "omsgsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */ #define netbsd32_SYS_omsgsys 170 + /* 170 is excluded 1.0 msgsys */ /* syscall: "oshmsys" ret: "int" args: "int" "int" "int" "int" */ #define netbsd32_SYS_oshmsys 171 + /* 171 is excluded 1.0 shmsys */ /* syscall: "compat_netbsd32_pread" ret: "netbsd32_ssize_t" args: "int" "netbsd32_voidp" "netbsd32_size_t" "int" "off_t" */ #define netbsd32_SYS_compat_netbsd32_pread 173 @@ -449,6 +452,8 @@ /* syscall: "compat_netbsd32_ntp_adjtime" ret: "int" args: "netbsd32_timexp_t" */ #define netbsd32_SYS_compat_netbsd32_ntp_adjtime 176 + /* 175 is excluded compat_netbsd32_ntp_gettime */ + /* 176 is excluded compat_netbsd32_ntp_adjtime */ /* syscall: "compat_netbsd32_setgid" ret: "int" args: "gid_t" */ #define netbsd32_SYS_compat_netbsd32_setgid 181 @@ -458,18 +463,22 @@ /* syscall: "compat_netbsd32_seteuid" ret: "int" args: "uid_t" */ #define netbsd32_SYS_compat_netbsd32_seteuid 183 -/* syscall: "compat_netbsd32_lfs_bmapv" ret: "int" args: "netbsd32_fsid_tp_t" "netbsd32_block_infop_t" "int" */ -#define netbsd32_SYS_compat_netbsd32_lfs_bmapv 184 +/* syscall: "lfs_bmapv" ret: "int" args: "netbsd32_fsid_tp_t" "netbsd32_block_infop_t" "int" */ +#define netbsd32_SYS_lfs_bmapv 184 -/* syscall: "compat_netbsd32_lfs_markv" ret: "int" args: "netbsd32_fsid_tp_t" "netbsd32_block_infop_t" "int" */ -#define netbsd32_SYS_compat_netbsd32_lfs_markv 185 +/* syscall: "lfs_markv" ret: "int" args: "netbsd32_fsid_tp_t" "netbsd32_block_infop_t" "int" */ +#define netbsd32_SYS_lfs_markv 185 -/* syscall: "compat_netbsd32_lfs_segclean" ret: "int" args: "netbsd32_fsid_tp_t" "netbsd32_u_long" */ -#define netbsd32_SYS_compat_netbsd32_lfs_segclean 186 +/* syscall: "lfs_segclean" ret: "int" args: "netbsd32_fsid_tp_t" "netbsd32_u_long" */ +#define netbsd32_SYS_lfs_segclean 186 -/* syscall: "compat_netbsd32_lfs_segwait" ret: "int" args: "netbsd32_fsid_tp_t" "netbsd32_timevalp_t" */ -#define netbsd32_SYS_compat_netbsd32_lfs_segwait 187 +/* syscall: "lfs_segwait" ret: "int" args: "netbsd32_fsid_tp_t" "netbsd32_timevalp_t" */ +#define netbsd32_SYS_lfs_segwait 187 + /* 184 is excluded compat_netbsd32_sys_lfs_bmapv */ + /* 185 is excluded compat_netbsd32_sys_lfs_markv */ + /* 186 is excluded compat_netbsd32_sys_lfs_segclean */ + /* 187 is excluded compat_netbsd32_sys_lfs_segwait */ #define netbsd32_SYS_compat_12_compat_netbsd32_stat12 188 #define netbsd32_SYS_compat_12_compat_netbsd32_fstat12 189 @@ -529,6 +538,16 @@ /* syscall: "compat_netbsd32_poll" ret: "int" args: "netbsd32_pollfdp_t" "u_int" "int" */ #define netbsd32_SYS_compat_netbsd32_poll 209 + /* 210 is excluded lkmnosys */ + /* 211 is excluded lkmnosys */ + /* 212 is excluded lkmnosys */ + /* 213 is excluded lkmnosys */ + /* 214 is excluded lkmnosys */ + /* 215 is excluded lkmnosys */ + /* 216 is excluded lkmnosys */ + /* 217 is excluded lkmnosys */ + /* 218 is excluded lkmnosys */ + /* 219 is excluded lkmnosys */ /* syscall: "compat_netbsd32___semctl" ret: "int" args: "int" "int" "int" "netbsd32_semunu_t" */ #define netbsd32_SYS_compat_netbsd32___semctl 220 @@ -541,6 +560,10 @@ /* syscall: "compat_netbsd32_semconfig" ret: "int" args: "int" */ #define netbsd32_SYS_compat_netbsd32_semconfig 223 + /* 220 is excluded compat_netbsd32_semctl */ + /* 221 is excluded compat_netbsd32_semget */ + /* 222 is excluded compat_netbsd32_semop */ + /* 223 is excluded compat_netbsd32_semconfig */ /* syscall: "compat_netbsd32_msgctl" ret: "int" args: "int" "int" "netbsd32_msqid_dsp_t" */ #define netbsd32_SYS_compat_netbsd32_msgctl 224 @@ -553,6 +576,10 @@ /* syscall: "compat_netbsd32_msgrcv" ret: "netbsd32_ssize_t" args: "int" "netbsd32_voidp" "netbsd32_size_t" "netbsd32_long" "int" */ #define netbsd32_SYS_compat_netbsd32_msgrcv 227 + /* 224 is excluded compat_netbsd32_msgctl */ + /* 225 is excluded compat_netbsd32_msgget */ + /* 226 is excluded compat_netbsd32_msgsnd */ + /* 227 is excluded compat_netbsd32_msgrcv */ /* syscall: "compat_netbsd32_shmat" ret: "netbsd32_voidp" args: "int" "const netbsd32_voidp" "int" */ #define netbsd32_SYS_compat_netbsd32_shmat 228 @@ -565,6 +592,10 @@ /* syscall: "compat_netbsd32_shmget" ret: "int" args: "netbsd32_key_t" "netbsd32_size_t" "int" */ #define netbsd32_SYS_compat_netbsd32_shmget 231 + /* 228 is excluded compat_netbsd32_shmat */ + /* 229 is excluded compat_netbsd32_shmctl */ + /* 230 is excluded compat_netbsd32_shmdt */ + /* 231 is excluded compat_netbsd32_shmget */ /* syscall: "compat_netbsd32_clock_gettime" ret: "int" args: "netbsd32_clockid_t" "netbsd32_timespecp_t" */ #define netbsd32_SYS_compat_netbsd32_clock_gettime 232 @@ -634,6 +665,7 @@ /* syscall: "compat_netbsd32_fktrace" ret: "int" args: "const int" "int" "int" "int" */ #define netbsd32_SYS_compat_netbsd32_fktrace 288 + /* 288 is excluded compat_netbsd32_fktrace */ /* syscall: "compat_netbsd32_preadv" ret: "netbsd32_ssize_t" args: "int" "const netbsd32_iovecp_t" "int" "int" "off_t" */ #define netbsd32_SYS_compat_netbsd32_preadv 289 diff --git a/sys/compat/netbsd32/netbsd32_syscallargs.h b/sys/compat/netbsd32/netbsd32_syscallargs.h index 9d361836be0d..856060952c7b 100644 --- a/sys/compat/netbsd32/netbsd32_syscallargs.h +++ b/sys/compat/netbsd32/netbsd32_syscallargs.h @@ -1,10 +1,10 @@ -/* $NetBSD: netbsd32_syscallargs.h,v 1.9 1999/03/25 16:32:27 mrg Exp $ */ +/* $NetBSD: netbsd32_syscallargs.h,v 1.10 1999/06/09 04:50:32 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.7 1999/03/25 16:22:50 mrg Exp + * created from NetBSD: syscalls.master,v 1.8 1999/06/09 04:50:11 christos Exp */ #ifndef _netbsd32_SYS__SYSCALLARGS_H_ @@ -517,11 +517,6 @@ struct compat_43_compat_netbsd32_osendmsg_args { syscallarg(int) flags; }; -struct compat_netbsd32_vtrace_args { - syscallarg(int) request; - syscallarg(int) value; -}; - struct compat_netbsd32_gettimeofday_args { syscallarg(netbsd32_timevalp_t) tp; syscallarg(netbsd32_timezonep_t) tzp; @@ -796,24 +791,24 @@ struct compat_netbsd32_seteuid_args { syscallarg(uid_t) euid; }; -struct compat_netbsd32_lfs_bmapv_args { +struct compat_netbsd32_sys_lfs_bmapv_args { syscallarg(netbsd32_fsid_tp_t) fsidp; syscallarg(netbsd32_block_infop_t) blkiov; syscallarg(int) blkcnt; }; -struct compat_netbsd32_lfs_markv_args { +struct compat_netbsd32_sys_lfs_markv_args { syscallarg(netbsd32_fsid_tp_t) fsidp; syscallarg(netbsd32_block_infop_t) blkiov; syscallarg(int) blkcnt; }; -struct compat_netbsd32_lfs_segclean_args { +struct compat_netbsd32_sys_lfs_segclean_args { syscallarg(netbsd32_fsid_tp_t) fsidp; syscallarg(netbsd32_u_long) segment; }; -struct compat_netbsd32_lfs_segwait_args { +struct compat_netbsd32_sys_lfs_segwait_args { syscallarg(netbsd32_fsid_tp_t) fsidp; syscallarg(netbsd32_timevalp_t) tv; }; @@ -1184,7 +1179,7 @@ int compat_netbsd32_dup __P((struct proc *, void *, register_t *)); int sys_pipe __P((struct proc *, void *, register_t *)); int sys_getegid __P((struct proc *, void *, register_t *)); int compat_netbsd32_profil __P((struct proc *, void *, register_t *)); -#ifdef KTRACE +#if defined(KTRACE) || !defined(_KERNEL) int compat_netbsd32_ktrace __P((struct proc *, void *, register_t *)); #else #endif @@ -1256,10 +1251,6 @@ int compat_13_compat_netbsd32_sigsuspend __P((struct proc *, void *, register_t int compat_43_compat_netbsd32_osigstack __P((struct proc *, void *, register_t *)); int compat_43_compat_netbsd32_orecvmsg __P((struct proc *, void *, register_t *)); int compat_43_compat_netbsd32_osendmsg __P((struct proc *, void *, register_t *)); -#ifdef TRACE -int compat_netbsd32_vtrace __P((struct proc *, void *, register_t *)); -#else -#endif int compat_netbsd32_gettimeofday __P((struct proc *, void *, register_t *)); int compat_netbsd32_getrusage __P((struct proc *, void *, register_t *)); int compat_netbsd32_getsockopt __P((struct proc *, void *, register_t *)); @@ -1299,14 +1290,14 @@ int sys_setsid __P((struct proc *, void *, register_t *)); int compat_netbsd32_quotactl __P((struct proc *, void *, register_t *)); int compat_43_sys_quota __P((struct proc *, void *, register_t *)); int compat_43_compat_netbsd32_ogetsockname __P((struct proc *, void *, register_t *)); -#if defined(NFS) || defined(NFSSERVER) +#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) int compat_netbsd32_nfssvc __P((struct proc *, void *, register_t *)); #else #endif int compat_43_compat_netbsd32_ogetdirentries __P((struct proc *, void *, register_t *)); int compat_netbsd32_statfs __P((struct proc *, void *, register_t *)); int compat_netbsd32_fstatfs __P((struct proc *, void *, register_t *)); -#if defined(NFS) || defined(NFSSERVER) +#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) int compat_netbsd32_getfh __P((struct proc *, void *, register_t *)); #else #endif @@ -1314,21 +1305,21 @@ int compat_09_compat_netbsd32_ogetdomainname __P((struct proc *, void *, registe int compat_09_compat_netbsd32_osetdomainname __P((struct proc *, void *, register_t *)); int compat_09_compat_netbsd32_uname __P((struct proc *, void *, register_t *)); int compat_netbsd32_sysarch __P((struct proc *, void *, register_t *)); -#if defined(SYSVSEM) && !defined(alpha) && defined(COMPAT_10) +#if (defined(SYSVSEM) || !defined(_KERNEL) && !defined(alpha) && defined(COMPAT_10) int compat_netbsd32_compat_10_sys_semsys __P((struct proc *, void *, register_t *)); #else #endif -#if defined(SYSVMSG) && !defined(alpha) && defined(COMPAT_10) +#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10) int compat_netbsd32_compat_10_sys_msgsys __P((struct proc *, void *, register_t *)); #else #endif -#if defined(SYSVSHM) && !defined(alpha) && defined(COMPAT_10) +#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10) int compat_netbsd32_compat_10_sys_shmsys __P((struct proc *, void *, register_t *)); #else #endif int compat_netbsd32_pread __P((struct proc *, void *, register_t *)); int compat_netbsd32_pwrite __P((struct proc *, void *, register_t *)); -#ifdef NTP +#if defined(NTP) && !defined(_KERNEL) int compat_netbsd32_ntp_gettime __P((struct proc *, void *, register_t *)); int compat_netbsd32_ntp_adjtime __P((struct proc *, void *, register_t *)); #else @@ -1336,11 +1327,11 @@ int compat_netbsd32_ntp_adjtime __P((struct proc *, void *, register_t *)); int compat_netbsd32_setgid __P((struct proc *, void *, register_t *)); int compat_netbsd32_setegid __P((struct proc *, void *, register_t *)); int compat_netbsd32_seteuid __P((struct proc *, void *, register_t *)); -#ifdef LFS -int compat_netbsd32_lfs_bmapv __P((struct proc *, void *, register_t *)); -int compat_netbsd32_lfs_markv __P((struct proc *, void *, register_t *)); -int compat_netbsd32_lfs_segclean __P((struct proc *, void *, register_t *)); -int compat_netbsd32_lfs_segwait __P((struct proc *, void *, register_t *)); +#if defined(LFS) || !defined(_KERNEL) +int compat_netbsd32_sys_lfs_bmapv __P((struct proc *, void *, register_t *)); +int compat_netbsd32_sys_lfs_markv __P((struct proc *, void *, register_t *)); +int compat_netbsd32_sys_lfs_segclean __P((struct proc *, void *, register_t *)); +int compat_netbsd32_sys_lfs_segwait __P((struct proc *, void *, register_t *)); #else #endif int compat_12_compat_netbsd32_stat12 __P((struct proc *, void *, register_t *)); @@ -1363,7 +1354,7 @@ int compat_netbsd32_futimes __P((struct proc *, void *, register_t *)); int compat_netbsd32_getpgid __P((struct proc *, void *, register_t *)); int compat_netbsd32_reboot __P((struct proc *, void *, register_t *)); int compat_netbsd32_poll __P((struct proc *, void *, register_t *)); -#ifdef LKM +#if defined(LKM) || !defined(_KERNEL) int sys_lkmnosys __P((struct proc *, void *, register_t *)); int sys_lkmnosys __P((struct proc *, void *, register_t *)); int sys_lkmnosys __P((struct proc *, void *, register_t *)); @@ -1374,23 +1365,23 @@ int sys_lkmnosys __P((struct proc *, void *, register_t *)); int sys_lkmnosys __P((struct proc *, void *, register_t *)); int sys_lkmnosys __P((struct proc *, void *, register_t *)); int sys_lkmnosys __P((struct proc *, void *, register_t *)); -#else /* !LKM */ -#endif /* !LKM */ -#ifdef SYSVSEM +#else /* !LKM || !_KERNEL */ +#endif /* !LKM || !_KERNEL */ +#if defined(SYSVSEM) || !defined(_KERNEL) int compat_netbsd32___semctl __P((struct proc *, void *, register_t *)); int compat_netbsd32_semget __P((struct proc *, void *, register_t *)); int compat_netbsd32_semop __P((struct proc *, void *, register_t *)); int compat_netbsd32_semconfig __P((struct proc *, void *, register_t *)); #else #endif -#ifdef SYSVMSG +#if defined(SYSVMSG) || !defined(_KERNEL) int compat_netbsd32_msgctl __P((struct proc *, void *, register_t *)); int compat_netbsd32_msgget __P((struct proc *, void *, register_t *)); int compat_netbsd32_msgsnd __P((struct proc *, void *, register_t *)); int compat_netbsd32_msgrcv __P((struct proc *, void *, register_t *)); #else #endif -#ifdef SYSVSHM +#if defined(SYSVSHM) || !defined(_KERNEL) int compat_netbsd32_shmat __P((struct proc *, void *, register_t *)); int compat_netbsd32_shmctl __P((struct proc *, void *, register_t *)); int compat_netbsd32_shmdt __P((struct proc *, void *, register_t *)); @@ -1419,7 +1410,7 @@ int compat_netbsd32___posix_chown __P((struct proc *, void *, register_t *)); int compat_netbsd32___posix_fchown __P((struct proc *, void *, register_t *)); int compat_netbsd32___posix_lchown __P((struct proc *, void *, register_t *)); int compat_netbsd32_getsid __P((struct proc *, void *, register_t *)); -#ifdef KTRACE +#if defined(KTRACE) || !defined(_KERNEL) int compat_netbsd32_fktrace __P((struct proc *, void *, register_t *)); #else #endif diff --git a/sys/compat/netbsd32/netbsd32_syscalls.c b/sys/compat/netbsd32/netbsd32_syscalls.c index 089d367ddd25..903cbc76e5b8 100644 --- a/sys/compat/netbsd32/netbsd32_syscalls.c +++ b/sys/compat/netbsd32/netbsd32_syscalls.c @@ -1,10 +1,10 @@ -/* $NetBSD: netbsd32_syscalls.c,v 1.9 1999/03/25 16:32:27 mrg Exp $ */ +/* $NetBSD: netbsd32_syscalls.c,v 1.10 1999/06/09 04:50:32 christos Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.7 1999/03/25 16:22:50 mrg Exp + * created from NetBSD: syscalls.master,v 1.8 1999/06/09 04:50:11 christos Exp */ #if defined(_KERNEL) && !defined(_LKM) @@ -71,10 +71,10 @@ char *netbsd32_syscallnames[] = { "pipe", /* 42 = pipe */ "getegid", /* 43 = getegid */ "compat_netbsd32_profil", /* 44 = compat_netbsd32_profil */ -#ifdef KTRACE +#if defined(KTRACE) || !defined(_KERNEL) "compat_netbsd32_ktrace", /* 45 = compat_netbsd32_ktrace */ #else - "#45 (unimplemented compat_netbsd32_ktrace)", /* 45 = unimplemented compat_netbsd32_ktrace */ + "#45 (excluded compat_netbsd32_ktrace)", /* 45 = excluded compat_netbsd32_ktrace */ #endif "compat_netbsd32_sigaction", /* 46 = compat_netbsd32_sigaction */ "getgid", /* 47 = getgid */ @@ -154,11 +154,7 @@ char *netbsd32_syscallnames[] = { "compat_43_compat_netbsd32_osigstack", /* 112 = compat_43 compat_netbsd32_osigstack */ "compat_43_compat_netbsd32_orecvmsg", /* 113 = compat_43 compat_netbsd32_orecvmsg */ "compat_43_compat_netbsd32_osendmsg", /* 114 = compat_43 compat_netbsd32_osendmsg */ -#ifdef TRACE - "compat_netbsd32_vtrace", /* 115 = compat_netbsd32_vtrace */ -#else "#115 (obsolete vtrace)", /* 115 = obsolete vtrace */ -#endif "compat_netbsd32_gettimeofday", /* 116 = compat_netbsd32_gettimeofday */ "compat_netbsd32_getrusage", /* 117 = compat_netbsd32_getrusage */ "compat_netbsd32_getsockopt", /* 118 = compat_netbsd32_getsockopt */ @@ -206,20 +202,20 @@ char *netbsd32_syscallnames[] = { "#152 (unimplemented)", /* 152 = unimplemented */ "#153 (unimplemented)", /* 153 = unimplemented */ "#154 (unimplemented)", /* 154 = unimplemented */ -#if defined(NFS) || defined(NFSSERVER) +#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) "compat_netbsd32_nfssvc", /* 155 = compat_netbsd32_nfssvc */ #else - "#155 (unimplemented)", /* 155 = unimplemented */ + "#155 (excluded compat_netbsd32_nfssvc)", /* 155 = excluded compat_netbsd32_nfssvc */ #endif "compat_43_compat_netbsd32_ogetdirentries", /* 156 = compat_43 compat_netbsd32_ogetdirentries */ "compat_netbsd32_statfs", /* 157 = compat_netbsd32_statfs */ "compat_netbsd32_fstatfs", /* 158 = compat_netbsd32_fstatfs */ "#159 (unimplemented)", /* 159 = unimplemented */ "#160 (unimplemented)", /* 160 = unimplemented */ -#if defined(NFS) || defined(NFSSERVER) +#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) "compat_netbsd32_getfh", /* 161 = compat_netbsd32_getfh */ #else - "#161 (unimplemented compat_netbsd32_getfh)", /* 161 = unimplemented compat_netbsd32_getfh */ + "#161 (excluded compat_netbsd32_getfh)", /* 161 = excluded compat_netbsd32_getfh */ #endif "compat_09_compat_netbsd32_ogetdomainname", /* 162 = compat_09 compat_netbsd32_ogetdomainname */ "compat_09_compat_netbsd32_osetdomainname", /* 163 = compat_09 compat_netbsd32_osetdomainname */ @@ -228,30 +224,30 @@ char *netbsd32_syscallnames[] = { "#166 (unimplemented)", /* 166 = unimplemented */ "#167 (unimplemented)", /* 167 = unimplemented */ "#168 (unimplemented)", /* 168 = unimplemented */ -#if defined(SYSVSEM) && !defined(alpha) && defined(COMPAT_10) +#if (defined(SYSVSEM) || !defined(_KERNEL) && !defined(alpha) && defined(COMPAT_10) "osemsys", /* 169 = osemsys */ #else - "#169 (unimplemented 1.0 semsys)", /* 169 = unimplemented 1.0 semsys */ + "#169 (excluded 1.0 semsys)", /* 169 = excluded 1.0 semsys */ #endif -#if defined(SYSVMSG) && !defined(alpha) && defined(COMPAT_10) +#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10) "omsgsys", /* 170 = omsgsys */ #else - "#170 (unimplemented 1.0 msgsys)", /* 170 = unimplemented 1.0 msgsys */ + "#170 (excluded 1.0 msgsys)", /* 170 = excluded 1.0 msgsys */ #endif -#if defined(SYSVSHM) && !defined(alpha) && defined(COMPAT_10) +#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10) "oshmsys", /* 171 = oshmsys */ #else - "#171 (unimplemented 1.0 shmsys)", /* 171 = unimplemented 1.0 shmsys */ + "#171 (excluded 1.0 shmsys)", /* 171 = excluded 1.0 shmsys */ #endif "#172 (unimplemented)", /* 172 = unimplemented */ "compat_netbsd32_pread", /* 173 = compat_netbsd32_pread */ "compat_netbsd32_pwrite", /* 174 = compat_netbsd32_pwrite */ -#ifdef NTP +#if defined(NTP) && !defined(_KERNEL) "compat_netbsd32_ntp_gettime", /* 175 = compat_netbsd32_ntp_gettime */ "compat_netbsd32_ntp_adjtime", /* 176 = compat_netbsd32_ntp_adjtime */ #else - "#175 (unimplemented compat_netbsd32_ntp_gettime)", /* 175 = unimplemented compat_netbsd32_ntp_gettime */ - "#176 (unimplemented compat_netbsd32_ntp_adjtime)", /* 176 = unimplemented compat_netbsd32_ntp_adjtime */ + "#175 (excluded compat_netbsd32_ntp_gettime)", /* 175 = excluded compat_netbsd32_ntp_gettime */ + "#176 (excluded compat_netbsd32_ntp_adjtime)", /* 176 = excluded compat_netbsd32_ntp_adjtime */ #endif "#177 (unimplemented)", /* 177 = unimplemented */ "#178 (unimplemented)", /* 178 = unimplemented */ @@ -260,16 +256,16 @@ char *netbsd32_syscallnames[] = { "compat_netbsd32_setgid", /* 181 = compat_netbsd32_setgid */ "compat_netbsd32_setegid", /* 182 = compat_netbsd32_setegid */ "compat_netbsd32_seteuid", /* 183 = compat_netbsd32_seteuid */ -#ifdef LFS - "compat_netbsd32_lfs_bmapv", /* 184 = compat_netbsd32_lfs_bmapv */ - "compat_netbsd32_lfs_markv", /* 185 = compat_netbsd32_lfs_markv */ - "compat_netbsd32_lfs_segclean", /* 186 = compat_netbsd32_lfs_segclean */ - "compat_netbsd32_lfs_segwait", /* 187 = compat_netbsd32_lfs_segwait */ +#if defined(LFS) || !defined(_KERNEL) + "lfs_bmapv", /* 184 = lfs_bmapv */ + "lfs_markv", /* 185 = lfs_markv */ + "lfs_segclean", /* 186 = lfs_segclean */ + "lfs_segwait", /* 187 = lfs_segwait */ #else - "#184 (unimplemented)", /* 184 = unimplemented */ - "#185 (unimplemented)", /* 185 = unimplemented */ - "#186 (unimplemented)", /* 186 = unimplemented */ - "#187 (unimplemented)", /* 187 = unimplemented */ + "#184 (excluded compat_netbsd32_sys_lfs_bmapv)", /* 184 = excluded compat_netbsd32_sys_lfs_bmapv */ + "#185 (excluded compat_netbsd32_sys_lfs_markv)", /* 185 = excluded compat_netbsd32_sys_lfs_markv */ + "#186 (excluded compat_netbsd32_sys_lfs_segclean)", /* 186 = excluded compat_netbsd32_sys_lfs_segclean */ + "#187 (excluded compat_netbsd32_sys_lfs_segwait)", /* 187 = excluded compat_netbsd32_sys_lfs_segwait */ #endif "compat_12_compat_netbsd32_stat12", /* 188 = compat_12 compat_netbsd32_stat12 */ "compat_12_compat_netbsd32_fstat12", /* 189 = compat_12 compat_netbsd32_fstat12 */ @@ -293,7 +289,7 @@ char *netbsd32_syscallnames[] = { "compat_netbsd32_getpgid", /* 207 = compat_netbsd32_getpgid */ "compat_netbsd32_reboot", /* 208 = compat_netbsd32_reboot */ "compat_netbsd32_poll", /* 209 = compat_netbsd32_poll */ -#ifdef LKM +#if defined(LKM) || !defined(_KERNEL) "lkmnosys", /* 210 = lkmnosys */ "lkmnosys", /* 211 = lkmnosys */ "lkmnosys", /* 212 = lkmnosys */ @@ -304,50 +300,50 @@ char *netbsd32_syscallnames[] = { "lkmnosys", /* 217 = lkmnosys */ "lkmnosys", /* 218 = lkmnosys */ "lkmnosys", /* 219 = lkmnosys */ -#else /* !LKM */ - "#210 (unimplemented)", /* 210 = unimplemented */ - "#211 (unimplemented)", /* 211 = unimplemented */ - "#212 (unimplemented)", /* 212 = unimplemented */ - "#213 (unimplemented)", /* 213 = unimplemented */ - "#214 (unimplemented)", /* 214 = unimplemented */ - "#215 (unimplemented)", /* 215 = unimplemented */ - "#216 (unimplemented)", /* 216 = unimplemented */ - "#217 (unimplemented)", /* 217 = unimplemented */ - "#218 (unimplemented)", /* 218 = unimplemented */ - "#219 (unimplemented)", /* 219 = unimplemented */ -#endif /* !LKM */ -#ifdef SYSVSEM +#else /* !LKM || !_KERNEL */ + "#210 (excluded lkmnosys)", /* 210 = excluded lkmnosys */ + "#211 (excluded lkmnosys)", /* 211 = excluded lkmnosys */ + "#212 (excluded lkmnosys)", /* 212 = excluded lkmnosys */ + "#213 (excluded lkmnosys)", /* 213 = excluded lkmnosys */ + "#214 (excluded lkmnosys)", /* 214 = excluded lkmnosys */ + "#215 (excluded lkmnosys)", /* 215 = excluded lkmnosys */ + "#216 (excluded lkmnosys)", /* 216 = excluded lkmnosys */ + "#217 (excluded lkmnosys)", /* 217 = excluded lkmnosys */ + "#218 (excluded lkmnosys)", /* 218 = excluded lkmnosys */ + "#219 (excluded lkmnosys)", /* 219 = excluded lkmnosys */ +#endif /* !LKM || !_KERNEL */ +#if defined(SYSVSEM) || !defined(_KERNEL) "compat_netbsd32___semctl", /* 220 = compat_netbsd32___semctl */ "compat_netbsd32_semget", /* 221 = compat_netbsd32_semget */ "compat_netbsd32_semop", /* 222 = compat_netbsd32_semop */ "compat_netbsd32_semconfig", /* 223 = compat_netbsd32_semconfig */ #else - "#220 (unimplemented compat_netbsd32_semctl)", /* 220 = unimplemented compat_netbsd32_semctl */ - "#221 (unimplemented compat_netbsd32_semget)", /* 221 = unimplemented compat_netbsd32_semget */ - "#222 (unimplemented compat_netbsd32_semop)", /* 222 = unimplemented compat_netbsd32_semop */ - "#223 (unimplemented compat_netbsd32_semconfig)", /* 223 = unimplemented compat_netbsd32_semconfig */ + "#220 (excluded compat_netbsd32_semctl)", /* 220 = excluded compat_netbsd32_semctl */ + "#221 (excluded compat_netbsd32_semget)", /* 221 = excluded compat_netbsd32_semget */ + "#222 (excluded compat_netbsd32_semop)", /* 222 = excluded compat_netbsd32_semop */ + "#223 (excluded compat_netbsd32_semconfig)", /* 223 = excluded compat_netbsd32_semconfig */ #endif -#ifdef SYSVMSG +#if defined(SYSVMSG) || !defined(_KERNEL) "compat_netbsd32_msgctl", /* 224 = compat_netbsd32_msgctl */ "compat_netbsd32_msgget", /* 225 = compat_netbsd32_msgget */ "compat_netbsd32_msgsnd", /* 226 = compat_netbsd32_msgsnd */ "compat_netbsd32_msgrcv", /* 227 = compat_netbsd32_msgrcv */ #else - "#224 (unimplemented compat_netbsd32_msgctl)", /* 224 = unimplemented compat_netbsd32_msgctl */ - "#225 (unimplemented compat_netbsd32_msgget)", /* 225 = unimplemented compat_netbsd32_msgget */ - "#226 (unimplemented compat_netbsd32_msgsnd)", /* 226 = unimplemented compat_netbsd32_msgsnd */ - "#227 (unimplemented compat_netbsd32_msgrcv)", /* 227 = unimplemented compat_netbsd32_msgrcv */ + "#224 (excluded compat_netbsd32_msgctl)", /* 224 = excluded compat_netbsd32_msgctl */ + "#225 (excluded compat_netbsd32_msgget)", /* 225 = excluded compat_netbsd32_msgget */ + "#226 (excluded compat_netbsd32_msgsnd)", /* 226 = excluded compat_netbsd32_msgsnd */ + "#227 (excluded compat_netbsd32_msgrcv)", /* 227 = excluded compat_netbsd32_msgrcv */ #endif -#ifdef SYSVSHM +#if defined(SYSVSHM) || !defined(_KERNEL) "compat_netbsd32_shmat", /* 228 = compat_netbsd32_shmat */ "compat_netbsd32_shmctl", /* 229 = compat_netbsd32_shmctl */ "compat_netbsd32_shmdt", /* 230 = compat_netbsd32_shmdt */ "compat_netbsd32_shmget", /* 231 = compat_netbsd32_shmget */ #else - "#228 (unimplemented compat_netbsd32_shmat)", /* 228 = unimplemented compat_netbsd32_shmat */ - "#229 (unimplemented compat_netbsd32_shmctl)", /* 229 = unimplemented compat_netbsd32_shmctl */ - "#230 (unimplemented compat_netbsd32_shmdt)", /* 230 = unimplemented compat_netbsd32_shmdt */ - "#231 (unimplemented compat_netbsd32_shmget)", /* 231 = unimplemented compat_netbsd32_shmget */ + "#228 (excluded compat_netbsd32_shmat)", /* 228 = excluded compat_netbsd32_shmat */ + "#229 (excluded compat_netbsd32_shmctl)", /* 229 = excluded compat_netbsd32_shmctl */ + "#230 (excluded compat_netbsd32_shmdt)", /* 230 = excluded compat_netbsd32_shmdt */ + "#231 (excluded compat_netbsd32_shmget)", /* 231 = excluded compat_netbsd32_shmget */ #endif "compat_netbsd32_clock_gettime", /* 232 = compat_netbsd32_clock_gettime */ "compat_netbsd32_clock_settime", /* 233 = compat_netbsd32_clock_settime */ @@ -405,10 +401,10 @@ char *netbsd32_syscallnames[] = { "compat_netbsd32___posix_lchown", /* 285 = compat_netbsd32___posix_lchown */ "compat_netbsd32_getsid", /* 286 = compat_netbsd32_getsid */ "#287 (unimplemented)", /* 287 = unimplemented */ -#ifdef KTRACE +#if defined(KTRACE) || !defined(_KERNEL) "compat_netbsd32_fktrace", /* 288 = compat_netbsd32_fktrace */ #else - "#288 (unimplemented)", /* 288 = unimplemented */ + "#288 (excluded compat_netbsd32_fktrace)", /* 288 = excluded compat_netbsd32_fktrace */ #endif "compat_netbsd32_preadv", /* 289 = compat_netbsd32_preadv */ "compat_netbsd32_pwritev", /* 290 = compat_netbsd32_pwritev */ diff --git a/sys/compat/netbsd32/netbsd32_sysent.c b/sys/compat/netbsd32/netbsd32_sysent.c index ac6b4a2eb1aa..7b889e6744bc 100644 --- a/sys/compat/netbsd32/netbsd32_sysent.c +++ b/sys/compat/netbsd32/netbsd32_sysent.c @@ -1,10 +1,10 @@ -/* $NetBSD: netbsd32_sysent.c,v 1.9 1999/03/25 16:32:27 mrg Exp $ */ +/* $NetBSD: netbsd32_sysent.c,v 1.10 1999/06/09 04:50:32 christos Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.7 1999/03/25 16:22:50 mrg Exp + * created from NetBSD: syscalls.master,v 1.8 1999/06/09 04:50:11 christos Exp */ #include "opt_ktrace.h" @@ -152,12 +152,12 @@ struct sysent netbsd32_sysent[] = { sys_getegid }, /* 43 = getegid */ { 4, s(struct compat_netbsd32_profil_args), compat_netbsd32_profil }, /* 44 = compat_netbsd32_profil */ -#ifdef KTRACE +#if defined(KTRACE) || !defined(_KERNEL) { 4, s(struct compat_netbsd32_ktrace_args), compat_netbsd32_ktrace }, /* 45 = compat_netbsd32_ktrace */ #else { 0, 0, - sys_nosys }, /* 45 = unimplemented compat_netbsd32_ktrace */ + sys_nosys }, /* 45 = excluded compat_netbsd32_ktrace */ #endif { 3, s(struct compat_netbsd32_sigaction_args), compat_netbsd32_sigaction }, /* 46 = compat_netbsd32_sigaction */ @@ -309,13 +309,8 @@ struct sysent netbsd32_sysent[] = { compat_43(compat_netbsd32_orecvmsg) },/* 113 = compat_43 compat_netbsd32_orecvmsg */ { 3, s(struct compat_43_compat_netbsd32_osendmsg_args), compat_43(compat_netbsd32_osendmsg) },/* 114 = compat_43 compat_netbsd32_osendmsg */ -#ifdef TRACE - { 2, s(struct compat_netbsd32_vtrace_args), - compat_netbsd32_vtrace }, /* 115 = compat_netbsd32_vtrace */ -#else { 0, 0, sys_nosys }, /* 115 = obsolete vtrace */ -#endif { 2, s(struct compat_netbsd32_gettimeofday_args), compat_netbsd32_gettimeofday }, /* 116 = compat_netbsd32_gettimeofday */ { 2, s(struct compat_netbsd32_getrusage_args), @@ -404,12 +399,12 @@ struct sysent netbsd32_sysent[] = { sys_nosys }, /* 153 = unimplemented */ { 0, 0, sys_nosys }, /* 154 = unimplemented */ -#if defined(NFS) || defined(NFSSERVER) +#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) { 2, s(struct compat_netbsd32_nfssvc_args), compat_netbsd32_nfssvc }, /* 155 = compat_netbsd32_nfssvc */ #else { 0, 0, - sys_nosys }, /* 155 = unimplemented */ + sys_nosys }, /* 155 = excluded compat_netbsd32_nfssvc */ #endif { 4, s(struct compat_43_compat_netbsd32_ogetdirentries_args), compat_43(compat_netbsd32_ogetdirentries) },/* 156 = compat_43 compat_netbsd32_ogetdirentries */ @@ -421,12 +416,12 @@ struct sysent netbsd32_sysent[] = { sys_nosys }, /* 159 = unimplemented */ { 0, 0, sys_nosys }, /* 160 = unimplemented */ -#if defined(NFS) || defined(NFSSERVER) +#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) { 2, s(struct compat_netbsd32_getfh_args), compat_netbsd32_getfh }, /* 161 = compat_netbsd32_getfh */ #else { 0, 0, - sys_nosys }, /* 161 = unimplemented compat_netbsd32_getfh */ + sys_nosys }, /* 161 = excluded compat_netbsd32_getfh */ #endif { 2, s(struct compat_09_compat_netbsd32_ogetdomainname_args), compat_09(compat_netbsd32_ogetdomainname) },/* 162 = compat_09 compat_netbsd32_ogetdomainname */ @@ -442,26 +437,26 @@ struct sysent netbsd32_sysent[] = { sys_nosys }, /* 167 = unimplemented */ { 0, 0, sys_nosys }, /* 168 = unimplemented */ -#if defined(SYSVSEM) && !defined(alpha) && defined(COMPAT_10) +#if (defined(SYSVSEM) || !defined(_KERNEL) && !defined(alpha) && defined(COMPAT_10) { 5, s(struct compat_netbsd32_compat_10_sys_semsys_args), compat_netbsd32_compat_10_sys_semsys },/* 169 = osemsys */ #else { 0, 0, - sys_nosys }, /* 169 = unimplemented 1.0 semsys */ + sys_nosys }, /* 169 = excluded 1.0 semsys */ #endif -#if defined(SYSVMSG) && !defined(alpha) && defined(COMPAT_10) +#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10) { 6, s(struct compat_netbsd32_compat_10_sys_msgsys_args), compat_netbsd32_compat_10_sys_msgsys },/* 170 = omsgsys */ #else { 0, 0, - sys_nosys }, /* 170 = unimplemented 1.0 msgsys */ + sys_nosys }, /* 170 = excluded 1.0 msgsys */ #endif -#if defined(SYSVSHM) && !defined(alpha) && defined(COMPAT_10) +#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10) { 4, s(struct compat_netbsd32_compat_10_sys_shmsys_args), compat_netbsd32_compat_10_sys_shmsys },/* 171 = oshmsys */ #else { 0, 0, - sys_nosys }, /* 171 = unimplemented 1.0 shmsys */ + sys_nosys }, /* 171 = excluded 1.0 shmsys */ #endif { 0, 0, sys_nosys }, /* 172 = unimplemented */ @@ -469,16 +464,16 @@ struct sysent netbsd32_sysent[] = { compat_netbsd32_pread }, /* 173 = compat_netbsd32_pread */ { 5, s(struct compat_netbsd32_pwrite_args), compat_netbsd32_pwrite }, /* 174 = compat_netbsd32_pwrite */ -#ifdef NTP +#if defined(NTP) && !defined(_KERNEL) { 1, s(struct compat_netbsd32_ntp_gettime_args), compat_netbsd32_ntp_gettime }, /* 175 = compat_netbsd32_ntp_gettime */ { 1, s(struct compat_netbsd32_ntp_adjtime_args), compat_netbsd32_ntp_adjtime }, /* 176 = compat_netbsd32_ntp_adjtime */ #else { 0, 0, - sys_nosys }, /* 175 = unimplemented compat_netbsd32_ntp_gettime */ + sys_nosys }, /* 175 = excluded compat_netbsd32_ntp_gettime */ { 0, 0, - sys_nosys }, /* 176 = unimplemented compat_netbsd32_ntp_adjtime */ + sys_nosys }, /* 176 = excluded compat_netbsd32_ntp_adjtime */ #endif { 0, 0, sys_nosys }, /* 177 = unimplemented */ @@ -494,24 +489,24 @@ struct sysent netbsd32_sysent[] = { compat_netbsd32_setegid }, /* 182 = compat_netbsd32_setegid */ { 1, s(struct compat_netbsd32_seteuid_args), compat_netbsd32_seteuid }, /* 183 = compat_netbsd32_seteuid */ -#ifdef LFS - { 3, s(struct compat_netbsd32_lfs_bmapv_args), - compat_netbsd32_lfs_bmapv }, /* 184 = compat_netbsd32_lfs_bmapv */ - { 3, s(struct compat_netbsd32_lfs_markv_args), - compat_netbsd32_lfs_markv }, /* 185 = compat_netbsd32_lfs_markv */ - { 2, s(struct compat_netbsd32_lfs_segclean_args), - compat_netbsd32_lfs_segclean }, /* 186 = compat_netbsd32_lfs_segclean */ - { 2, s(struct compat_netbsd32_lfs_segwait_args), - compat_netbsd32_lfs_segwait }, /* 187 = compat_netbsd32_lfs_segwait */ +#if defined(LFS) || !defined(_KERNEL) + { 3, s(struct compat_netbsd32_sys_lfs_bmapv_args), + compat_netbsd32_sys_lfs_bmapv }, /* 184 = lfs_bmapv */ + { 3, s(struct compat_netbsd32_sys_lfs_markv_args), + compat_netbsd32_sys_lfs_markv }, /* 185 = lfs_markv */ + { 2, s(struct compat_netbsd32_sys_lfs_segclean_args), + compat_netbsd32_sys_lfs_segclean }, /* 186 = lfs_segclean */ + { 2, s(struct compat_netbsd32_sys_lfs_segwait_args), + compat_netbsd32_sys_lfs_segwait }, /* 187 = lfs_segwait */ #else { 0, 0, - sys_nosys }, /* 184 = unimplemented */ + sys_nosys }, /* 184 = excluded compat_netbsd32_sys_lfs_bmapv */ { 0, 0, - sys_nosys }, /* 185 = unimplemented */ + sys_nosys }, /* 185 = excluded compat_netbsd32_sys_lfs_markv */ { 0, 0, - sys_nosys }, /* 186 = unimplemented */ + sys_nosys }, /* 186 = excluded compat_netbsd32_sys_lfs_segclean */ { 0, 0, - sys_nosys }, /* 187 = unimplemented */ + sys_nosys }, /* 187 = excluded compat_netbsd32_sys_lfs_segwait */ #endif { 2, s(struct compat_12_compat_netbsd32_stat12_args), compat_12(compat_netbsd32_stat12) },/* 188 = compat_12 compat_netbsd32_stat12 */ @@ -557,7 +552,7 @@ struct sysent netbsd32_sysent[] = { compat_netbsd32_reboot }, /* 208 = compat_netbsd32_reboot */ { 3, s(struct compat_netbsd32_poll_args), compat_netbsd32_poll }, /* 209 = compat_netbsd32_poll */ -#ifdef LKM +#if defined(LKM) || !defined(_KERNEL) { 0, 0, sys_lkmnosys }, /* 210 = lkmnosys */ { 0, 0, @@ -578,29 +573,29 @@ struct sysent netbsd32_sysent[] = { sys_lkmnosys }, /* 218 = lkmnosys */ { 0, 0, sys_lkmnosys }, /* 219 = lkmnosys */ -#else /* !LKM */ +#else /* !LKM || !_KERNEL */ { 0, 0, - sys_nosys }, /* 210 = unimplemented */ + sys_nosys }, /* 210 = excluded lkmnosys */ { 0, 0, - sys_nosys }, /* 211 = unimplemented */ + sys_nosys }, /* 211 = excluded lkmnosys */ { 0, 0, - sys_nosys }, /* 212 = unimplemented */ + sys_nosys }, /* 212 = excluded lkmnosys */ { 0, 0, - sys_nosys }, /* 213 = unimplemented */ + sys_nosys }, /* 213 = excluded lkmnosys */ { 0, 0, - sys_nosys }, /* 214 = unimplemented */ + sys_nosys }, /* 214 = excluded lkmnosys */ { 0, 0, - sys_nosys }, /* 215 = unimplemented */ + sys_nosys }, /* 215 = excluded lkmnosys */ { 0, 0, - sys_nosys }, /* 216 = unimplemented */ + sys_nosys }, /* 216 = excluded lkmnosys */ { 0, 0, - sys_nosys }, /* 217 = unimplemented */ + sys_nosys }, /* 217 = excluded lkmnosys */ { 0, 0, - sys_nosys }, /* 218 = unimplemented */ + sys_nosys }, /* 218 = excluded lkmnosys */ { 0, 0, - sys_nosys }, /* 219 = unimplemented */ -#endif /* !LKM */ -#ifdef SYSVSEM + sys_nosys }, /* 219 = excluded lkmnosys */ +#endif /* !LKM || !_KERNEL */ +#if defined(SYSVSEM) || !defined(_KERNEL) { 4, s(struct compat_netbsd32___semctl_args), compat_netbsd32___semctl }, /* 220 = compat_netbsd32___semctl */ { 3, s(struct compat_netbsd32_semget_args), @@ -611,15 +606,15 @@ struct sysent netbsd32_sysent[] = { compat_netbsd32_semconfig }, /* 223 = compat_netbsd32_semconfig */ #else { 0, 0, - sys_nosys }, /* 220 = unimplemented compat_netbsd32_semctl */ + sys_nosys }, /* 220 = excluded compat_netbsd32_semctl */ { 0, 0, - sys_nosys }, /* 221 = unimplemented compat_netbsd32_semget */ + sys_nosys }, /* 221 = excluded compat_netbsd32_semget */ { 0, 0, - sys_nosys }, /* 222 = unimplemented compat_netbsd32_semop */ + sys_nosys }, /* 222 = excluded compat_netbsd32_semop */ { 0, 0, - sys_nosys }, /* 223 = unimplemented compat_netbsd32_semconfig */ + sys_nosys }, /* 223 = excluded compat_netbsd32_semconfig */ #endif -#ifdef SYSVMSG +#if defined(SYSVMSG) || !defined(_KERNEL) { 3, s(struct compat_netbsd32_msgctl_args), compat_netbsd32_msgctl }, /* 224 = compat_netbsd32_msgctl */ { 2, s(struct compat_netbsd32_msgget_args), @@ -630,15 +625,15 @@ struct sysent netbsd32_sysent[] = { compat_netbsd32_msgrcv }, /* 227 = compat_netbsd32_msgrcv */ #else { 0, 0, - sys_nosys }, /* 224 = unimplemented compat_netbsd32_msgctl */ + sys_nosys }, /* 224 = excluded compat_netbsd32_msgctl */ { 0, 0, - sys_nosys }, /* 225 = unimplemented compat_netbsd32_msgget */ + sys_nosys }, /* 225 = excluded compat_netbsd32_msgget */ { 0, 0, - sys_nosys }, /* 226 = unimplemented compat_netbsd32_msgsnd */ + sys_nosys }, /* 226 = excluded compat_netbsd32_msgsnd */ { 0, 0, - sys_nosys }, /* 227 = unimplemented compat_netbsd32_msgrcv */ + sys_nosys }, /* 227 = excluded compat_netbsd32_msgrcv */ #endif -#ifdef SYSVSHM +#if defined(SYSVSHM) || !defined(_KERNEL) { 3, s(struct compat_netbsd32_shmat_args), compat_netbsd32_shmat }, /* 228 = compat_netbsd32_shmat */ { 3, s(struct compat_netbsd32_shmctl_args), @@ -649,13 +644,13 @@ struct sysent netbsd32_sysent[] = { compat_netbsd32_shmget }, /* 231 = compat_netbsd32_shmget */ #else { 0, 0, - sys_nosys }, /* 228 = unimplemented compat_netbsd32_shmat */ + sys_nosys }, /* 228 = excluded compat_netbsd32_shmat */ { 0, 0, - sys_nosys }, /* 229 = unimplemented compat_netbsd32_shmctl */ + sys_nosys }, /* 229 = excluded compat_netbsd32_shmctl */ { 0, 0, - sys_nosys }, /* 230 = unimplemented compat_netbsd32_shmdt */ + sys_nosys }, /* 230 = excluded compat_netbsd32_shmdt */ { 0, 0, - sys_nosys }, /* 231 = unimplemented compat_netbsd32_shmget */ + sys_nosys }, /* 231 = excluded compat_netbsd32_shmget */ #endif { 2, s(struct compat_netbsd32_clock_gettime_args), compat_netbsd32_clock_gettime }, /* 232 = compat_netbsd32_clock_gettime */ @@ -769,12 +764,12 @@ struct sysent netbsd32_sysent[] = { compat_netbsd32_getsid }, /* 286 = compat_netbsd32_getsid */ { 0, 0, sys_nosys }, /* 287 = unimplemented */ -#ifdef KTRACE +#if defined(KTRACE) || !defined(_KERNEL) { 4, s(struct compat_netbsd32_fktrace_args), compat_netbsd32_fktrace }, /* 288 = compat_netbsd32_fktrace */ #else { 0, 0, - sys_nosys }, /* 288 = unimplemented */ + sys_nosys }, /* 288 = excluded compat_netbsd32_fktrace */ #endif { 5, s(struct compat_netbsd32_preadv_args), compat_netbsd32_preadv }, /* 289 = compat_netbsd32_preadv */