OSDN Git Service

(split) LDP: Restore and add Copyrights for draft pages
[linuxjm/LDP_man-pages.git] / draft / man2 / arch_prctl.2
index 0f21b82..9280fff 100644 (file)
@@ -1,7 +1,6 @@
-.\" Hey Emacs! This file is -*- nroff -*- source.
-.\"
 .\" Copyright (C) 2003 Andi Kleen
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
+.\"
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
 .\"
 .\" Japanese Version Copyright (c) 2004 Yuichi SATO
 .\"         all rights reserved.
 .\" Updated 2005-11-19, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
 .\" Updated 2008-02-10, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.77
 .\"
-.TH ARCH_PRCTL 2 2007-12-26 "Linux" "Linux Programmer's Manual"
-.\"O .SH NAME
+.TH ARCH_PRCTL 2 2007\-12\-26 Linux "Linux Programmer's Manual"
 .SH 名前
-.\"O arch_prctl \- set architecture-specific thread state
 arch_prctl \- アーキテクチャ固有のスレッド状態を設定する
-.\"O .SH SYNOPSIS
 .SH 書式
 .nf
-.B #include <asm/prctl.h>
+\fB#include <asm/prctl.h>\fP
 .br
-.B #include <sys/prctl.h>
+\fB#include <sys/prctl.h>\fP
 .sp
-.BI "int arch_prctl(int " code ", unsigned long *" addr );
+\fBint arch_prctl(int \fP\fIcode\fP\fB, unsigned long *\fP\fIaddr\fP\fB);\fP
 .fi
-.\"O .SH DESCRIPTION
 .SH 説明
-.\"O The
-.\"O .BR arch_prctl ()
-.\"O function sets architecture-specific process or thread state.
-.BR arch_prctl ()
-関数はアーキテクチャ固有のプロセス状態またはスレッド状態を設定する。
-.\"O .I code
-.\"O selects a subfunction
-.\"O and passes argument
-.\"O .I addr
-.\"O to it;
-.\"O .I addr
-.\"O is interpreted as either an
-.\"O .I "unsigned long"
-.\"O for the "set" operations, or as an
-.\"O .IR "unsigned long *" ,
-.\"O for the "get" operations.
-.I code
-は副機能を選択し、引き数
-.I addr
-を副機能に渡す。
-.I addr
-は、"set" 操作では
-.I "unsigned long"
-として、"get" 操作では
-.I "unsigned long *"
-として解釈される。
+\fBarch_prctl\fP()  関数はアーキテクチャ固有のプロセス状態またはスレッド状態を設定する。 \fIcode\fP は副機能を選択し、引き数
+\fIaddr\fP を副機能に渡す。 \fIaddr\fP は、"set" 操作では \fIunsigned long\fP として、"get" 操作では
+\fIunsigned long\ *\fP として解釈される。
 .LP
-.\"O Sub functions for x86-64 are:
-x86-64 の副機能は以下の通り:
-.TP
-.B ARCH_SET_FS
-.\"O Set the 64-bit base for the
-.\"O .I FS
-.\"O register to
-.\"O .IR addr .
-.I FS
-レジスタの 64 ビットベースを
-.I addr
-に設定する。
-.TP
-.B ARCH_GET_FS
-.\"O Return the 64-bit base value for the
-.\"O .I FS
-.\"O register of the current thread in the
-.\"O .I unsigned long
-.\"O pointed to by
-.\"O .IR addr .
-現在のスレッドの
-.I FS
-レジスタの 64 ビットベース値を、
-.I addr
-が指す
-.I unsigned long
-の領域に格納する。
-.TP
-.B ARCH_SET_GS
-.\"O Set the 64-bit base for the
-.\"O .I GS
-.\"O register to
-.\"O .IR addr .
-.I GS
-レジスタの 64 ビットベースを
-.I addr
-に設定する。
-.TP
-.B ARCH_GET_GS
-.\"O Return the 64-bit base value for the
-.\"O .I GS
-.\"O register of the current thread in the
-.\"O .I unsigned long
-.\"O pointed to by
-.\"O .IR addr .
-現在のスレッドの
-.I GS
-レジスタの 64 ビットベース値を、
-.I addr
-が指す
-.I unsigned long
-の領域に格納する。
-.\"O .SH RETURN VALUE
+x86\-64 の副機能は以下の通り:
+.TP 
+\fBARCH_SET_FS\fP
+\fIFS\fP レジスタの 64 ビットベースを \fIaddr\fP に設定する。
+.TP 
+\fBARCH_GET_FS\fP
+現在のスレッドの \fIFS\fP レジスタの 64 ビットベース値を、 \fIaddr\fP が指す \fIunsigned long\fP の領域に格納する。
+.TP 
+\fBARCH_SET_GS\fP
+\fIGS\fP レジスタの 64 ビットベースを \fIaddr\fP に設定する。
+.TP 
+\fBARCH_GET_GS\fP
+現在のスレッドの \fIGS\fP レジスタの 64 ビットベース値を、 \fIaddr\fP が指す \fIunsigned long\fP の領域に格納する。
 .SH 返り値
-.\"O On success,
-.\"O .BR arch_prctl ()
-.\"O returns 0; on error, \-1 is returned, and
-.\"O .I errno
-.\"O is set to indicate the error.
-成功すると、
-.BR arch_prctl ()
-は 0 を返す。エラーの場合、\-1 を返し、
-.I errno
-をエラーを示す値に設定する。
-.\"O .SH ERRORS
+成功すると、 \fBarch_prctl\fP()  は 0 を返す。エラーの場合、\-1 を返し、 \fIerrno\fP をエラーを示す値に設定する。
 .SH エラー
