Blame view

include/linux/personality.h 393 Bytes
b24413180   Greg Kroah-Hartman   License cleanup: ...
1
  /* SPDX-License-Identifier: GPL-2.0 */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2
3
  #ifndef _LINUX_PERSONALITY_H
  #define _LINUX_PERSONALITY_H
607ca46e9   David Howells   UAPI: (Scripted) ...
4
  #include <uapi/linux/personality.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
5
6
7
8
  /*
   * Return the base personality without flags.
   */
  #define personality(pers)	(pers & PER_MASK)
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
9
10
11
  /*
   * Change personality of the currently running process.
   */
9058f3b32   Richard Weinberger   Remove rest of ex...
12
  #define set_personality(pers)	(current->personality = (pers))
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
13
14
  
  #endif /* _LINUX_PERSONALITY_H */