OSDN Git Service

(split) LDP: Update release (3.64)
[linuxjm/LDP_man-pages.git] / release / man2 / modify_ldt.2
index 4fc9355..1f63990 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
+.\"
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
 .\"
 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
 .\"         all rights reserved.
 .\" Updated & Modified 2005-02-24, Yuichi SATO <ysato444@yahoo.co.jp>
 .\" Updated 2007-06-18, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.57
 .\"
-.\"WORD:       ldt                     ldt
-.\"WORD:       local descriptor table  ローカル・ディスクリプタ・テーブル
-.\"WORD:       processer               プロセッサ
-.\"WORD:       entry                   エントリ
-.\"
-.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 名前
 modify_ldt \- ldt を設定または取得する
 .SH 書式
 .nf
-.B #include <sys/types.h>
+\fB#include <sys/types.h>\fP
 .sp
-.BI "int modify_ldt(int " "func" ", void *" "ptr" ", unsigned long " "bytecount" );
+\fBint modify_ldt(int \fP\fIfunc\fP\fB, void *\fP\fIptr\fP\fB, unsigned long \fP\fIbytecount\fP\fB);\fP
 .fi
+
+\fI注\fP: このシステムコールには glibc のラッパー関数は存在しない。「注意」の節を参照。
 .SH 説明
-.BR modify_ldt ()
-はプロセスのローカル・ディスクリプタ・テーブル (local descriptor table; ldt)
-を読み書きする。
-ldt は i386 プロセッサで使用されるプロセスごとのメモリ管理テーブルである。
-このテーブルに関してのより詳しい情報は Intel 386 processor handbook を
-参照すること。
+\fBmodify_ldt\fP()  はプロセスのローカル・ディスクリプタ・テーブル (local descriptor table; ldt)
+を読み書きする。 ldt は i386 プロセッサで使用されるプロセスごとのメモリ管理テーブルである。 このテーブルに関してのより詳しい情報は
+Intel 386 processor handbook を 参照すること。
 .PP
-.I func
-が 0 ならば、
-.BR modify_ldt ()
-は ldt を
-.I ptr
-が指しているメモリに読み込む。
-読み込むバイト数は実際の ldt のサイズか
-.I bytecount
-より小さい方である。
+\fIfunc\fP が 0 ならば、 \fBmodify_ldt\fP()  は ldt を \fIptr\fP が指しているメモリに読み込む。
+読み込むバイト数は実際の ldt のサイズか \fIbytecount\fP より小さい方である。
 .PP
-.I func
-が 1 ならば、
-.BR modify_ldt ()
-は ldt エントリの一つを変更する。
-.I ptr
-は
-.I user_desc
-構造体を指し、
-.I bytecount
-はこの構造体の大きさに等しくなければならない。
 .\"
-.\" FIXME ? say something about func == 2 ans func == 0x11?
+.\" FIXME ? 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
+\fIfunc\fP が 1 ならば、 \fBmodify_ldt\fP()  は ldt エントリの一つを変更する。 \fIptr\fP は \fIuser_desc\fP
+構造体を指し、 \fIbytecount\fP はこの構造体の大きさに等しくなければならない。
 
-.I user_desc
-構造体は \fI<asm/ldt.h>\fP で以下のように定義されている:
+\fIuser_desc\fP 構造体は \fI<asm/ldt.h>\fP で以下のように定義されている:
 .in +4n
 .nf
 
@@ -95,53 +78,34 @@ struct user_desc {
 .fi
 .in
 .PP
-Linux 2.4 以前では、この構造体は
-.I modify_ldt_ldt_s
-という名前であった。
 .\" .PP
-.\" ldt は呼び出し元プロセスに固有のものである。
-.\" 他のプロセスやカーネルのアドレス空間を含むように ldt を変更しようすると、
-.\" プロセスアドレス空間の外のメモリにアクセスしようとしたときに、
-.\" セグメンテーション違反 (segmentation violation) になる。
-.\" メモリ保護はページングレイヤで実施される。
+.\" The ldt is specific for the calling process. Any attempts to change
+.\" the ldt to include the address space of another process or the kernel
+.\" 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.
+Linux 2.4 以前では、この構造体は \fImodify_ldt_ldt_s\fP という名前であった。
 .SH 返り値
-成功した場合は、
-.BR modify_ldt ()
-は (読み込みの場合は) 実際に読み込んだバイト数、
-または (書き込みの場合は) 0 を返す。
-失敗した場合は
-.BR modify_ldt ()
-は \-1 を返し、
-.I errno
-をエラーを示す値に設定する。
+成功した場合は、 \fBmodify_ldt\fP()  は (読み込みの場合は) 実際に読み込んだバイト数、 または (書き込みの場合は) 0 を返す。
+失敗した場合は \fBmodify_ldt\fP()  は \-1 を返し、 \fIerrno\fP をエラーを示す値に設定する。
 .SH エラー
-.TP
-.B EFAULT
-.I ptr
-がアドレス空間の外を指している。
-.TP
-.B EINVAL
-.I ptr
-が 0 である、
-または
-.I func
-が 1 で
-.I bytecount
-が
-.I modify_ldt_ldt_s
-構造体のサイズと等しくないか、
-.I func
-が 1 で新しい ldt エントリが無効な値である。
-.TP
-.B ENOSYS
-.I func
-が 0 でも 1 でもない。
+.TP 
+\fBEFAULT\fP
+\fIptr\fP がアドレス空間の外を指している。
+.TP 
+\fBEINVAL\fP
+\fIptr\fP が 0 である、 または \fIfunc\fP が 1 で \fIbytecount\fP が \fImodify_ldt_ldt_s\fP
+構造体のサイズと等しくないか、 \fIfunc\fP が 1 で新しい ldt エントリが無効な値である。
+.TP 
+\fBENOSYS\fP
+\fIfunc\fP が 0 でも 1 でもない。
 .SH 準拠
-このコールは Linux 特有であり、移植を意図したプログラムでは
-使用してはいけない。
+このコールは Linux 特有であり、移植を意図したプログラムでは 使用してはいけない。
 .SH 注意
-glibc はこのシステムコールに対するラッパー関数を提供していない。
-.BR syscall (2)
-を使って呼び出すこと。
+glibc はこのシステムコールに対するラッパー関数を提供していない。 \fBsyscall\fP(2)  を使って呼び出すこと。
 .SH 関連項目
-.BR vm86 (2)
+\fBvm86\fP(2)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.64 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。