Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ***   To edit the content of this header, modify the corresponding
     11  ***   source file (e.g. under external/kernel-headers/original/) then
     12  ***   run bionic/libc/kernel/tools/update_all.py
     13  ***
     14  ***   Any manual change here will be lost the next time this script will
     15  ***   be run. You've been warned!
     16  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef _UAPI_LINUX_PERSONALITY_H
     20 #define _UAPI_LINUX_PERSONALITY_H
     21 enum {
     22   UNAME26 = 0x0020000,
     23   ADDR_NO_RANDOMIZE = 0x0040000,
     24   FDPIC_FUNCPTRS = 0x0080000,
     25   MMAP_PAGE_ZERO = 0x0100000,
     26   ADDR_COMPAT_LAYOUT = 0x0200000,
     27   READ_IMPLIES_EXEC = 0x0400000,
     28   ADDR_LIMIT_32BIT = 0x0800000,
     29   SHORT_INODE = 0x1000000,
     30   WHOLE_SECONDS = 0x2000000,
     31   STICKY_TIMEOUTS = 0x4000000,
     32   ADDR_LIMIT_3GB = 0x8000000,
     33 };
     34 #define PER_CLEAR_ON_SETID (READ_IMPLIES_EXEC | ADDR_NO_RANDOMIZE | ADDR_COMPAT_LAYOUT | MMAP_PAGE_ZERO)
     35 enum {
     36   PER_LINUX = 0x0000,
     37   PER_LINUX_32BIT = 0x0000 | ADDR_LIMIT_32BIT,
     38   PER_LINUX_FDPIC = 0x0000 | FDPIC_FUNCPTRS,
     39   PER_SVR4 = 0x0001 | STICKY_TIMEOUTS | MMAP_PAGE_ZERO,
     40   PER_SVR3 = 0x0002 | STICKY_TIMEOUTS | SHORT_INODE,
     41   PER_SCOSVR3 = 0x0003 | STICKY_TIMEOUTS | WHOLE_SECONDS | SHORT_INODE,
     42   PER_OSR5 = 0x0003 | STICKY_TIMEOUTS | WHOLE_SECONDS,
     43   PER_WYSEV386 = 0x0004 | STICKY_TIMEOUTS | SHORT_INODE,
     44   PER_ISCR4 = 0x0005 | STICKY_TIMEOUTS,
     45   PER_BSD = 0x0006,
     46   PER_SUNOS = 0x0006 | STICKY_TIMEOUTS,
     47   PER_XENIX = 0x0007 | STICKY_TIMEOUTS | SHORT_INODE,
     48   PER_LINUX32 = 0x0008,
     49   PER_LINUX32_3GB = 0x0008 | ADDR_LIMIT_3GB,
     50   PER_IRIX32 = 0x0009 | STICKY_TIMEOUTS,
     51   PER_IRIXN32 = 0x000a | STICKY_TIMEOUTS,
     52   PER_IRIX64 = 0x000b | STICKY_TIMEOUTS,
     53   PER_RISCOS = 0x000c,
     54   PER_SOLARIS = 0x000d | STICKY_TIMEOUTS,
     55   PER_UW7 = 0x000e | STICKY_TIMEOUTS | MMAP_PAGE_ZERO,
     56   PER_OSF4 = 0x000f,
     57   PER_HPUX = 0x0010,
     58   PER_MASK = 0x00ff,
     59 };
     60 #endif
     61