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 current process.
23

RETURN VALUE

25       On success, the previous persona is returned. On error, -1 is returned,
26       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
35
36
37Linux 2.0                         2003-01-01                    PERSONALITY(2)
Impressum