1 /* Generated by ./xlat/gen.sh from ./xlat/keyctl_commands.in; do not edit. */
2 #if !(defined(KEYCTL_GET_KEYRING_ID) || (defined(HAVE_DECL_KEYCTL_GET_KEYRING_ID) && HAVE_DECL_KEYCTL_GET_KEYRING_ID))
3 # define KEYCTL_GET_KEYRING_ID 0
4 #endif
5 #if !(defined(KEYCTL_JOIN_SESSION_KEYRING) || (defined(HAVE_DECL_KEYCTL_JOIN_SESSION_KEYRING) && HAVE_DECL_KEYCTL_JOIN_SESSION_KEYRING))
6 # define KEYCTL_JOIN_SESSION_KEYRING 1
7 #endif
8 #if !(defined(KEYCTL_UPDATE) || (defined(HAVE_DECL_KEYCTL_UPDATE) && HAVE_DECL_KEYCTL_UPDATE))
9 # define KEYCTL_UPDATE 2
10 #endif
11 #if !(defined(KEYCTL_REVOKE) || (defined(HAVE_DECL_KEYCTL_REVOKE) && HAVE_DECL_KEYCTL_REVOKE))
12 # define KEYCTL_REVOKE 3
13 #endif
14 #if !(defined(KEYCTL_CHOWN) || (defined(HAVE_DECL_KEYCTL_CHOWN) && HAVE_DECL_KEYCTL_CHOWN))
15 # define KEYCTL_CHOWN 4
16 #endif
17 #if !(defined(KEYCTL_SETPERM) || (defined(HAVE_DECL_KEYCTL_SETPERM) && HAVE_DECL_KEYCTL_SETPERM))
18 # define KEYCTL_SETPERM 5
19 #endif
20 #if !(defined(KEYCTL_DESCRIBE) || (defined(HAVE_DECL_KEYCTL_DESCRIBE) && HAVE_DECL_KEYCTL_DESCRIBE))
21 # define KEYCTL_DESCRIBE 6
22 #endif
23 #if !(defined(KEYCTL_CLEAR) || (defined(HAVE_DECL_KEYCTL_CLEAR) && HAVE_DECL_KEYCTL_CLEAR))
24 # define KEYCTL_CLEAR 7
25 #endif
26 #if !(defined(KEYCTL_LINK) || (defined(HAVE_DECL_KEYCTL_LINK) && HAVE_DECL_KEYCTL_LINK))
27 # define KEYCTL_LINK 8
28 #endif
29 #if !(defined(KEYCTL_UNLINK) || (defined(HAVE_DECL_KEYCTL_UNLINK) && HAVE_DECL_KEYCTL_UNLINK))
30 # define KEYCTL_UNLINK 9
31 #endif
32 #if !(defined(KEYCTL_SEARCH) || (defined(HAVE_DECL_KEYCTL_SEARCH) && HAVE_DECL_KEYCTL_SEARCH))
33 # define KEYCTL_SEARCH 10
34 #endif
35 #if !(defined(KEYCTL_READ) || (defined(HAVE_DECL_KEYCTL_READ) && HAVE_DECL_KEYCTL_READ))
36 # define KEYCTL_READ 11
37 #endif
38 #if !(defined(KEYCTL_INSTANTIATE) || (defined(HAVE_DECL_KEYCTL_INSTANTIATE) && HAVE_DECL_KEYCTL_INSTANTIATE))
39 # define KEYCTL_INSTANTIATE 12
40 #endif
41 #if !(defined(KEYCTL_NEGATE) || (defined(HAVE_DECL_KEYCTL_NEGATE) && HAVE_DECL_KEYCTL_NEGATE))
42 # define KEYCTL_NEGATE 13
43 #endif
44 #if !(defined(KEYCTL_SET_REQKEY_KEYRING) || (defined(HAVE_DECL_KEYCTL_SET_REQKEY_KEYRING) && HAVE_DECL_KEYCTL_SET_REQKEY_KEYRING))
45 # define KEYCTL_SET_REQKEY_KEYRING 14
46 #endif
47 #if !(defined(KEYCTL_SET_TIMEOUT) || (defined(HAVE_DECL_KEYCTL_SET_TIMEOUT) && HAVE_DECL_KEYCTL_SET_TIMEOUT))
48 # define KEYCTL_SET_TIMEOUT 15
49 #endif
50 #if !(defined(KEYCTL_ASSUME_AUTHORITY) || (defined(HAVE_DECL_KEYCTL_ASSUME_AUTHORITY) && HAVE_DECL_KEYCTL_ASSUME_AUTHORITY))
51 # define KEYCTL_ASSUME_AUTHORITY 16
52 #endif
53 #if !(defined(KEYCTL_GET_SECURITY) || (defined(HAVE_DECL_KEYCTL_GET_SECURITY) && HAVE_DECL_KEYCTL_GET_SECURITY))
54 # define KEYCTL_GET_SECURITY 17
55 #endif
56 #if !(defined(KEYCTL_SESSION_TO_PARENT) || (defined(HAVE_DECL_KEYCTL_SESSION_TO_PARENT) && HAVE_DECL_KEYCTL_SESSION_TO_PARENT))
57 # define KEYCTL_SESSION_TO_PARENT 18
58 #endif
59 #if !(defined(KEYCTL_REJECT) || (defined(HAVE_DECL_KEYCTL_REJECT) && HAVE_DECL_KEYCTL_REJECT))
60 # define KEYCTL_REJECT 19
61 #endif
62 #if !(defined(KEYCTL_INSTANTIATE_IOV) || (defined(HAVE_DECL_KEYCTL_INSTANTIATE_IOV) && HAVE_DECL_KEYCTL_INSTANTIATE_IOV))
63 # define KEYCTL_INSTANTIATE_IOV 20
64 #endif
65 #if !(defined(KEYCTL_INVALIDATE) || (defined(HAVE_DECL_KEYCTL_INVALIDATE) && HAVE_DECL_KEYCTL_INVALIDATE))
66 # define KEYCTL_INVALIDATE 21
67 #endif
68 #if !(defined(KEYCTL_GET_PERSISTENT) || (defined(HAVE_DECL_KEYCTL_GET_PERSISTENT) && HAVE_DECL_KEYCTL_GET_PERSISTENT))
69 # define KEYCTL_GET_PERSISTENT 22
70 #endif
71 
72 #ifdef IN_MPERS
73 
74 # error static const struct xlat keyctl_commands in mpers mode
75 
76 #else
77 
78 static
79 const struct xlat keyctl_commands[] = {
80  XLAT(KEYCTL_GET_KEYRING_ID),
81  XLAT(KEYCTL_JOIN_SESSION_KEYRING),
82  XLAT(KEYCTL_UPDATE),
83  XLAT(KEYCTL_REVOKE),
84  XLAT(KEYCTL_CHOWN),
85  XLAT(KEYCTL_SETPERM),
86  XLAT(KEYCTL_DESCRIBE),
87  XLAT(KEYCTL_CLEAR),
88  XLAT(KEYCTL_LINK),
89  XLAT(KEYCTL_UNLINK),
90  XLAT(KEYCTL_SEARCH),
91  XLAT(KEYCTL_READ),
92  XLAT(KEYCTL_INSTANTIATE),
93  XLAT(KEYCTL_NEGATE),
94  XLAT(KEYCTL_SET_REQKEY_KEYRING),
95  XLAT(KEYCTL_SET_TIMEOUT),
96  XLAT(KEYCTL_ASSUME_AUTHORITY),
97  XLAT(KEYCTL_GET_SECURITY),
98  XLAT(KEYCTL_SESSION_TO_PARENT),
99  XLAT(KEYCTL_REJECT),
100  XLAT(KEYCTL_INSTANTIATE_IOV),
101  XLAT(KEYCTL_INVALIDATE),
102  XLAT(KEYCTL_GET_PERSISTENT),
103  XLAT_END
104 };
105 
106 #endif /* !IN_MPERS */
107