-.TP
-.B EFAULT
-.\"O .I addr
-.\"O points to an unmapped address or is outside the process address space.
-.I addr
-がアンマップされたアドレスを指しているか、プロセスのアドレス空間の外にある。
-.TP
-.B EINVAL
-.\"O .I code
-.\"O is not a valid subcommand.
-.I code
-が有効なサブコマンドでない。
-.TP
-.B EPERM
-.\"O .I addr
-.\"O is outside the process address space.
-.I addr
-がプロセスのアドレス空間の外にある。
-.\"O .\" .SH AUTHOR
-.\" .SH 著者
-.\"O .\" Man page written by Andi Kleen.
-.\" この man ページは Andi Kleen によって書かれた。
-.\"O .SH "CONFORMING TO"
+.TP 
+\fBEFAULT\fP
+\fIaddr\fP がアンマップされたアドレスを指しているか、プロセスのアドレス空間の外にある。
+.TP 
+\fBEINVAL\fP
+\fIcode\fP が有効なサブコマンドでない。
+.TP 
+\fBEPERM\fP
+.\" .SH AUTHOR
+.\" Man page written by Andi Kleen.
+\fIaddr\fP がプロセスのアドレス空間の外にある。
 .SH 準拠
-.\"O .BR arch_prctl ()
-.\"O is a Linux/x86-64 extension and should not be used in programs intended
-.\"O to be portable.
-.BR arch_prctl ()
-は Linux/x86-64 拡張であり、移植性を意図したプログラムでは使うべきでない。
-.\"O .SH NOTES
+\fBarch_prctl\fP()  は Linux/x86\-64 拡張であり、移植性を意図したプログラムでは使うべきでない。
 .SH 注意
-.\"O .BR arch_prctl ()
-.\"O is only supported on Linux/x86-64 for 64-bit programs currently.
-.BR arch_prctl ()
-は現在のところ Linux/x86-64 上の 64 ビットプログラムでのみサポートされている。
+\fBarch_prctl\fP()  は現在のところ Linux/x86\-64 上の 64 ビットプログラムでのみサポートされている。
 
-.\"O The 64-bit base changes when a new 32-bit segment selector is loaded.
-新しい 32 ビットセグメントセレクタがロードされた場合、
-64 ビットベースは変更される。
+新しい 32 ビットセグメントセレクタがロードされた場合、 64 ビットベースは変更される。
 
-.\"O .B ARCH_SET_GS
-.\"O is disabled in some kernels.
-.B ARCH_SET_GS
-が無効にされているカーネルもある。
+\fBARCH_SET_GS\fP が無効にされているカーネルもある。
 
-.\"O Context switches for 64-bit segment bases are rather expensive.
-.\"O It may be a faster alternative to set a 32-bit base using a
-.\"O segment selector by setting up an LDT with
-.\"O .BR modify_ldt (2)
-.\"O or using the
-.\"O .BR set_thread_area (2)
-.\"O system call in kernel 2.5 or later.
-64 ビットセグメントベースのコンテキストスイッチは、やや高価である。
-LDT を
-.BR modify_ldt (2)
-で設定してセグメントセレクタを使うか、
-(カーネル 2.5 以降の)
-.BR set_thread_area (2)
-システムコールを使うことにより、
-32 ビットベースを設定するという高速な代替手段もある。
-.\"O .BR arch_prctl ()
-.\"O is only needed when you want to set bases that are larger than 4GB.
-4GB より大きなベースを設定したい場合にのみ、
-.BR arch_prctl ()
-が必要である。
-.\"O Memory in the first 2GB of address space can be allocated by using
-.\"O .BR mmap (2)
-.\"O with the
-.\"O .B MAP_32BIT
-.\"O flag.
-アドレス空間の最初の 2GB にあるメモリは、
-.BR mmap (2)
-に
-.B MAP_32BIT
+64 ビットセグメントベースのコンテキストスイッチは、やや高価である。 LDT を \fBmodify_ldt\fP(2)
+で設定してセグメントセレクタを使うか、 (カーネル 2.5 以降の)  \fBset_thread_area\fP(2)  システムコールを使うことにより、
+32 ビットベースを設定するという高速な代替手段もある。 4GB より大きなベースを設定したい場合にのみ、 \fBarch_prctl\fP()
+が必要である。 アドレス空間の最初の 2GB にあるメモリは、 \fBmmap\fP(2)  に \fBMAP_32BIT\fP
 フラグを指定して割り当てることができる。
 
-.\"O As of version 2.7, glibc provides no prototype for
-.\"O .BR arch_prctl ().
-.\"O You have to declare it yourself for now.
-.\"O This may be fixed in future glibc versions.
-バージョン 2.7 時点では、glibc には
-.BR arch_prctl ()
-のプロトタイプがない。
-今のところユーザは自分自身で宣言する必要がある。
-これは将来の glibc のバージョンで修正されるかもしれない。
+バージョン 2.7 時点では、glibc には \fBarch_prctl\fP()  のプロトタイプがない。
+今のところユーザは自分自身で宣言する必要がある。 これは将来の glibc のバージョンで修正されるかもしれない。
 
-.\"O .I FS
-.\"O may be already used by the threading library.
-.I FS
-はスレッドライブラリで既に使われているかもしれない。
-.\"O .SH "SEE ALSO"
+\fIFS\fP はスレッドライブラリで既に使われているかもしれない。
 .SH 関連項目
-.BR mmap (2),
-.BR modify_ldt (2),
-.BR prctl (2),
-.BR set_thread_area (2)
-.sp
-AMD X86-64 Programmer's manual
+\fBmmap\fP(2), \fBmodify_ldt\fP(2), \fBprctl\fP(2), \fBset_thread_area\fP(2)
+
+AMD X86\-64 Programmer's manual
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。