summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorluoqi <luoqi@FreeBSD.org>1999-09-02 21:03:32 +0000
committerluoqi <luoqi@FreeBSD.org>1999-09-02 21:03:32 +0000
commit4c5411b9843c8495b8a598f58e68862e99661150 (patch)
tree80590328079a16dc1c1cb382d23362fe1853cfe3 /lib
parented22cebc5fb59a4f9d771db8dbb3db36cf23d484 (diff)
downloadFreeBSD-src-4c5411b9843c8495b8a598f58e68862e99661150.zip
FreeBSD-src-4c5411b9843c8495b8a598f58e68862e99661150.tar.gz
Use definitions provided in sysarch.h for args structures.
Reviewed by: marcel
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/i386/sys/i386_get_ioperm.c8
-rw-r--r--lib/libc/i386/sys/i386_get_ldt.c14
-rw-r--r--lib/libc/i386/sys/i386_set_ioperm.c8
-rw-r--r--lib/libc/i386/sys/i386_set_ldt.c14
-rw-r--r--lib/libc/i386/sys/i386_vm86.c9
5 files changed, 12 insertions, 41 deletions
diff --git a/lib/libc/i386/sys/i386_get_ioperm.c b/lib/libc/i386/sys/i386_get_ioperm.c
index f49ae2e..319ce57 100644
--- a/lib/libc/i386/sys/i386_get_ioperm.c
+++ b/lib/libc/i386/sys/i386_get_ioperm.c
@@ -32,16 +32,10 @@ static const char rcsid[] = "$FreeBSD$";
#include <machine/sysarch.h>
-struct parms {
- unsigned int start;
- unsigned int length;
- int enable;
-};
-
int
i386_get_ioperm(unsigned int start, unsigned int *length, int *enable)
{
- struct parms p;
+ struct i386_ioperm_args p;
int error;
p.start = start;
diff --git a/lib/libc/i386/sys/i386_get_ldt.c b/lib/libc/i386/sys/i386_get_ldt.c
index 11bbd8d..e2e6bd4 100644
--- a/lib/libc/i386/sys/i386_get_ldt.c
+++ b/lib/libc/i386/sys/i386_get_ldt.c
@@ -36,20 +36,14 @@ static const char rcsid[] = "$FreeBSD$";
#include <machine/segments.h>
#include <machine/sysarch.h>
-struct parms {
- int start;
- union descriptor *descs;
- int num;
-};
-
int
i386_get_ldt(int start, union descriptor *descs, int num)
{
- struct parms p;
+ struct i386_ldt_args p;
- p.start = start;
- p.descs = descs;
- p.num = num;
+ p.start = start;
+ p.descs = descs;
+ p.num = num;
return sysarch(I386_GET_LDT, (char *)&p);
}
diff --git a/lib/libc/i386/sys/i386_set_ioperm.c b/lib/libc/i386/sys/i386_set_ioperm.c
index c7812ed..1eca62b 100644
--- a/lib/libc/i386/sys/i386_set_ioperm.c
+++ b/lib/libc/i386/sys/i386_set_ioperm.c
@@ -32,16 +32,10 @@ static const char rcsid[] = "$FreeBSD$";
#include <machine/sysarch.h>
-struct parms {
- unsigned int start;
- unsigned int length;
- int enable;
-};
-
int
i386_set_ioperm(unsigned int start, unsigned int length, int enable)
{
- struct parms p;
+ struct i386_ioperm_args p;
p.start = start;
p.length = length;
diff --git a/lib/libc/i386/sys/i386_set_ldt.c b/lib/libc/i386/sys/i386_set_ldt.c
index bcde553..97fc318 100644
--- a/lib/libc/i386/sys/i386_set_ldt.c
+++ b/lib/libc/i386/sys/i386_set_ldt.c
@@ -36,20 +36,14 @@ static const char rcsid[] = "$FreeBSD$";
#include <machine/segments.h>
#include <machine/sysarch.h>
-struct parms {
- int start;
- union descriptor *descs;
- int num;
-};
-
int
i386_set_ldt(int start, union descriptor *descs, int num)
{
- struct parms p;
+ struct i386_ldt_args p;
- p.start = start;
- p.descs = descs;
- p.num = num;
+ p.start = start;
+ p.descs = descs;
+ p.num = num;
return sysarch(I386_SET_LDT, (char *)&p);
}
diff --git a/lib/libc/i386/sys/i386_vm86.c b/lib/libc/i386/sys/i386_vm86.c
index 31f923b..3e2c842 100644
--- a/lib/libc/i386/sys/i386_vm86.c
+++ b/lib/libc/i386/sys/i386_vm86.c
@@ -32,18 +32,13 @@ static const char rcsid[] = "$FreeBSD$";
#include <machine/sysarch.h>
-struct parms {
- int sub_op;
- void *sub_args;
-};
-
int
i386_vm86(int fcn, void *data)
{
- struct parms p;
+ struct i386_vm86_args p;
p.sub_op = fcn;
- p.sub_args = data;
+ p.sub_args = (char *)data;
return (sysarch(I386_VM86, (void *)&p));
}
OpenPOWER on IntegriCloud