OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man2 / personality.2
index 436c607..d27cbe9 100644 (file)
@@ -29,7 +29,7 @@
 .\" changed prototype, documented 0xffffffff, aeb, 030101
 .\" Modified 2004-11-03 patch from Martin Schulze <joey@infodrom.org>
 .\"
-.TH PERSONALITY 2 2003-01-01 "Linux" "Linux Programmer's Manual"
+.TH PERSONALITY 2 2015-02-01 "Linux" "Linux Programmer's Manual"
 .SH NAME
 personality \- set the process execution domain
 .SH SYNOPSIS
@@ -45,15 +45,20 @@ The execution domain system allows
 Linux to provide limited support for binaries compiled under other
 UNIX-like operating systems.
 
-This function will return the current
-.BR personality ()
-when
-.I persona
-equals 0xffffffff.
-Otherwise, it will make the execution domain
-referenced by
+If
 .I persona
-the new execution domain of the calling process.
+is not
+0xffffffff, then
+.BR personality ()
+sets the caller's execution domain to the value specified by
+.IR persona .
+Specifying
+.IR persona
+as 0xffffffff provides a way of retrieving
+the current persona without changing it.
+
+A list of the available execution domains can be found in
+.IR <sys/personality.h> .
 .SH RETURN VALUE
 On success, the previous
 .I persona
@@ -69,3 +74,14 @@ The kernel was unable to change the personality.
 .BR personality ()
 is Linux-specific and should not be used in programs intended to
 be portable.
+.SH SEE ALSO
+.BR setarch (8)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.