diff options
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/i386/svr4_machdep.c | 15 | ||||
-rw-r--r-- | sys/arch/i386/include/svr4_machdep.h | 4 |
2 files changed, 17 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/svr4_machdep.c b/sys/arch/i386/i386/svr4_machdep.c index 40add2c6cc3..c60a57cbff3 100644 --- a/sys/arch/i386/i386/svr4_machdep.c +++ b/sys/arch/i386/i386/svr4_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_machdep.c,v 1.12 1997/04/01 20:13:27 deraadt Exp $ */ +/* $OpenBSD: svr4_machdep.c,v 1.13 1997/08/27 20:17:41 mickey Exp $ */ /* $NetBSD: svr4_machdep.c,v 1.24 1996/05/03 19:42:26 christos Exp $ */ /* @@ -472,6 +472,19 @@ svr4_sys_sysarch(p, v, retval) return sys_sysarch(p, &ua, retval); } #endif + case SVR4_SYSARCH_GOSF: + { + /* just as SCO Openserver 5.0 says */ + char features[] = {1,1,1,1,1,1,1,1,2,1,1,1}; + + if ((error = copyout(features, SCARG(uap, a1), + sizeof(features))) != 0) { + printf("Cannot copyout vector\n"); + return error; + } + + return 0; + } default: printf("svr4_sysarch(%d), a1 %p\n", SCARG(uap, op), diff --git a/sys/arch/i386/include/svr4_machdep.h b/sys/arch/i386/include/svr4_machdep.h index bd6234049d2..e845400acaa 100644 --- a/sys/arch/i386/include/svr4_machdep.h +++ b/sys/arch/i386/include/svr4_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_machdep.h,v 1.4 1997/08/07 09:10:43 niklas Exp $ */ +/* $OpenBSD: svr4_machdep.h,v 1.5 1997/08/27 20:17:42 mickey Exp $ */ /* $NetBSD: svr4_machdep.h,v 1.5 1995/03/31 02:51:37 christos Exp $ */ /* @@ -92,6 +92,8 @@ struct svr4_ssd { unsigned int access2; }; +#define SVR4_SYSARCH_GOSF 114 /* get OS features vector */ + /* * Processor traps */ |