OSDN Git Service

Update releases for LDP v3.76
[linuxjm/LDP_man-pages.git] / release / man2 / prctl.2
index 1140f10..a46ed36 100644 (file)
@@ -65,7 +65,7 @@
 .\" Updated 2007-10-12, Akihiro MOTOKI, LDP v2.66
 .\" Updated 2008-08-12, Akihiro MOTOKI, LDP v3.05
 .\"
-.TH PRCTL 2 2014\-04\-14 Linux "Linux Programmer's Manual"
+.TH PRCTL 2 2014\-12\-31 Linux "Linux Programmer's Manual"
 .SH 名前
 prctl \- プロセスの操作を行なう
 .SH 書式
@@ -175,14 +175,18 @@ ID の変更が行われた場合、「ケーパビリティ保持」フラグ
 .TP 
 \fBPR_SET_NAME\fP (Linux 2.6.9 以降)
 .\" TASK_COMM_LEN in include/linux/sched.h
-呼び出し元スレッドのプロセス名を \fI(char\ *) arg2\fP が指す場所に格納された値を使って設定する。 名前は最大で 16 バイトであり、
-それより少ないバイト数の場合はヌルで終端すべきである。 これは、 \fBpthread_setname_np\fP(3) で設定でき、
-\fBpthread_getname_np\fP(3) で取得できるのと同じ属性である。 同様に、 \fItid\fP が呼び出し元スレッドの ID の場合、
-この属性は \fI/proc/self/task/[tid]/comm\fP 経由でもアクセス可能である。
+Set the name of the calling thread, using the value in the location pointed
+to by \fI(char\ *) arg2\fP.  The name can be up to 16 bytes long, including the
+terminating null byte.  (If the length of the string, including the
+terminating null byte, exceeds 16 bytes, the string is silently truncated.)
+This is the same attribute that can be set via \fBpthread_setname_np\fP(3)  and
+retrieved using \fBpthread_getname_np\fP(3).  The attribute is likewise
+accessible via \fI/proc/self/task/[tid]/comm\fP, where \fItid\fP is the name of
+the calling thread.
 .TP 
 \fBPR_GET_NAME\fP (Linux 2.6.11 以降)
 呼び出し元スレッドの名前を \fI(char\ *) arg2\fP が指す場所に格納して返す。 バッファは最大で 16
\83\90ã\82¤ã\83\88ã\82\92æ ¼ç´\8dã\81§ã\81\8dã\82\8bã\82\88ã\81\86ã\81«ã\81\99ã\81¹ã\81\8dã\81§ã\81\82ã\82\8bã\80\82 è¿\94ã\81\95ã\82\8cã\82\8bæ\96\87å­\97å\88\97ã\81¯ã\80\81é\95·ã\81\95ã\81\8c 16 ã\83\90ã\82¤ã\83\88ã\82\88ã\82\8aç\9f­ã\81\84å ´å\90\88ã\81¯ã\83\8cã\83«çµ\82端ã\81\95ã\82\8cã\82\8bã\80\82
+バイトを格納できるようにすべきである。 返される文字列はヌル終端される。
 .TP 
 \fBPR_SET_NO_NEW_PRIVS\fP (Linux 3.5 以降)
 Set the calling process's \fIno_new_privs\fP bit to the value in \fIarg2\fP.  With
@@ -581,5 +585,5 @@ irix_prctl として Linux 2.1.44 で同様に導入された)、 そのプロ
 .SH 関連項目
 \fBsignal\fP(2), \fBcore\fP(5)
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.68 の一部である。
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.76 の一部である。
 プロジェクトの説明とバグ報告に関する情報は \%http://www.kernel.org/doc/man\-pages/ に書かれている。