1PERSONALITY(2)             Linux Programmer's Manual            PERSONALITY(2)
2
3
4

NAME

6       personality - set the process execution domain
7

SYNOPSIS

9       #include <sys/personality.h>
10
11       int personality(unsigned long persona);
12

DESCRIPTION

14       Linux  supports different execution domains, or personalities, for each
15       process.  Among other things, execution domains tell Linux how  to  map
16       signal numbers into signal actions.  The execution domain system allows
17       Linux to provide limited support  for  binaries  compiled  under  other
18       UNIX-like operating systems.
19
20       This function will return the current personality() when persona equals
21       0xffffffff.  Otherwise, it will make the execution domain referenced by
22       persona the new execution domain of the calling process.
23

RETURN VALUE

25       On  success,  the  previous  persona  is  returned.   On  error,  -1 is
26       returned, and errno is set appropriately.
27

ERRORS

29       EINVAL The kernel was unable to change the personality.
30

CONFORMING TO

32       personality() is Linux-specific and should  not  be  used  in  programs
33       intended to be portable.
34

COLOPHON

36       This  page  is  part of release 3.53 of the Linux man-pages project.  A
37       description of the project, and information about reporting  bugs,  can
38       be found at http://www.kernel.org/doc/man-pages/.
39
40
41
42Linux                             2003-01-01                    PERSONALITY(2)
Impressum