summaryrefslogtreecommitdiffstats
path: root/lib/libc/i386/sys
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-12-18 12:39:25 +0000
committerru <ru@FreeBSD.org>2002-12-18 12:39:25 +0000
commit13107017098042a2164c72913b5390de7583af8e (patch)
tree4b365357db641dec27dace91ee066a19385d20c7 /lib/libc/i386/sys
parent8b908a309f8e4ba1498bf6972dc36199ffcc1505 (diff)
downloadFreeBSD-src-13107017098042a2164c72913b5390de7583af8e.zip
FreeBSD-src-13107017098042a2164c72913b5390de7583af8e.tar.gz
mdoc(7) police: "The .Fn system call".
Diffstat (limited to 'lib/libc/i386/sys')
-rw-r--r--lib/libc/i386/sys/i386_get_ioperm.26
-rw-r--r--lib/libc/i386/sys/i386_get_ldt.28
-rw-r--r--lib/libc/i386/sys/i386_vm86.24
3 files changed, 18 insertions, 0 deletions
diff --git a/lib/libc/i386/sys/i386_get_ioperm.2 b/lib/libc/i386/sys/i386_get_ioperm.2
index 76b9cd0..19ef481 100644
--- a/lib/libc/i386/sys/i386_get_ioperm.2
+++ b/lib/libc/i386/sys/i386_get_ioperm.2
@@ -40,7 +40,9 @@
.Ft int
.Fn i386_set_ioperm "unsigned int start" "unsigned int length" "int enable"
.Sh DESCRIPTION
+The
.Fn i386_get_ioperm
+system call
will return the permission for the process' I/O port space in the
.Fa *enable
argument. The port range starts at
@@ -48,7 +50,9 @@ argument. The port range starts at
and the number of contiguous entries will be returned in
.Fa *length .
.Pp
+The
.Fn i386_set_ioperm
+system call
will set access to a range of I/O ports described by the
.Fa start
and
@@ -59,9 +63,11 @@ argument.
.Sh RETURN VALUES
.Rv -std
.Sh ERRORS
+The
.Fn i386_get_ioperm
and
.Fn i386_set_ioperm
+system calls
will fail if:
.Bl -tag -width Er
.It Bq Er EINVAL
diff --git a/lib/libc/i386/sys/i386_get_ldt.2 b/lib/libc/i386/sys/i386_get_ldt.2
index 340c4f2..9bc8583 100644
--- a/lib/libc/i386/sys/i386_get_ldt.2
+++ b/lib/libc/i386/sys/i386_get_ldt.2
@@ -49,10 +49,14 @@
.Ft int
.Fn i386_set_ldt "int start_sel" "union descriptor *descs" "int num_sels"
.Sh DESCRIPTION
+The
.Fn i386_get_ldt
+system call
will return the list of i386 descriptors that the process has in its
LDT.
+The
.Fn i386_set_ldt
+system call
will set a list of i386 descriptors for the current process in its
LDT.
Both routines accept a starting selector number
@@ -77,16 +81,20 @@ in your kernel configuration file to use these functions.
Upon successful completion,
.Fn i386_get_ldt
returns the number of descriptors currently in the LDT.
+The
.Fn i386_set_ldt
+system call
returns the first selector set.
Otherwise, a value of -1 is returned and the global
variable
.Va errno
is set to indicate the error.
.Sh ERRORS
+The
.Fn i386_get_ldt
and
.Fn i386_set_ldt
+system calls
will fail if:
.Bl -tag -width Er
.It Bq Er EINVAL
diff --git a/lib/libc/i386/sys/i386_vm86.2 b/lib/libc/i386/sys/i386_vm86.2
index 9a5eabe..2ec520c 100644
--- a/lib/libc/i386/sys/i386_vm86.2
+++ b/lib/libc/i386/sys/i386_vm86.2
@@ -39,7 +39,9 @@
.Ft int
.Fn i386_vm86 "int function" "void *data"
.Sh DESCRIPTION
+The
.Fn i386_vm86
+system call
is used to call various vm86 related functions.
.Fa function
can be one of the following values:
@@ -80,7 +82,9 @@ bit set. Control returns to the process upon delivery of a signal.
.Sh RETURN VALUES
.Rv -std i386_vm86
.Sh ERRORS
+The
.Fn i386_vm86
+system call
will fail if:
.Bl -tag -width Er
.It Bq Er EINVAL
OpenPOWER on IntegriCloud