diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2002-12-18 12:39:25 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2002-12-18 12:39:25 +0000 |
| commit | a0ce78ec1de74f98b44c249f3b65974eec0fd49a (patch) | |
| tree | 4b365357db641dec27dace91ee066a19385d20c7 /lib/libc | |
| parent | 894fd2da788ecf13e14176f20d2781f4375f0b71 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -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 76b9cd0f5fac..19ef4818f29a 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 340c4f272be6..9bc8583c5d84 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 9a5eabe020e5..2ec520cbb378 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 |
