.\" Copyright (C) 1995, Thomas K. Dyas <tdyas@eden.rutgers.edu>
.\"
+.\" %%%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.
.\"
.\" 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 <tdyas@eden.rutgers.edu>
.\"
.\" 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
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.
-.SH "RETURN VALUE"
+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
is returned.
.TP
.B EINVAL
The kernel was unable to change the personality.
-.SH "CONFORMING TO"
+.SH CONFORMING TO
.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/.