modify_ldt man page on CentOS

Man page or keyword search:  
man Server   8420 pages
apropos Keyword Search (all sections)
Output format
CentOS logo
[printable version]

MODIFY_LDT(2)		   Linux Programmer's Manual		 MODIFY_LDT(2)

NAME
       modify_ldt - get or set ldt

SYNOPSIS
       #include <sys/types.h>

       int modify_ldt(int 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.

       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.

ERRORS
       EFAULT ptr points outside the address space.

       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 invalid values.

       ENOSYS func is neither 0 nor 1.

CONFORMING TO
       This call is Linux specific and should not be used in programs intended
       to be portable.

NOTES
       Glibc  does  not	 provide a wrapper for this system call; call it using
       syscall(2).

SEE ALSO
       vm86(2)

Linux 1.3.6			  2007-06-01			 MODIFY_LDT(2)
[top]

List of man pages available for CentOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net