mirror of
https://github.com/openharmony/third_party_Linux_Kernel.git
synced 2026-08-24 23:51:31 -04:00
7a09b52600
Change-Id: I8420a745de2a76dd4c0ea79b24da12653cbe7b52
17 lines
354 B
C
17 lines
354 B
C
#ifndef _LINUX_PERSONALITY_H
|
|
#define _LINUX_PERSONALITY_H
|
|
|
|
#include <uapi/linux/personality.h>
|
|
|
|
/*
|
|
* Return the base personality without flags.
|
|
*/
|
|
#define personality(pers) (pers & PER_MASK)
|
|
|
|
/*
|
|
* Change personality of the currently running process.
|
|
*/
|
|
#define set_personality(pers) (current->personality = (pers))
|
|
|
|
#endif /* _LINUX_PERSONALITY_H */
|