.\" Copyright (C) 1995, Thomas K. Dyas .\" .\" %%%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. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\" Created Sat Aug 21 1995 Thomas K. Dyas .\" .\" typo corrected, aeb, 950825 .\" added layout change from joey, 960722 .\" changed prototype, documented 0xffffffff, aeb, 030101 .\" Modified 2004-11-03 patch from Martin Schulze .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH PERSONALITY 2 2003\-01\-01 Linux "Linux Programmer's Manual" .SH 名前 personality \- プロセスを実行するドメインを設定する .SH 書式 \fB#include \fP .sp \fBint personality(unsigned long \fP\fIpersona\fP\fB);\fP .SH 説明 Linux は、プロセス毎の異なる実行ドメイン、すなわち パーソナリティ (personality) をサポートしている。 実行ドメインは Linux にシグナル番号にどのシグナルを割り付けるかを 教えたりする。また、実行ドメイン・システムにより、 Linux は他の UNIX 風のオペレーティング・システムでコンパイルされた バイナリに対する限定的なサポートを提供している。 \fBpersonality ()\fP 関数は、 \fIpersona\fP が 0xffffffff の場合は現在の \fBパーソナリティ\fP を返す。 それ以外の場合、 \fIpersona\fP により参照される実行ドメインを、 呼び出し元のプロセスの新しい実行ドメインとする。 .SH 返り値 成功した場合、以前の \fIpersona\fP が返される。エラーの場合は、\-1 が返され、 \fIerrno\fP が適切に設定される。 .SH エラー .TP \fBEINVAL\fP カーネルがパーソナリティを変更できなかった。 .SH 準拠 \fBpersonality\fP() は Linux 固有であり、移植を意図したプログラムで使用すべきではない。 .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部 である。プロジェクトの説明とバグ報告に関する情報は http://www.kernel.org/doc/man\-pages/ に書かれている。