prctl.h
001: #ifndef _LINUX_PRCTL_H
002: #define _LINUX_PRCTL_H
003: 
004: 
005: 
006: #define PR_SET_PDEATHSIG  1  
007: #define PR_GET_PDEATHSIG  2  
008: 
009: 
010: #define PR_GET_DUMPABLE   3
011: #define PR_SET_DUMPABLE   4
012: 
013: 
014: #define PR_GET_UNALIGN    5
015: #define PR_SET_UNALIGN    6
016: # define PR_UNALIGN_NOPRINT     1       
017: # define PR_UNALIGN_SIGBUS      2       
018: 
019: 
020: 
021: #define PR_GET_KEEPCAPS   7
022: #define PR_SET_KEEPCAPS   8
023: 
024: 
025: #define PR_GET_FPEMU  9
026: #define PR_SET_FPEMU 10
027: # define PR_FPEMU_NOPRINT       1       
028: # define PR_FPEMU_SIGFPE        2       
029: 
030: 
031: #define PR_GET_FPEXC    11
032: #define PR_SET_FPEXC    12
033: # define PR_FP_EXC_SW_ENABLE    0x80    
034: # define PR_FP_EXC_DIV          0x010000        
035: # define PR_FP_EXC_OVF          0x020000        
036: # define PR_FP_EXC_UND          0x040000        
037: # define PR_FP_EXC_RES          0x080000        
038: # define PR_FP_EXC_INV          0x100000        
039: # define PR_FP_EXC_DISABLED     0       
040: # define PR_FP_EXC_NONRECOV     1       
041: # define PR_FP_EXC_ASYNC        2       
042: # define PR_FP_EXC_PRECISE      3       
043: 
044: 
045: 
046: #define PR_GET_TIMING   13
047: #define PR_SET_TIMING   14
048: # define PR_TIMING_STATISTICAL  0       
049: 
050: # define PR_TIMING_TIMESTAMP    1       
051: 
052: 
053: #define PR_SET_NAME    15               
054: #define PR_GET_NAME    16               
055: 
056: 
057: #define PR_GET_ENDIAN   19
058: #define PR_SET_ENDIAN   20
059: # define PR_ENDIAN_BIG          0
060: # define PR_ENDIAN_LITTLE       1       
061: # define PR_ENDIAN_PPC_LITTLE   2       
062: 
063: 
064: #define PR_GET_SECCOMP  21
065: #define PR_SET_SECCOMP  22
066: 
067: 
068: #define PR_CAPBSET_READ 23
069: #define PR_CAPBSET_DROP 24
070: 
071: 
072: #define PR_GET_TSC 25
073: #define PR_SET_TSC 26
074: # define PR_TSC_ENABLE          1       
075: # define PR_TSC_SIGSEGV         2       
076: 
077: 
078: #define PR_GET_SECUREBITS 27
079: #define PR_SET_SECUREBITS 28
080: 
081: 
082: 
083: 
084: 
085: #define PR_SET_TIMERSLACK 29
086: #define PR_GET_TIMERSLACK 30
087: 
088: #define PR_TASK_PERF_EVENTS_DISABLE             31
089: #define PR_TASK_PERF_EVENTS_ENABLE              32
090: 
091: 
092: 
093: 
094: 
095: #define PR_MCE_KILL     33
096: # define PR_MCE_KILL_CLEAR   0
097: # define PR_MCE_KILL_SET     1
098: 
099: # define PR_MCE_KILL_LATE    0
100: # define PR_MCE_KILL_EARLY   1
101: # define PR_MCE_KILL_DEFAULT 2
102: 
103: #define PR_MCE_KILL_GET 34
104: 
105: 
106: 
107: 
108: #define PR_SET_MM               35
109: # define PR_SET_MM_START_CODE           1
110: # define PR_SET_MM_END_CODE             2
111: # define PR_SET_MM_START_DATA           3
112: # define PR_SET_MM_END_DATA             4
113: # define PR_SET_MM_START_STACK          5
114: # define PR_SET_MM_START_BRK            6
115: # define PR_SET_MM_BRK                  7
116: 
117: 
118: 
119: 
120: 
121: #define PR_SET_PTRACER 0x59616d61
122: # define PR_SET_PTRACER_ANY ((unsigned long)-1)
123: 
124: 
125: 
126: 
127: 
128: 
129: 
130: 
131: 
132: 
133: 
134: 
135: 
136: #define PR_SET_NO_NEW_PRIVS 38
137: #define PR_GET_NO_NEW_PRIVS 39
138: 
139: #endif 
140: 
      
      
      
      
   
      
      
         
            
            © Andrew Scott 2006 -
            2025, 
            All Rights Reserved