1 .\" Copyright (C) 1995, Thomas K. Dyas <tdyas@eden.rutgers.edu>
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" Created Sat Aug 21 1995 Thomas K. Dyas <tdyas@eden.rutgers.edu>
27 .\" typo corrected, aeb, 950825
28 .\" added layout change from joey, 960722
29 .\" changed prototype, documented 0xffffffff, aeb, 030101
30 .\" Modified 2004-11-03 patch from Martin Schulze <joey@infodrom.org>
32 .TH PERSONALITY 2 2003-01-01 "Linux" "Linux Programmer's Manual"
34 personality \- set the process execution domain
36 .B #include <sys/personality.h>
38 .BI "int personality(unsigned long " persona );
40 Linux supports different execution domains, or personalities, for each
42 Among other things, execution domains tell Linux how to map
43 signal numbers into signal actions.
44 The execution domain system allows
45 Linux to provide limited support for binaries compiled under other
46 UNIX-like operating systems.
48 This function will return the current
53 Otherwise, it will make the execution domain
56 the new execution domain of the calling process.
58 On success, the previous
61 On error, \-1 is returned, and
67 The kernel was unable to change the personality.
70 is Linux-specific and should not be used in programs intended to