OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[linuxjm/LDP_man-pages.git] / 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 .\"*******************************************************************
31 .\"
32 .\" This file was generated with po4a. Translate the source file.
33 .\"
34 .\"*******************************************************************
35 .TH PERSONALITY 2 2003\-01\-01 Linux "Linux Programmer's Manual"
36 .SH 名前
37 personality \- プロセスを実行するドメインを設定する
38 .SH 書式
39 \fB#include <sys/personality.h>\fP
40 .sp
41 \fBint personality(unsigned long \fP\fIpersona\fP\fB);\fP
42 .SH 説明
43 Linux は、プロセス毎の異なる実行ドメイン、すなわち パーソナリティ (personality) をサポートしている。 実行ドメインは Linux
44 にシグナル番号にどのシグナルを割り付けるかを 教えたりする。また、実行ドメイン・システムにより、 Linux は他の UNIX
45 風のオペレーティング・システムでコンパイルされた バイナリに対する限定的なサポートを提供している。
46
47 \fBpersonality ()\fP 関数は、 \fIpersona\fP が 0xffffffff の場合は現在の \fBパーソナリティ\fP を返す。
48 それ以外の場合、 \fIpersona\fP により参照される実行ドメインを、 呼び出し元のプロセスの新しい実行ドメインとする。
49 .SH 返り値
50 成功した場合、以前の \fIpersona\fP が返される。エラーの場合は、\-1 が返され、 \fIerrno\fP が適切に設定される。
51 .SH エラー
52 .TP 
53 \fBEINVAL\fP
54 カーネルがパーソナリティを変更できなかった。
55 .SH 準拠
56 \fBpersonality\fP()  は Linux 固有であり、移植を意図したプログラムで使用すべきではない。