diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-06-16 22:16:25 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-06-16 22:16:25 +0000 |
commit | 24bd509278ba16a1cb2752050b663eeeb4b01db6 (patch) | |
tree | f8c26548e748529ad06c02cfb4705f1ba027d8ae | |
parent | 3ae7671e603ab0fb9fa4e355536ffd7ddc734d86 (diff) |
sysarch() takes a void *
-rw-r--r-- | lib/libc/sys/sysarch.2 | 4 | ||||
-rw-r--r-- | sys/arch/i386/i386/sys_machdep.c | 22 | ||||
-rw-r--r-- | sys/kern/syscalls.master | 4 |
3 files changed, 15 insertions, 15 deletions
diff --git a/lib/libc/sys/sysarch.2 b/lib/libc/sys/sysarch.2 index b7b37d19f52..0560d6e3fd7 100644 --- a/lib/libc/sys/sysarch.2 +++ b/lib/libc/sys/sysarch.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sysarch.2,v 1.6 2001/03/30 04:49:12 pjanzen Exp $ +.\" $OpenBSD: sysarch.2,v 1.7 2001/06/16 22:16:24 deraadt Exp $ .\" $NetBSD: sysarch.2,v 1.4 1995/02/27 12:38:47 cgd Exp $ .\" .\" Copyright (c) 1980, 1991 Regents of the University of California. @@ -43,7 +43,7 @@ .Sh SYNOPSIS .Fd #include <machine/sysarch.h> .Ft int -.Fn sysarch "int number" "char *args" +.Fn sysarch "int number" "void *args" .Sh DESCRIPTION .Fn sysarch performs the architecture-dependent function specified by diff --git a/sys/arch/i386/i386/sys_machdep.c b/sys/arch/i386/i386/sys_machdep.c index 109823edb24..a15cb907026 100644 --- a/sys/arch/i386/i386/sys_machdep.c +++ b/sys/arch/i386/i386/sys_machdep.c @@ -75,12 +75,12 @@ extern vm_map_t kernel_map; #ifdef USER_LDT -int i386_get_ldt __P((struct proc *, char *, register_t *)); -int i386_set_ldt __P((struct proc *, char *, register_t *)); +int i386_get_ldt __P((struct proc *, void *, register_t *)); +int i386_set_ldt __P((struct proc *, void *, register_t *)); #endif -int i386_iopl __P((struct proc *, char *, register_t *)); -int i386_get_ioperm __P((struct proc *, char *, register_t *)); -int i386_set_ioperm __P((struct proc *, char *, register_t *)); +int i386_iopl __P((struct proc *, void *, register_t *)); +int i386_get_ioperm __P((struct proc *, void *, register_t *)); +int i386_set_ioperm __P((struct proc *, void *, register_t *)); #ifdef USER_LDT /* @@ -102,7 +102,7 @@ i386_user_cleanup(pcb) } int -i386_get_ldt(p, args, retval) +i386_get_ldt(p, void, retval) struct proc *p; char *args; register_t *retval; @@ -149,7 +149,7 @@ i386_get_ldt(p, args, retval) int i386_set_ldt(p, args, retval) struct proc *p; - char *args; + void *args; register_t *retval; { int error, i, n; @@ -310,7 +310,7 @@ extern int allowaperture; int i386_iopl(p, args, retval) struct proc *p; - char *args; + void *args; register_t *retval; { int error; @@ -341,7 +341,7 @@ i386_iopl(p, args, retval) int i386_get_ioperm(p, args, retval) struct proc *p; - char *args; + void *args; register_t *retval; { int error; @@ -357,7 +357,7 @@ i386_get_ioperm(p, args, retval) int i386_set_ioperm(p, args, retval) struct proc *p; - char *args; + void *args; register_t *retval; { int error; @@ -381,7 +381,7 @@ sys_sysarch(p, v, retval) { struct sys_sysarch_args /* { syscallarg(int) op; - syscallarg(char *) parms; + syscallarg(void *) parms; } */ *uap = v; int error = 0; diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index 0e352b129e4..2bc8c9691d8 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -1,4 +1,4 @@ -; $OpenBSD: syscalls.master,v 1.45 2001/05/16 17:14:35 millert Exp $ +; $OpenBSD: syscalls.master,v 1.46 2001/06/16 22:16:23 deraadt Exp $ ; $NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -298,7 +298,7 @@ 163 COMPAT_09 { int sys_setdomainname(char *domainname, int len); } \ osetdomainname 164 COMPAT_09 { int sys_uname(struct outsname *name); } ouname -165 STD { int sys_sysarch(int op, char *parms); } +165 STD { int sys_sysarch(int op, void *parms); } 166 UNIMPL 167 UNIMPL 168 UNIMPL |