diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-27 20:17:43 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-27 20:17:43 +0000 |
commit | ae7c9575534f9a5c2a962d05e531dd77386cbd9f (patch) | |
tree | 3e78bfa26e99e83f9f508c08f7d667cbdfa9266c | |
parent | 3f7803eb5b1b01d3dc2de83e6075469b304d2035 (diff) |
add get OS features support vector, as per SCO OS 5.0
-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 */ |