Penguin
Diff: modify_ldt(2)
EditPageHistoryDiffInfoLikePages

Differences between current version and predecessor to the previous major change of modify_ldt(2).

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 4 Last edited on Saturday, March 15, 2003 12:51:04 am by PerryLorier
Older page: version 2 Last edited on Monday, June 3, 2002 6:53:00 pm by perry Revert
@@ -1,79 +1,29 @@
-MODIFY_LDT  
-!!!MODIFY_LDT  
-NAME  
-SYNOPSIS  
-DESCRIPTION  
-RETURN VALUE  
-ERRORS  
-CONFORMING TO  
-SEE ALSO  
-----  
 !!NAME 
-  
-  
 modify_ldt - get or set ldt 
 !!SYNOPSIS 
+ __#include <linux/ldt.h>__  
+ __#include <linux/unistd>__  
+ ___syscall(int __''modify_ldt''__, int __''func''__, void *__''ptr''__, unsigned long__'' bytecount''__ )__  
+ __char *modify_ldt(int __ ''func''__, void *__''ptr''__, unsigned long__ ''bytecount''__);__  
  
-  
-__#include  
-__ ''func''__, void *__''ptr''__, unsigned long__ ''bytecount''__);  
-__  
 !!DESCRIPTION 
+__modify_ldt__ reads or writes the local descriptor table (ldt) for a process. The ldt is a per-process memory management table used by the i386 processor. For more  
+information on this table, see an Intel 386 processor handbook.  
  
+When ''func'' is 0, __modify_ldt__ reads the ldt into the memory pointed to by ''ptr''. The number of bytes read is the smaller of ''bytecount'' and the actual size of the ldt.  
  
-__modify_ldt__ reads or writes the local descriptor table  
-( ldt) for a process . The ldt is a per-process memory  
-management table used by the i386 processor. For more  
-information on this table, see an Intel 386 processor  
-handbook
+When ''func'' is 1, __modify_ldt__ modifies one ldt entry . ''ptr'' points to a ''modify_ldt_ldt_s'' structure and ''bytecount'' must equal the size of this structure
  
-  
-When ''func'' is 0, __modify_ldt__ reads the ldt into  
-the memory pointed to by ''ptr''. The number of bytes  
-read is the smaller of ''bytecount'' and the actual size  
-of the ldt.  
-  
-  
-When ''func'' is 1, __modify_ldt__ modifies one ldt  
-entry. ''ptr'' points to a ''modify_ldt_ldt_s''  
-structure and ''bytecount'' must equal the size of this  
-structure.  
 !!RETURN VALUE 
-  
-  
- On success, __modify_ldt__ returns either the actual  
- number of bytes read (for reading) or 0 (for writing). On  
- failure, __modify_ldt__ returns -1 and sets  
- ''errno''. 
+On success, __modify_ldt__ returns either the actual number of bytes read (for reading) or 0 (for writing). On failure, __modify_ldt__ returns -1 and sets ''errno''. 
 !!ERRORS 
+;[ENOSYS]: ''func'' is neither 0 nor 1.  
+;[EINVAL]: ''ptr'' is 0, or ''func'' is 1 and ''bytecount'' is not equal to the size of the structure ''modify_ldt_ldt_s'', or ''func'' is 1 and the new ldt entry has illegal values.  
+;[EFAULT]: ''ptr'' points outside the address space.  
  
-  
-__ENOSYS__  
-  
-  
-''func'' is neither 0 nor 1.  
-  
-  
-__EINVAL__  
-  
-  
-''ptr'' is 0, or ''func'' is 1 and ''bytecount'' is  
-not equal to the size of the structure  
-''modify_ldt_ldt_s'', or ''func'' is 1 and the new ldt  
-entry has illegal values.  
-  
-  
-__EFAULT__  
-  
-  
-''ptr'' points outside the address space.  
 !!CONFORMING TO 
+This call in Linux-specfic and should not be used in programs intended to be portable.  
  
-  
-This call in Linux-specfic and should not be used in  
-programs intended to be portable.  
 !!SEE ALSO 
-  
-  
 vm86(2) 
 ---- 
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.