1 #define CP_mode                                     0
2 #define _CP_mode                                    (1<<0)
3 #define CP_ownership                                1
4 #define _CP_ownership                               (1<<1)
5 #define CP_timestamps                               2
6 #define _CP_timestamps                              (1<<2)
7 #define CP_context                                  3
8 #define _CP_context                                 (1<<3)
9 #define CP_xattr                                    4
10 #define _CP_xattr                                   (1<<4)
11 #define PS_PID                                      0
12 #define _PS_PID                                     (1<<0)
13 #define PS_PPID                                     1
14 #define _PS_PPID                                    (1<<1)
15 #define PS_PRI                                      2
16 #define _PS_PRI                                     (1<<2)
17 #define PS_NI                                       3
18 #define _PS_NI                                      (1<<3)
19 #define PS_ADDR                                     4
20 #define _PS_ADDR                                    (1<<4)
21 #define PS_SZ                                       5
22 #define _PS_SZ                                      (1<<5)
23 #define PS_RSS                                      6
24 #define _PS_RSS                                     (1<<6)
25 #define PS_PGID                                     7
26 #define _PS_PGID                                    (1<<7)
27 #define PS_VSZ                                      8
28 #define _PS_VSZ                                     (1<<8)
29 #define PS_MAJFL                                    9
30 #define _PS_MAJFL                                   (1<<9)
31 #define PS_MINFL                                    10
32 #define _PS_MINFL                                   (1<<10)
33 #define PS_PR                                       11
34 #define _PS_PR                                      (1<<11)
35 #define PS_PSR                                      12
36 #define _PS_PSR                                     (1<<12)
37 #define PS_RTPRIO                                   13
38 #define _PS_RTPRIO                                  (1<<13)
39 #define PS_SCH                                      14
40 #define _PS_SCH                                     (1<<14)
41 #define PS_CPU                                      15
42 #define _PS_CPU                                     (1<<15)
43 #define PS_COMM                                     16
44 #define _PS_COMM                                    (1<<16)
45 #define PS_TTY                                      17
46 #define _PS_TTY                                     (1<<17)
47 #define PS_WCHAN                                    18
48 #define _PS_WCHAN                                   (1<<18)
49 #define PS_LABEL                                    19
50 #define _PS_LABEL                                   (1<<19)
51 #define PS_COMMAND                                  20
52 #define _PS_COMMAND                                 (1<<20)
53 #define PS_CMDLINE                                  21
54 #define _PS_CMDLINE                                 (1<<21)
55 #define PS_ARGS                                     22
56 #define _PS_ARGS                                    (1<<22)
57 #define PS_NAME                                     23
58 #define _PS_NAME                                    (1<<23)
59 #define PS_CMD                                      24
60 #define _PS_CMD                                     (1<<24)
61 #define PS_UID                                      25
62 #define _PS_UID                                     (1<<25)
63 #define PS_USER                                     26
64 #define _PS_USER                                    (1<<26)
65 #define PS_RUID                                     27
66 #define _PS_RUID                                    (1<<27)
67 #define PS_RUSER                                    28
68 #define _PS_RUSER                                   (1<<28)
69 #define PS_GID                                      29
70 #define _PS_GID                                     (1<<29)
71 #define PS_GROUP                                    30
72 #define _PS_GROUP                                   (1<<30)
73 #define PS_RGID                                     31
74 #define _PS_RGID                                    (1<<31)
75 #define PS_RGROUP                                   32
76 #define _PS_RGROUP                                  (1LL<<32)
77 #define PS_TIME                                     33
78 #define _PS_TIME                                    (1LL<<33)
79 #define PS_ELAPSED                                  34
80 #define _PS_ELAPSED                                 (1LL<<34)
81 #define PS_TIME_                                    35
82 #define _PS_TIME_                                   (1LL<<35)
83 #define PS_C                                        36
84 #define _PS_C                                       (1LL<<36)
85 #define PS__VSZ                                     37
86 #define _PS__VSZ                                    (1LL<<37)
87 #define PS__MEM                                     38
88 #define _PS__MEM                                    (1LL<<38)
89 #define PS__CPU                                     39
90 #define _PS__CPU                                    (1LL<<39)
91 #define PS_VIRT                                     40
92 #define _PS_VIRT                                    (1LL<<40)
93 #define PS_RES                                      41
94 #define _PS_RES                                     (1LL<<41)
95 #define PS_SHR                                      42
96 #define _PS_SHR                                     (1LL<<42)
97 #define PS_READ                                     43
98 #define _PS_READ                                    (1LL<<43)
99 #define PS_WRITE                                    44
100 #define _PS_WRITE                                   (1LL<<44)
101 #define PS_IO                                       45
102 #define _PS_IO                                      (1LL<<45)
103 #define PS_DREAD                                    46
104 #define _PS_DREAD                                   (1LL<<46)
105 #define PS_DWRITE                                   47
106 #define _PS_DWRITE                                  (1LL<<47)
107 #define PS_SWAP                                     48
108 #define _PS_SWAP                                    (1LL<<48)
109 #define PS_DIO                                      49
110 #define _PS_DIO                                     (1LL<<49)
111 #define PS_STIME                                    50
112 #define _PS_STIME                                   (1LL<<50)
113 #define PS_F                                        51
114 #define _PS_F                                       (1LL<<51)
115 #define PS_S                                        52
116 #define _PS_S                                       (1LL<<52)
117 #define PS_STAT                                     53
118 #define _PS_STAT                                    (1LL<<53)
119 #define KEY_UP                                       0
120 #define _KEY_UP                                      (1<<0)
121 #define KEY_DOWN                                     1
122 #define _KEY_DOWN                                    (1<<1)
123 #define KEY_RIGHT                                    2
124 #define _KEY_RIGHT                                   (1<<2)
125 #define KEY_LEFT                                     3
126 #define _KEY_LEFT                                    (1<<3)
127 #define KEY_PGUP                                     4
128 #define _KEY_PGUP                                    (1<<4)
129 #define KEY_PGDN                                     5
130 #define _KEY_PGDN                                    (1<<5)
131 #define KEY_HOME                                     6
132 #define _KEY_HOME                                    (1<<6)
133 #define KEY_END                                      7
134 #define _KEY_END                                     (1<<7)
135 #define KEY_INSERT                                   8
136 #define _KEY_INSERT                                  (1<<8)
137 #define KEY_F1                                       9
138 #define _KEY_F1                                      (1<<9)
139 #define KEY_F2                                       10
140 #define _KEY_F2                                      (1<<10)
141 #define KEY_F3                                       11
142 #define _KEY_F3                                      (1<<11)
143 #define KEY_F4                                       12
144 #define _KEY_F4                                      (1<<12)
145 #define KEY_F5                                       13
146 #define _KEY_F5                                      (1<<13)
147 #define KEY_F6                                       14
148 #define _KEY_F6                                      (1<<14)
149 #define KEY_F7                                       15
150 #define _KEY_F7                                      (1<<15)
151 #define KEY_F8                                       16
152 #define _KEY_F8                                      (1<<16)
153 #define KEY_F9                                       17
154 #define _KEY_F9                                      (1<<17)
155 #define KEY_SUP                                      18
156 #define _KEY_SUP                                     (1<<18)
157 #define KEY_AUP                                      19
158 #define _KEY_AUP                                     (1<<19)
159 #define KEY_CUP                                      20
160 #define _KEY_CUP                                     (1<<20)
161 #define KEY_SDOWN                                    21
162 #define _KEY_SDOWN                                   (1<<21)
163 #define KEY_ADOWN                                    22
164 #define _KEY_ADOWN                                   (1<<22)
165 #define KEY_CDOWN                                    23
166 #define _KEY_CDOWN                                   (1<<23)
167 #define KEY_SRIGHT                                   24
168 #define _KEY_SRIGHT                                  (1<<24)
169 #define KEY_ARIGHT                                   25
170 #define _KEY_ARIGHT                                  (1<<25)
171 #define KEY_CRIGHT                                   26
172 #define _KEY_CRIGHT                                  (1<<26)
173 #define KEY_SLEFT                                    27
174 #define _KEY_SLEFT                                   (1<<27)
175 #define KEY_ALEFT                                    28
176 #define _KEY_ALEFT                                   (1<<28)
177 #define KEY_CLEFT                                    29
178 #define _KEY_CLEFT                                   (1<<29)
179 #define KEY_SF1                                      30
180 #define _KEY_SF1                                     (1<<30)
181 #define KEY_AF1                                      31
182 #define _KEY_AF1                                     (1<<31)
183 #define KEY_CF1                                      32
184 #define _KEY_CF1                                     (1LL<<32)
185