personality.h 354 B

12345678910111213141516
  1. #ifndef _LINUX_PERSONALITY_H
  2. #define _LINUX_PERSONALITY_H
  3. #include <uapi/linux/personality.h>
  4. /*
  5. * Return the base personality without flags.
  6. */
  7. #define personality(pers) (pers & PER_MASK)
  8. /*
  9. * Change personality of the currently running process.
  10. */
  11. #define set_personality(pers) (current->personality = (pers))
  12. #endif /* _LINUX_PERSONALITY_H */