2 * This file contains all definitions that allow easy access to
3 * elements returned by most of the @i[SMS] queries.
5 * If the order of the arguments in the @i[SMS] queries change (again)
6 * then all that needs to be changed are the values of these items
7 * and all should be well, (hopefully :-).
9 * Chris D. Peterson - kit@athena
16 * Copyright 1988 by the Massachusetts Institute of Technology.
18 * For further information on copyright and distribution
19 * see the file mit-copyright.h
25 #include "mit-copyright.h"
27 /* Default SMS server to connect to */
28 #define SMS_SERVER "SMS.MIT.EDU:sms_db"
45 /* Cluster information queries */
55 /* Cluster Data information queries */
62 /* Delete Member from list queries. */
69 /* Filesys queries (attachmaint) */
87 /* Get List Of Member queries. */
93 #define GLOM_MAILLIST 4
97 /* General List information Queries. */
114 /* List Member information queries. */
121 /* Machine information queries */
130 /* Machine to Cluster mapping */
132 #define MAP_MACHINE 0
133 #define MAP_CLUSTER 1
136 /* NFS phys. queries. */
144 #define NFS_MODTIME 6
146 #define NFS_MODWITH 8
149 /* PO box infomarion queries */
161 #define Q_DIRECTORY 3
168 /* User Information queries */
184 /* User states (the value of argv[U_STATE] from a user query) */
185 #define US_NO_LOGIN_YET 0
186 #define US_REGISTERED 1
187 #define US_NO_PASSWD 2
189 #define US_NOT_ALLOWED 4
193 #define SVC_SERVICE 0
194 #define SVC_INTERVAL 1
198 #define SVC_DFCHECK 5
201 #define SVC_INPROGRESS 8
202 #define SVC_HARDERROR 9
203 #define SVC_ERRMSG 10
204 #define SVC_ACE_TYPE 11
205 #define SVC_ACE_NAME 12
206 #define SVC_MODTIME 13
208 #define SVC_MODWITH 15
211 /* Service add/update */
213 #define SC_INTERVAL 1
218 #define SC_ACE_TYPE 6
219 #define SC_ACE_NAME 7
222 /* Service/host tuples */
226 #define SH_OVERRIDE 3
228 #define SH_INPROGRESS 5
229 #define SH_HOSTERROR 6
232 #define SH_LASTSUCCESS 9
236 #define SH_MODTIME 13
238 #define SH_MODWITH 15
241 /* Service/host tuple add & updates */
242 #define SHI_SERVICE 0
243 #define SHI_MACHINE 1
250 #endif _sms_app_ /* Do not add anything after this line. */