OSDN Git Service

(split) LDP: Restore and add Copyrights for draft pages
[linuxjm/LDP_man-pages.git] / draft / man2 / personality.2
1 .\" Copyright (C) 1995, Thomas K. Dyas <tdyas@eden.rutgers.edu>
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\" Created   Sat Aug 21 1995     Thomas K. Dyas <tdyas@eden.rutgers.edu>
26 .\"
27 .\" typo corrected, aeb, 950825
28 .\" added layout change from joey, 960722
29 .\" changed prototype, documented 0xffffffff, aeb, 030101
30 .\" Modified 2004-11-03 patch from Martin Schulze <joey@infodrom.org>
31 .\"
32 .\"*******************************************************************
33 .\"
34 .\" This file was generated with po4a. Translate the source file.
35 .\"
36 .\"*******************************************************************
37 .\"
38 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
39 .\"         all rights reserved.
40 .\" Translated 1997-02-23, HANATAKA Shinya <hanataka@abyss.rim.or.jp>
41 .\" Updated 2003-04-24, Kentaro Shirakata <argrath@ub32.org>
42 .\" Updated 2007-05-04, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
43 .\"
44 .TH PERSONALITY 2 2003\-01\-01 Linux "Linux Programmer's Manual"
45 .SH 名前
46 personality \- プロセスを実行するドメインを設定する
47 .SH 書式
48 \fB#include <sys/personality.h>\fP
49 .sp
50 \fBint personality(unsigned long \fP\fIpersona\fP\fB);\fP
51 .SH 説明
52 Linux は、プロセス毎の異なる実行ドメイン、すなわち パーソナリティ (personality) をサポートしている。 実行ドメインは Linux
53 にシグナル番号にどのシグナルを割り付けるかを 教えたりする。また、実行ドメイン・システムにより、 Linux は他の UNIX
54 風のオペレーティング・システムでコンパイルされた バイナリに対する限定的なサポートを提供している。
55
56 \fBpersonality ()\fP 関数は、 \fIpersona\fP が 0xffffffff の場合は現在の \fBパーソナリティ\fP を返す。
57 それ以外の場合、 \fIpersona\fP により参照される実行ドメインを、 呼び出し元のプロセスの新しい実行ドメインとする。
58 .SH 返り値
59 成功した場合、以前の \fIpersona\fP が返される。エラーの場合は、\-1 が返され、 \fIerrno\fP が適切に設定される。
60 .SH エラー
61 .TP 
62 \fBEINVAL\fP
63 カーネルがパーソナリティを変更できなかった。
64 .SH 準拠
65 \fBpersonality\fP()  は Linux 固有であり、移植を意図したプログラムで使用すべきではない。
66 .SH この文書について
67 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
68 である。プロジェクトの説明とバグ報告に関する情報は
69 http://www.kernel.org/doc/man\-pages/ に書かれている。