From ce792db906fa84ad458849b4192deb41ec202eef Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 13 Jul 2005 15:14:33 +0000 Subject: - Stop hardcoding #define's for options and use the appropriate opt_foo.h headers instead. - Hook up the IPC SVR4 syscalls. MFC after: 3 days --- sys/compat/svr4/svr4.h | 12 ------------ sys/compat/svr4/svr4_stream.c | 4 ++-- sys/compat/svr4/syscalls.master | 13 +++++-------- 3 files changed, 7 insertions(+), 22 deletions(-) (limited to 'sys/compat') diff --git a/sys/compat/svr4/svr4.h b/sys/compat/svr4/svr4.h index 352858d..84ee720 100644 --- a/sys/compat/svr4/svr4.h +++ b/sys/compat/svr4/svr4.h @@ -35,17 +35,5 @@ extern struct sysentvec svr4_sysvec; #define COMPAT_SVR4_SOLARIS2 -#define KTRACE - -/* These are currently unimplemented (see svr4_ipc.c) */ -#if defined(SYSVMSG) -# undef SYSVMSG -#endif -#if defined(SYSVSHM) -# undef SYSVSHM -#endif -#if defined(SYSVSEM) -# undef SYSVSEM -#endif #endif diff --git a/sys/compat/svr4/svr4_stream.c b/sys/compat/svr4/svr4_stream.c index e11c84c..bd6fa5a 100644 --- a/sys/compat/svr4/svr4_stream.c +++ b/sys/compat/svr4/svr4_stream.c @@ -38,8 +38,8 @@ #include __FBSDID("$FreeBSD$"); -#define COMPAT_43 1 - +#include "opt_compat.h" +#include "opt_ktrace.h" #include "opt_mac.h" #include diff --git a/sys/compat/svr4/syscalls.master b/sys/compat/svr4/syscalls.master index da0e7cf..279e477 100644 --- a/sys/compat/svr4/syscalls.master +++ b/sys/compat/svr4/syscalls.master @@ -96,17 +96,14 @@ 47 AUE_NULL MNOPROTO { gid_t getgid(void); } 48 AUE_NULL MSTD { int svr4_sys_signal(int signum, \ svr4_sig_t handler); } -#if defined(NOTYET) 49 AUE_NULL STD { int svr4_sys_msgsys(int what, int a2, \ - int a3, int a4, \ - int a5); } -#else -49 AUE_NULL UNIMPL msgsys -#endif + int a3, int a4, int a5); } 50 AUE_NULL STD { int svr4_sys_sysarch(int op, void *a1); } 51 AUE_NULL UNIMPL acct -52 AUE_NULL UNIMPL shmsys -53 AUE_NULL UNIMPL semsys +52 AUE_NULL STD { int svr4_sys_shmsys(int what, int a2, \ + int a3, int a4, int a5); } +53 AUE_NULL STD { int svr4_sys_semsys(int what, int a2, \ + int a3, int a4, int a5); } 54 AUE_NULL STD { int svr4_sys_ioctl(int fd, u_long com, \ caddr_t data); } 55 AUE_NULL UNIMPL uadmin -- cgit v1.1