2005-04-17 02:20:36 +04:00
|
|
|
#ifndef _LINUX_PERSONALITY_H
|
|
|
|
#define _LINUX_PERSONALITY_H
|
|
|
|
|
2012-10-13 13:46:48 +04:00
|
|
|
#include <uapi/linux/personality.h>
|
|
|
|
|
2005-04-17 02:20:36 +04:00
|
|
|
/*
|
|
|
|
* Return the base personality without flags.
|
|
|
|
*/
|
|
|
|
#define personality(pers) (pers & PER_MASK)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Change personality of the currently running process.
|
|
|
|
*/
|
2015-04-11 22:45:22 +03:00
|
|
|
#define set_personality(pers) (current->personality = (pers))
|
2005-04-17 02:20:36 +04:00
|
|
|
|
|
|
|
#endif /* _LINUX_PERSONALITY_H */
|