]>
Commit | Line | Data |
---|---|---|
08345b74 | 1 | /* This is the file infodefs.h for allmaint, the SMS client that allows |
2 | * a user to maintaint most important parts of the SMS database. | |
3 | * It Contains: Definitions | |
4 | * | |
5 | * Created: 6/8/88 | |
6 | * By: Chris D. Peterson | |
7 | * | |
8 | * $Source$ | |
9 | * $Author$ | |
10 | * $Header$ | |
11 | * | |
12 | * Copyright 1987, 1988 by the Massachusetts Institute of Technology. | |
13 | * | |
14 | * For further information on copyright and distribution | |
15 | * see the file mit-copyright.h | |
16 | */ | |
17 | ||
18 | /* | |
19 | * This file contains all the definitions that allow easy access to | |
20 | * elements returned by most of the SMS queries that return information. | |
21 | * | |
22 | * If order of the arguments in the SMS queries change (again) then all | |
23 | * that need to be changed is the values of these items and all | |
24 | * should be well. | |
25 | * | |
26 | * Chris D. Peterson - kit@athena | |
27 | * 6/8/88 | |
28 | */ | |
29 | ||
30 | #ifndef _infodefs_ | |
31 | #define _infodefs_ | |
32 | ||
33 | #include "mit-copyright.h" | |
34 | ||
461c03b6 | 35 | /* alias queries. */ |
08345b74 | 36 | |
461c03b6 | 37 | #define ALIAS_NAME 0 |
38 | #define ALIAS_TYPE 1 | |
39 | #define ALIAS_TRANS 2 | |
40 | #define ALIAS_END 3 | |
08345b74 | 41 | |
42 | /* Cluster information queries */ | |
43 | ||
44 | #define C_NAME 0 | |
45 | #define C_DESCRIPT 1 | |
46 | #define C_LOCATION 2 | |
47 | #define C_MODTIME 3 | |
48 | #define C_MODBY 4 | |
49 | #define C_MODWITH 5 | |
50 | #define C_END 6 | |
51 | ||
52 | /* Cluster Data information queries */ | |
53 | ||
54 | #define CD_NAME 0 | |
55 | #define CD_LABEL 1 | |
56 | #define CD_DATA 2 | |
57 | #define CD_END 3 | |
58 | ||
461c03b6 | 59 | /* Delete Member from list queries. */ |
60 | ||
61 | #define DM_LIST 0 | |
62 | #define DM_TYPE 1 | |
63 | #define DM_MEMBER 2 | |
64 | #define DM_END 3 | |
65 | ||
66 | /* Filesys queries (attachmaint) */ | |
67 | ||
68 | #define FS_NAME 0 | |
69 | #define FS_TYPE 1 | |
70 | #define FS_MACHINE 2 | |
71 | #define FS_PACK 3 | |
72 | #define FS_M_POINT 4 | |
73 | #define FS_ACCESS 5 | |
74 | #define FS_COMMENTS 6 | |
75 | #define FS_OWNER 7 | |
76 | #define FS_OWNERS 8 | |
77 | #define FS_CREATE 9 | |
78 | #define FS_L_TYPE 10 | |
79 | #define FS_MODTIME 11 | |
80 | #define FS_MODBY 12 | |
81 | #define FS_MODWITH 13 | |
82 | #define FS_END 14 | |
83 | ||
84 | /* Get List Of Member queries. */ | |
85 | ||
86 | #define GLOM_NAME 0 | |
87 | #define GLOM_ACTIVE 1 | |
88 | #define GLOM_PUBLIC 2 | |
89 | #define GLOM_HIDDEN 3 | |
90 | #define GLOM_MAILLIST 4 | |
91 | #define GLOM_GROUP 5 | |
92 | #define GLOM_END 6 | |
93 | ||
08345b74 | 94 | /* General List information Queries. */ |
95 | ||
96 | #define L_NAME 0 | |
97 | #define L_ACTIVE 1 | |
98 | #define L_PUBLIC 2 | |
99 | #define L_HIDDEN 3 | |
100 | #define L_MAILLIST 4 | |
101 | #define L_GROUP 5 | |
102 | #define L_GID 6 | |
103 | #define L_ACL_TYPE 7 | |
104 | #define L_ACL_NAME 8 | |
105 | #define L_DESC 9 | |
106 | #define L_MODTIME 10 | |
461c03b6 | 107 | #define L_MODBY 11 |
08345b74 | 108 | #define L_MODWITH 12 |
109 | #define L_END 13 | |
110 | ||
08345b74 | 111 | /* List Member information queries. */ |
112 | ||
113 | #define LM_LIST 0 | |
114 | #define LM_TYPE 1 | |
115 | #define LM_MEMBER 2 | |
116 | #define LM_END 3 | |
461c03b6 | 117 | |
118 | /* Machine information queries */ | |
119 | ||
120 | #define M_NAME 0 | |
121 | #define M_TYPE 1 | |
122 | #define M_MODTIME 2 | |
123 | #define M_MODBY 3 | |
124 | #define M_MODWITH 4 | |
125 | #define M_END 5 | |
126 | ||
127 | /* Machine to Cluster mapping */ | |
128 | ||
129 | #define MAP_MACHINE 0 | |
130 | #define MAP_CLUSTER 1 | |
131 | #define MAP_END 2 | |
08345b74 | 132 | |
133 | /* NFS phys. queries. */ | |
134 | ||
135 | #define NFS_NAME 0 | |
136 | #define NFS_DIR 1 | |
137 | #define NFS_DEVICE 2 | |
138 | #define NFS_STATUS 3 | |
139 | #define NFS_ALLOC 4 | |
140 | #define NFS_SIZE 5 | |
141 | #define NFS_MODTIME 6 | |
142 | #define NFS_MODBY 7 | |
143 | #define NFS_MODWITH 8 | |
144 | #define NFS_END 9 | |
145 | ||
08345b74 | 146 | /* PO box infomarion queries */ |
147 | ||
148 | #define PO_NAME 0 | |
149 | #define PO_TYPE 1 | |
150 | #define PO_MACHINE 2 | |
151 | #define PO_BOX 3 | |
152 | #define PO_END 4 | |
153 | ||
461c03b6 | 154 | /* Quota queries */ |
155 | ||
156 | #define Q_FILESYS 0 | |
157 | #define Q_LOGIN 1 | |
158 | #define Q_QUOTA 2 | |
159 | #define Q_DIRECTORY 3 | |
160 | #define Q_MACHINE 4 | |
161 | #define Q_MODTIME 5 | |
162 | #define Q_MODBY 6 | |
163 | #define Q_MODWITH 7 | |
164 | #define Q_END 8 | |
165 | ||
08345b74 | 166 | /* User Information queries */ |
167 | ||
168 | #define U_NAME 0 | |
169 | #define U_NEWNAME 1 | |
170 | #define U_UID 2 | |
171 | #define U_SHELL 3 | |
172 | #define U_LAST 4 | |
173 | #define U_FIRST 5 | |
174 | #define U_MIDDLE 6 | |
175 | #define U_STATE 7 | |
176 | #define U_MITID 8 | |
177 | #define U_CLASS 9 | |
178 | #define U_MODTIME 10 | |
179 | #define U_MODBY 11 | |
180 | #define U_MODWITH 12 | |
181 | #define U_END 13 | |
182 | ||
183 | #endif _infodefs_ /* Do not add anything after this line. */ | |
184 |