diff options
author | davidxu <davidxu@FreeBSD.org> | 2003-07-31 02:13:48 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2003-07-31 02:13:48 +0000 |
commit | 5ae6a349c28e523fa6a3c90bdddcac426bb53ae4 (patch) | |
tree | fa36344145705652d1ad2fe6f52d17f6295a6a26 /lib | |
parent | ff39c53c7235f44afe0db3ac4a24f3ae41965b65 (diff) | |
download | FreeBSD-src-5ae6a349c28e523fa6a3c90bdddcac426bb53ae4.zip FreeBSD-src-5ae6a349c28e523fa6a3c90bdddcac426bb53ae4.tar.gz |
Update manual for i386_set_ldt to reflect newly added features.
Submitted by: julian
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/i386/sys/i386_get_ldt.2 | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/libc/i386/sys/i386_get_ldt.2 b/lib/libc/i386/sys/i386_get_ldt.2 index 9a6eb94..bc63578 100644 --- a/lib/libc/i386/sys/i386_get_ldt.2 +++ b/lib/libc/i386/sys/i386_get_ldt.2 @@ -73,6 +73,38 @@ can be either segment_descriptor or gate_descriptor and are defined in .Aq Pa i386/segments.h . These structures are defined by the architecture as disjoint bit-fields, so care must be taken in constructing them. +.Pp +If +.Fa start_sel +is 0, +.Fa num_sels +is 1 and the descriptor pointed to by +.Fa descs +is legal, then +.Fn i386_set_ldt +will allocate a descriptor and return its +selector number. +.Pp +If +.Fa num_descs +is 1, +.Fa start_sels +is valid, and +.Fa descs +is NULL, then +.Fn i386_set_ldt +will free that descriptor +(making it available to be reallocated again later). +.Pp +If +.Fa num_descs +is 0, +.Fa start_sels +is 0 and +.Fa descs +is NULL then, as a special case, +.Fn i386_set_ldt +will free all descriptors. .Sh RETURN VALUES Upon successful completion, .Fn i386_get_ldt @@ -81,6 +113,8 @@ The .Fn i386_set_ldt system call returns the first selector set. +In the case when a descriptor is allocated by the kernel, its number will +be returned. Otherwise, a value of -1 is returned and the global variable .Va errno |