OSDN Git Service

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