diff options
author | nectar <nectar@FreeBSD.org> | 2004-01-09 16:52:09 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2004-01-09 16:52:09 +0000 |
commit | 11f80dcf0d1a027a367f10e000648cb1f64cbdad (patch) | |
tree | 9ca5ad04689553c5e971e12633d53b09108d5ed4 /lib/libc/i386/sys | |
parent | cce48275690715c8d64e7f7c6c6ab3d7e2877a75 (diff) | |
download | FreeBSD-src-11f80dcf0d1a027a367f10e000648cb1f64cbdad.zip FreeBSD-src-11f80dcf0d1a027a367f10e000648cb1f64cbdad.tar.gz |
Provide sysarch(2) prototypes in the MD sysarch.h headers. While I'm
at it, use the ANSI C generic pointer type for the second argument,
thus matching the documentation.
Remove the now extraneous (and now conflicting) function declarations
in various libc sources. Remove now unnecessary casts.
Reviewed by: bde
Diffstat (limited to 'lib/libc/i386/sys')
-rw-r--r-- | lib/libc/i386/sys/i386_get_ioperm.c | 4 | ||||
-rw-r--r-- | lib/libc/i386/sys/i386_get_ldt.c | 4 | ||||
-rw-r--r-- | lib/libc/i386/sys/i386_set_ioperm.c | 4 | ||||
-rw-r--r-- | lib/libc/i386/sys/i386_set_ldt.c | 4 | ||||
-rw-r--r-- | lib/libc/i386/sys/i386_vm86.c | 4 |
5 files changed, 5 insertions, 15 deletions
diff --git a/lib/libc/i386/sys/i386_get_ioperm.c b/lib/libc/i386/sys/i386_get_ioperm.c index 30c050c..7bc27f8 100644 --- a/lib/libc/i386/sys/i386_get_ioperm.c +++ b/lib/libc/i386/sys/i386_get_ioperm.c @@ -29,8 +29,6 @@ __FBSDID("$FreeBSD$"); #include <machine/sysarch.h> -extern int sysarch(int op, char *parms); - int i386_get_ioperm(unsigned int start, unsigned int *length, int *enable) { @@ -41,7 +39,7 @@ i386_get_ioperm(unsigned int start, unsigned int *length, int *enable) p.length = *length; p.enable = *enable; - error = sysarch(I386_GET_IOPERM, (char *)&p); + error = sysarch(I386_GET_IOPERM, &p); *length = p.length; *enable = p.enable; diff --git a/lib/libc/i386/sys/i386_get_ldt.c b/lib/libc/i386/sys/i386_get_ldt.c index 2575c3e..73d7667 100644 --- a/lib/libc/i386/sys/i386_get_ldt.c +++ b/lib/libc/i386/sys/i386_get_ldt.c @@ -33,8 +33,6 @@ __FBSDID("$FreeBSD$"); #include <machine/segments.h> #include <machine/sysarch.h> -extern int sysarch(int op, char *parms); - int i386_get_ldt(int start, union descriptor *descs, int num) { @@ -44,5 +42,5 @@ i386_get_ldt(int start, union descriptor *descs, int num) p.descs = descs; p.num = num; - return sysarch(I386_GET_LDT, (char *)&p); + return sysarch(I386_GET_LDT, &p); } diff --git a/lib/libc/i386/sys/i386_set_ioperm.c b/lib/libc/i386/sys/i386_set_ioperm.c index c9ad54e..258e2af 100644 --- a/lib/libc/i386/sys/i386_set_ioperm.c +++ b/lib/libc/i386/sys/i386_set_ioperm.c @@ -29,8 +29,6 @@ __FBSDID("$FreeBSD$"); #include <machine/sysarch.h> -extern int sysarch(int op, char *parms); - int i386_set_ioperm(unsigned int start, unsigned int length, int enable) { @@ -40,5 +38,5 @@ i386_set_ioperm(unsigned int start, unsigned int length, int enable) p.length = length; p.enable = enable; - return (sysarch(I386_SET_IOPERM, (char *)&p)); + return (sysarch(I386_SET_IOPERM, &p)); } diff --git a/lib/libc/i386/sys/i386_set_ldt.c b/lib/libc/i386/sys/i386_set_ldt.c index 9693791..0bb109a 100644 --- a/lib/libc/i386/sys/i386_set_ldt.c +++ b/lib/libc/i386/sys/i386_set_ldt.c @@ -33,8 +33,6 @@ __FBSDID("$FreeBSD$"); #include <machine/segments.h> #include <machine/sysarch.h> -extern int sysarch(int op, char *parms); - int i386_set_ldt(int start, union descriptor *descs, int num) { @@ -44,5 +42,5 @@ i386_set_ldt(int start, union descriptor *descs, int num) p.descs = descs; p.num = num; - return sysarch(I386_SET_LDT, (char *)&p); + return sysarch(I386_SET_LDT, &p); } diff --git a/lib/libc/i386/sys/i386_vm86.c b/lib/libc/i386/sys/i386_vm86.c index 16fe3b3..c007608 100644 --- a/lib/libc/i386/sys/i386_vm86.c +++ b/lib/libc/i386/sys/i386_vm86.c @@ -29,8 +29,6 @@ __FBSDID("$FreeBSD$"); #include <machine/sysarch.h> -extern int sysarch(int op, char *parms); - int i386_vm86(int fcn, void *data) { @@ -39,5 +37,5 @@ i386_vm86(int fcn, void *data) p.sub_op = fcn; p.sub_args = (char *)data; - return (sysarch(I386_VM86, (void *)&p)); + return (sysarch(I386_VM86, &p)); } |