diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/i386/sys/i386_get_ioperm.2 | 6 | ||||
-rw-r--r-- | lib/libc/i386/sys/i386_get_ldt.2 | 8 | ||||
-rw-r--r-- | lib/libc/i386/sys/i386_vm86.2 | 4 |
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 |