OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / original / man2 / modify_ldt.2
index aa19b19..c445ce2 100644 (file)
@@ -1,7 +1,6 @@
-.\" Hey Emacs! This file is -*- nroff -*- source.
-.\"
 .\" Copyright (c) 1995 Michael Chastain (mec@duracef.shout.net), 22 July 1995.
 .\"
+.\" %%%LICENSE_START(GPLv2+_DOC_FULL)
 .\" This is free documentation; you can redistribute it and/or
 .\" modify it under the terms of the GNU General Public License as
 .\" published by the Free Software Foundation; either version 2 of
 .\" GNU General Public License for more details.
 .\"
 .\" You should have received a copy of the GNU General Public
-.\" License along with this manual; if not, write to the Free
-.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
-.\" USA.
+.\" License along with this manual; if not, see
+.\" <http://www.gnu.org/licenses/>.
+.\" %%%LICENSE_END
 .\"
-.TH MODIFY_LDT 2 2007-06-01 "Linux" "Linux Programmer's Manual"
+.TH MODIFY_LDT 2 2012-07-13 "Linux" "Linux Programmer's Manual"
 .SH NAME
 modify_ldt \- get or set ldt
 .SH SYNOPSIS
@@ -31,6 +30,9 @@ modify_ldt \- get or set ldt
 .sp
 .BI "int modify_ldt(int " "func" ", void *" "ptr" ", unsigned long " "bytecount" );
 .fi
+
+.IR Note :
+There is no glibc wrapper for this system call; see NOTES.
 .SH DESCRIPTION
 .BR modify_ldt ()
 reads or writes the local descriptor table (ldt) for a process.
@@ -60,7 +62,7 @@ and
 .I bytecount
 must equal the size of this structure.
 .\"
-.\" FIXME ? say something about func == 2 and func == 0x11?
+.\" FIXME Should this page say something about func == 2 and func == 0x11?
 .\" In Linux 2.4, func == 2 returned "the default ldt"
 .\" In Linux 2.6, func == 2 is a nop, returning a zeroed out structure.
 .\" Linux 2.4 and 2.6 implement an operation for func == 0x11
@@ -93,7 +95,7 @@ In Linux 2.4 and earlier, this structure was named
 .\" will result in a segmentation violation when trying to access the memory
 .\" outside of the process address space. The memory protection is enforced
 .\" at the paging layer.
-.SH "RETURN VALUE"
+.SH RETURN VALUE
 On success,
 .BR modify_ldt ()
 returns either the actual number of bytes read (for reading)
@@ -125,11 +127,20 @@ is 1 and the new ldt entry has invalid values.
 .B ENOSYS
 .I func
 is neither 0 nor 1.
-.SH "CONFORMING TO"
+.SH CONFORMING TO
 This call is Linux-specific and should not be used in programs intended
 to be portable.
 .SH NOTES
 Glibc does not provide a wrapper for this system call; call it using
 .BR syscall (2).
-.SH "SEE ALSO"
+.SH SEE ALSO
 .BR vm86 (2)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.