]>
Commit | Line | Data |
---|---|---|
0a2c64cb | 1 | /* This is the file infodefs.h for the SMS Client, which allows a nieve |
2 | * user to quickly and easily maintain most parts of the SMS database. | |
3 | * It Contains: useful typdefs. | |
08345b74 | 4 | * |
5 | * Created: 6/8/88 | |
6 | * By: Chris D. Peterson | |
7 | * | |
8 | * $Source$ | |
9 | * $Author$ | |
10 | * $Header$ | |
11 | * | |
0a2c64cb | 12 | * Copyright 1988 by the Massachusetts Institute of Technology. |
08345b74 | 13 | * |
14 | * For further information on copyright and distribution | |
15 | * see the file mit-copyright.h | |
16 | */ | |
17 | ||
18 | /* | |
0a2c64cb | 19 | * This file contains all definitions that allow easy access to |
20 | * elements returned by most of the @i[SMS] queries. | |
08345b74 | 21 | * |
0a2c64cb | 22 | * If the order of the arguments in the @i[SMS] queries change (again) |
23 | * then all that needs to be changed are the values of these items | |
24 | * and all should be well, (hopefully :-). | |
08345b74 | 25 | * |
26 | * Chris D. Peterson - kit@athena | |
0a2c64cb | 27 | * 7/27/88 |
08345b74 | 28 | */ |
29 | ||
30 | #ifndef _infodefs_ | |
31 | #define _infodefs_ | |
32 | ||
33 | #include "mit-copyright.h" | |
34 | ||
402461ad | 35 | #define NAME 0 |
36 | ||
075fe5bb | 37 | /* get_ace_use */ |
402461ad | 38 | |
075fe5bb | 39 | #define ACE_TYPE 0 |
40 | #define ACE_NAME 1 | |
41 | #define ACE_END 2 | |
402461ad | 42 | |
461c03b6 | 43 | /* alias queries. */ |
08345b74 | 44 | |
075fe5bb | 45 | #define ALIAS_NAME 0 |
461c03b6 | 46 | #define ALIAS_TYPE 1 |
47 | #define ALIAS_TRANS 2 | |
48 | #define ALIAS_END 3 | |
08345b74 | 49 | |
50 | /* Cluster information queries */ | |
51 | ||
075fe5bb | 52 | #define C_NAME 0 |
08345b74 | 53 | #define C_DESCRIPT 1 |
54 | #define C_LOCATION 2 | |
55 | #define C_MODTIME 3 | |
56 | #define C_MODBY 4 | |
57 | #define C_MODWITH 5 | |
58 | #define C_END 6 | |
59 | ||
60 | /* Cluster Data information queries */ | |
61 | ||
075fe5bb | 62 | #define CD_NAME 0 |
08345b74 | 63 | #define CD_LABEL 1 |
64 | #define CD_DATA 2 | |
65 | #define CD_END 3 | |
66 | ||
461c03b6 | 67 | /* Delete Member from list queries. */ |
68 | ||
69 | #define DM_LIST 0 | |
70 | #define DM_TYPE 1 | |
71 | #define DM_MEMBER 2 | |
72 | #define DM_END 3 | |
73 | ||
74 | /* Filesys queries (attachmaint) */ | |
75 | ||
075fe5bb | 76 | #define FS_NAME 0 |
461c03b6 | 77 | #define FS_TYPE 1 |
78 | #define FS_MACHINE 2 | |
79 | #define FS_PACK 3 | |
80 | #define FS_M_POINT 4 | |
81 | #define FS_ACCESS 5 | |
82 | #define FS_COMMENTS 6 | |
83 | #define FS_OWNER 7 | |
84 | #define FS_OWNERS 8 | |
85 | #define FS_CREATE 9 | |
86 | #define FS_L_TYPE 10 | |
87 | #define FS_MODTIME 11 | |
88 | #define FS_MODBY 12 | |
89 | #define FS_MODWITH 13 | |
90 | #define FS_END 14 | |
91 | ||
92 | /* Get List Of Member queries. */ | |
93 | ||
075fe5bb | 94 | #define GLOM_NAME 0 |
461c03b6 | 95 | #define GLOM_ACTIVE 1 |
96 | #define GLOM_PUBLIC 2 | |
97 | #define GLOM_HIDDEN 3 | |
98 | #define GLOM_MAILLIST 4 | |
99 | #define GLOM_GROUP 5 | |
100 | #define GLOM_END 6 | |
101 | ||
08345b74 | 102 | /* General List information Queries. */ |
103 | ||
075fe5bb | 104 | #define L_NAME 0 |
08345b74 | 105 | #define L_ACTIVE 1 |
106 | #define L_PUBLIC 2 | |
107 | #define L_HIDDEN 3 | |
108 | #define L_MAILLIST 4 | |
109 | #define L_GROUP 5 | |
110 | #define L_GID 6 | |
075fe5bb | 111 | #define L_ACE_TYPE 7 |
112 | #define L_ACE_NAME 8 | |
08345b74 | 113 | #define L_DESC 9 |
114 | #define L_MODTIME 10 | |
402461ad | 115 | #define L_MODBY 11 |
08345b74 | 116 | #define L_MODWITH 12 |
117 | #define L_END 13 | |
118 | ||
08345b74 | 119 | /* List Member information queries. */ |
120 | ||
121 | #define LM_LIST 0 | |
122 | #define LM_TYPE 1 | |
123 | #define LM_MEMBER 2 | |
124 | #define LM_END 3 | |
461c03b6 | 125 | |
126 | /* Machine information queries */ | |
127 | ||
075fe5bb | 128 | #define M_NAME 0 |
461c03b6 | 129 | #define M_TYPE 1 |
130 | #define M_MODTIME 2 | |
131 | #define M_MODBY 3 | |
132 | #define M_MODWITH 4 | |
133 | #define M_END 5 | |
134 | ||
135 | /* Machine to Cluster mapping */ | |
136 | ||
137 | #define MAP_MACHINE 0 | |
138 | #define MAP_CLUSTER 1 | |
139 | #define MAP_END 2 | |
08345b74 | 140 | |
141 | /* NFS phys. queries. */ | |
142 | ||
075fe5bb | 143 | #define NFS_NAME 0 |
08345b74 | 144 | #define NFS_DIR 1 |
145 | #define NFS_DEVICE 2 | |
146 | #define NFS_STATUS 3 | |
147 | #define NFS_ALLOC 4 | |
148 | #define NFS_SIZE 5 | |
149 | #define NFS_MODTIME 6 | |
150 | #define NFS_MODBY 7 | |
151 | #define NFS_MODWITH 8 | |
152 | #define NFS_END 9 | |
153 | ||
08345b74 | 154 | /* PO box infomarion queries */ |
155 | ||
075fe5bb | 156 | #define PO_NAME 0 |
08345b74 | 157 | #define PO_TYPE 1 |
075fe5bb | 158 | #define PO_BOX 2 |
159 | #define PO_END 3 | |
08345b74 | 160 | |
461c03b6 | 161 | /* Quota queries */ |
162 | ||
163 | #define Q_FILESYS 0 | |
164 | #define Q_LOGIN 1 | |
165 | #define Q_QUOTA 2 | |
166 | #define Q_DIRECTORY 3 | |
167 | #define Q_MACHINE 4 | |
168 | #define Q_MODTIME 5 | |
169 | #define Q_MODBY 6 | |
170 | #define Q_MODWITH 7 | |
171 | #define Q_END 8 | |
172 | ||
08345b74 | 173 | /* User Information queries */ |
174 | ||
075fe5bb | 175 | #define U_NAME 0 |
176 | #define U_UID 1 | |
177 | #define U_SHELL 2 | |
178 | #define U_LAST 3 | |
179 | #define U_FIRST 4 | |
180 | #define U_MIDDLE 5 | |
181 | #define U_STATE 6 | |
182 | #define U_MITID 7 | |
183 | #define U_CLASS 8 | |
184 | #define U_MODTIME 9 | |
185 | #define U_MODBY 10 | |
186 | #define U_MODWITH 11 | |
187 | #define U_END 12 | |
08345b74 | 188 | |
b0b6d04d | 189 | /* User states (the value of argv[U_STATE] from a user query) */ |
190 | #define US_NO_LOGIN_YET 0 | |
191 | #define US_REGISTERED 1 | |
192 | #define US_NO_PASSWD 2 | |
193 | #define US_DELETED 3 | |
194 | #define US_NOT_ALLOWED 4 | |
195 | #define US_END 5 | |
08345b74 | 196 | |
364fbc82 | 197 | /* Service info */ |
198 | #define SVC_SERVICE 0 | |
199 | #define SVC_INTERVAL 1 | |
200 | #define SVC_TARGET 2 | |
201 | #define SVC_SCRIPT 3 | |
202 | #define SVC_DFGEN 4 | |
203 | #define SVC_DFCHECK 5 | |
204 | #define SVC_TYPE 6 | |
205 | #define SVC_ENABLE 7 | |
206 | #define SVC_INPROGRESS 8 | |
207 | #define SVC_HARDERROR 9 | |
208 | #define SVC_ERRMSG 10 | |
209 | #define SVC_ACE_TYPE 11 | |
210 | #define SVC_ACE_NAME 12 | |
211 | #define SVC_MODTIME 13 | |
212 | #define SVC_MODBY 14 | |
213 | #define SVC_MODWITH 15 | |
214 | #define SVC_END 16 | |
215 | ||
216 | /* Service add/update */ | |
217 | #define SC_SERVICE 0 | |
218 | #define SC_INTERVAL 1 | |
219 | #define SC_TARGET 2 | |
220 | #define SC_SCRIPT 3 | |
221 | #define SC_TYPE 4 | |
222 | #define SC_ENABLE 5 | |
223 | #define SC_ACE_TYPE 6 | |
224 | #define SC_ACE_NAME 7 | |
225 | #define SC_END 8 | |
226 | ||
227 | /* Service/host tuples */ | |
228 | #define SH_SERVICE 0 | |
229 | #define SH_MACHINE 1 | |
230 | #define SH_ENABLE 2 | |
231 | #define SH_OVERRIDE 3 | |
232 | #define SH_SUCCESS 4 | |
233 | #define SH_INPROGRESS 5 | |
234 | #define SH_HOSTERROR 6 | |
235 | #define SH_ERRMSG 7 | |
236 | #define SH_LASTTRY 8 | |
237 | #define SH_LASTSUCCESS 9 | |
238 | #define SH_VALUE1 10 | |
239 | #define SH_VALUE2 11 | |
240 | #define SH_VALUE3 12 | |
241 | #define SH_MODTIME 13 | |
242 | #define SH_MODBY 14 | |
243 | #define SH_MODWITH 15 | |
244 | #define SH_END 16 | |
245 | ||
246 | /* Service/host tuple add & updates */ | |
247 | #define SHI_SERVICE 0 | |
248 | #define SHI_MACHINE 1 | |
249 | #define SHI_ENABLE 2 | |
250 | #define SHI_VALUE1 3 | |
251 | #define SHI_VALUE2 4 | |
252 | #define SHI_VALUE3 5 | |
253 | #define SHI_END 6 | |
254 | ||
b0b6d04d | 255 | #endif _infodefs_ /* Do not add anything after this line. */ |