Unix-system-calls-personality
提供:Dev Guides
[top]#
|http://www.google.com/[Google] | a|
Web | This Site |
選択した読書 Copyright©2014 by finddevguides |
[cols=",,,,,,,",] |
| | Home | | References | | Discussion Forums | | About TP
[width="100%",cols="100%",] |
a| == personality()-Unix、Linuxシステムコール
[[File:]] image :http://www.finddevguides.com/images/next.gif [next] image:http://www.finddevguides.com/add- this.gif [AddThisソーシャルブックマークボタン]
広告
NAME
性格-プロセス実行ドメインを設定する
概要
- #include <sys/personality.h> *
*int personality(unsigned long* __persona __ **); **
説明
Linuxは、プロセスごとに異なる実行ドメインまたはパーソナリティをサポートしています。 とりわけ、実行ドメインは、シグナル番号をシグナルアクションにマップする方法をLinuxに指示します。 実行ドメインシステムにより、Linuxは他のUnixライクなオペレーティングシステムでコンパイルされたバイナリに対して限定的なサポートを提供できます。
_persona_が0xffffffffに等しい場合、この関数は現在の personality ()を返します。 それ以外の場合は、_persona_によって参照される実行ドメインを現在のプロセスの新しい実行ドメインにします。
返り値
成功すると、前の_persona_が返されます。 エラーの場合、-1が返され、_errno_が適切に設定されます。
エラー
Tag | Description |
---|---|
EINVAL | The kernel was unable to change the personality. |
準拠
*personality* ()はLinux固有であり、移植を目的としたプログラムでは使用しないでください。 http://www.finddevguides.com/unix_system_calls/index[image:http://www.finddevguides.com/previous.gif[previous]] http://www.finddevguides.com/unix_system_calls/index[image :http://www.finddevguides.com/images/next.gif [next]] http://www.finddevguides.com/cgi-bin/printversion.cgi?tutorial=unix_system_calls&file=personality[image:http://www.finddevguides.com/print.gif[Printer Friendly]]
広告
|
[cols="^",] |
|Advertisements