backport to buster
[hcoop/debian/openafs.git] / src / util / dirpath_nt.h
1 /*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
4 *
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
8 */
9
10 #ifndef _DIRPATH_H
11 #define _DIRPATH_H
12
13 /* Dirpath package: Rationale and Usage
14 *
15 * With the port of AFS to Windows NT, it becomes necessary to support
16 * storing AFS system files (binaries, logs, etc.) in a user-specified
17 * installation directory. This breaks from the traditional notion of
18 * all AFS system files being stored under /usr/afs or /usr/vice.
19 *
20 * The core concept is that there is a dynamically determined installation
21 * directory that is the prefix to a well-known AFS tree. The structure
22 * of this well-known AFS tree remains unchanged. For example, AFS server
23 * binaries reside in <install dir>/usr/afs/bin, server configuration files
24 * reside in <install dir>/usr/afs/etc, etcetera. This scheme allows the
25 * flexibility required by NT, without requiring file-location changes
26 * on Unix (for which <install dir> can simply be null).
27 *
28 * Thus file paths can no longer be hard-coded; rather, all file paths are
29 * specified via the macros provided by this package.
30 *
31 * Utilizing a dynamically determined installation directory forces the
32 * notion of local versus canonical (wire-format) paths. A local path is
33 * fully qualified (with a syntax determined by the native filesystem type)
34 * whereas a canonical path specifies location only within the well-known AFS
35 * tree. Supporting the notion of canonical paths allows the same path to
36 * be sent to servers on different machines, having different installation
37 * directories, with the desired result.
38 *
39 * For example, 'bos create <mach> kaserver simple /usr/afs/bin/kasever' will
40 * work both on a Unix machine, where the kaserver executable actually resides
41 * in /usr/afs/bin, and on a NT machine, where the kaserver may reside in
42 * C:/Program Files/Transarc/AFS Server/usr/afs/bin.
43 *
44 * Conversion functions are provided that translate canonical (wire-format)
45 * paths to fully qualified local paths; see the documentation in dirpath.c
46 * for details. Note that these conversion functions also accomodate fully
47 * qualified paths on the wire, for exceptional cases where this feature
48 * may be required. Again, these conversion functions have been implemented
49 * such that no file-location changes are required on Unix.
50 *
51 * The path macros provided here are divided into local (AFSDIR_*) and
52 * canonical (AFSDIR_CANONICAL_*). The canonical macros MUST be used by
53 * commands that send a non-user-specified path to a server (i.e., over
54 * the wire). The local macros MUST be used in all other cases.
55 */
56
57
58
59 #include <afs/param.h>
60
61 #ifdef AFS_NT40_ENV
62 #include <windef.h>
63 #endif
64 #include <limits.h>
65
66 /* Max dir path size for afs install dirs */
67 #ifdef AFS_NT40_ENV
68 #define AFSDIR_PATH_MAX MAX_PATH
69 #else /* unices */
70 #define AFSDIR_PATH_MAX _POSIX_PATH_MAX
71 #endif
72
73
74 /* --------------------- Exported functions ---------------------- */
75
76
77 #define AFSDIR_CLIENT_PATHS_OK 0x1 /* client paths initialized correctly */
78 #define AFSDIR_SERVER_PATHS_OK 0x2 /* server paths initialized correctly */
79 extern unsigned int initAFSDirPath(void);
80
81 extern int
82 ConstructLocalPath(const char *cpath, const char *relativeTo,
83 char **fullPathBufp);
84 extern int
85 ConstructLocalBinPath(const char *cpath, char **fullPathBufp);
86 extern int
87 ConstructLocalLogPath(const char *cpath, char **fullPathBufp);
88
89
90
91 /* ----------------- Directory/file name macros ------------------ */
92
93 /* afs installation dir names */
94 #define AFSDIR_ETC_DIR "/etc"
95 #define AFSDIR_BIN_DIR "/bin"
96 #define AFSDIR_SERVER_ETC_DIR "/usr/afs/etc"
97 #define AFSDIR_SERVER_BIN_DIR "/usr/afs/bin"
98 #define AFSDIR_CLIENT_ETC_DIR "/usr/afs/etc"
99 #define AFSDIR_CORES_DIR "/usr/afs/etc/cores"
100 #define AFSDIR_DB_DIR "/usr/afs/etc/db"
101 #define AFSDIR_LOGS_DIR "/usr/afs/etc/logs"
102 #define AFSDIR_LOCAL_DIR "/usr/afs/local"
103 #define AFSDIR_BACKUP_DIR "/usr/afs/backup"
104 #define AFSDIR_MIGR_DIR "/usr/afs/local/migrate"
105 #define AFSDIR_BIN_FILE_DIR "/usr/afs/local/migrate/bin_files"
106 #define AFSDIR_BOSCONFIG_DIR "/usr/afs/local"
107 #define AFSDIR_BOSSERVER_DIR "/usr/afs/bin"
108
109 /* file names */
110 #define AFSDIR_THISCELL_FILE "ThisCell"
111 #define AFSDIR_CELLSERVDB_FILE "CellServDB"
112 #define AFSDIR_CELLALIAS_FILE "CellAlias"
113 #define AFSDIR_KEY_FILE "KeyFile"
114 #define AFSDIR_EXT_KEY_FILE "KeyFileExt"
115 #define AFSDIR_ULIST_FILE "UserList"
116 #define AFSDIR_NOAUTH_FILE "NoAuth"
117 #define AFSDIR_BUDBLOG_FILE "BackupLog"
118 #define AFSDIR_TAPECONFIG_FILE "tapeconfig"
119 #define AFSDIR_KALOGDB_FILE "AuthLog"
120 #define AFSDIR_KALOG_FILE "AuthLog"
121 #define AFSDIR_KADB_FILE "kaserver"
122 #define AFSDIR_NTPD_FILE "ntpd"
123 #define AFSDIR_PRDB_FILE "prdb"
124 #define AFSDIR_PTLOG_FILE "PtLog"
125 #define AFSDIR_KCONF_FILE "krb.conf"
126 #define AFSDIR_VLDB_FILE "vldb"
127 #define AFSDIR_VLOG_FILE "VLLog"
128 #define AFSDIR_CORE_FILE "core"
129 #define AFSDIR_SLVGLOG_FILE "SalvageLog"
130 #define AFSDIR_SALSRVLOG_FILE "SalsrvLog"
131 #define AFSDIR_SALVAGER_FILE "salvager"
132 #define AFSDIR_SALSRV_FILE "salvageserver"
133 #define AFSDIR_SLVGLOCK_FILE "salvage.lock"
134 #define AFSDIR_BOZCONF_FILE "BosConfig"
135 #define AFSDIR_BOZCONFNEW_FILE "BosConfig.new"
136 #define AFSDIR_BOZINIT_FILE "BozoInit"
137 #define AFSDIR_BOZLOG_FILE "BosLog"
138 #define AFSDIR_BOZRXBIND_FILE "bosserver.rxbind"
139 #define AFSDIR_BOSVR_FILE "bosserver"
140 #define AFSDIR_VOLSERLOG_FILE "VolserLog"
141 #define AFSDIR_AUDIT_FILE "Audit"
142 #define AFSDIR_KRB_EXCL_FILE "krb.excl"
143 #define AFSDIR_RXKAD_KEYTAB_FILE "rxkad.keytab"
144
145 #define AFSDIR_ROOTVOL_FILE "RootVolume"
146 #define AFSDIR_HOSTDUMP_FILE "hosts.dump"
147 #define AFSDIR_CLNTDUMP_FILE "client.dump"
148 #define AFSDIR_CBKDUMP_FILE "callback.dump"
149 #define AFSDIR_OLDSYSID_FILE "sysid.old"
150 #define AFSDIR_SYSID_FILE "sysid"
151 #define AFSDIR_FILELOG_FILE "FileLog"
152 #define AFSDIR_MIGRATE_LOGNAME "wtlog."
153
154 #define AFSDIR_FSSTATE_FILE "fsstate.dat"
155
156 #ifdef COMMENT
157 #define AFSDIR_CELLSERVDB_FILE_NTCLIENT "afsdcell.ini"
158 #else
159 #define AFSDIR_CELLSERVDB_FILE_NTCLIENT AFSDIR_CELLSERVDB_FILE
160 #endif
161 #define AFSDIR_CLIENT_CONFIG_FILE "openafs-client.conf"
162 #define AFSDIR_SERVER_CONFIG_FILE "openafs-server.conf"
163
164 #define AFSDIR_NETINFO_FILE "NetInfo"
165 #define AFSDIR_NETRESTRICT_FILE "NetRestrict"
166
167 #define AFSDIR_LOCALRESIDENCY_FILE "LocalResidency"
168 #define AFSDIR_WEIGHTINGCONST_FILE "Weight.LocalConstants"
169 #define AFSDIR_THRESHOLDCONST_FILE "Thershold.LocalConstants"
170
171 /* -------------- Canonical (wire-format) path macros -------------- */
172
173 /* Each of the following is a canonical form of the corresponding
174 * local (AFSDIR_*) path macro.
175 */
176
177 #define AFSDIR_CANONICAL_USR_DIRPATH "/usr"
178 #define AFSDIR_CANONICAL_SERVER_AFS_DIRPATH "/usr/afs"
179 #define AFSDIR_CANONICAL_CLIENT_VICE_DIRPATH "/usr/vice"
180 #ifdef AFS_DARWIN_ENV
181 #define AFSDIR_ALTERNATE_CLIENT_VICE_DIRPATH "/var/db/openafs"
182 #endif
183
184 #define AFSDIR_CANONICAL_SERVER_BIN_DIRPATH \
185 AFSDIR_CANONICAL_SERVER_AFS_DIRPATH "/" AFSDIR_BIN_DIR
186
187 #define AFSDIR_CANONICAL_SERVER_ETC_DIRPATH \
188 AFSDIR_CANONICAL_SERVER_AFS_DIRPATH "/" AFSDIR_ETC_DIR
189
190 #define AFSDIR_CANONICAL_SERVER_LOGS_DIRPATH \
191 AFSDIR_LOGS_DIR
192 /* AFSDIR_CANONICAL_SERVER_AFS_DIRPATH "/" AFSDIR_LOGS_DIR */
193
194 #define AFSDIR_CANONICAL_SERVER_LOCAL_DIRPATH \
195 AFSDIR_LOCAL_DIR
196 /* AFSDIR_CANONICAL_SERVER_AFS_DIRPATH "/" AFSDIR_LOCAL_DIR */
197
198 #define AFSDIR_CANONICAL_SERVER_SALVAGER_FILEPATH \
199 AFSDIR_CANONICAL_SERVER_BIN_DIRPATH "/" AFSDIR_SALVAGER_FILE
200
201 #define AFSDIR_CANONICAL_SERVER_SALSRV_FILEPATH \
202 AFSDIR_CANONICAL_SERVER_BIN_DIRPATH "/" AFSDIR_SALSRV_FILE
203
204 #define AFSDIR_CANONICAL_SERVER_SLVGLOG_FILEPATH \
205 AFSDIR_CANONICAL_SERVER_LOGS_DIRPATH "/" AFSDIR_SLVGLOG_FILE
206
207 #define AFSDIR_CANONICAL_SERVER_SALSRVLOG_FILEPATH \
208 AFSDIR_CANONICAL_SERVER_LOGS_DIRPATH "/" AFSDIR_SALSRVLOG_FILE
209
210
211 /* --------------------- Local path macros ---------------------- */
212
213 /* Note: On NT, these should be used only after calling initAFSDirPath().
214 * On Unix, the paths are implicitly initialized.
215 */
216
217 /* enums for indexes into the pathname array */
218 typedef enum afsdir_id {
219 AFSDIR_USR_DIRPATH_ID,
220 AFSDIR_SERVER_AFS_DIRPATH_ID,
221 AFSDIR_SERVER_ETC_DIRPATH_ID,
222 AFSDIR_SERVER_BIN_DIRPATH_ID,
223 AFSDIR_SERVER_CORES_DIRPATH_ID,
224 AFSDIR_SERVER_DB_DIRPATH_ID,
225 AFSDIR_SERVER_LOGS_DIRPATH_ID,
226 AFSDIR_SERVER_LOCAL_DIRPATH_ID,
227 AFSDIR_SERVER_BACKUP_DIRPATH_ID,
228 AFSDIR_CLIENT_VICE_DIRPATH_ID,
229 AFSDIR_CLIENT_ETC_DIRPATH_ID,
230 AFSDIR_SERVER_THISCELL_FILEPATH_ID,
231 AFSDIR_SERVER_CELLSERVDB_FILEPATH_ID,
232 AFSDIR_SERVER_NOAUTH_FILEPATH_ID,
233 AFSDIR_SERVER_KEY_FILEPATH_ID,
234 AFSDIR_SERVER_ULIST_FILEPATH_ID,
235 AFSDIR_SERVER_BUDBLOG_FILEPATH_ID,
236 AFSDIR_SERVER_TAPECONFIG_FILEPATH_ID,
237 AFSDIR_SERVER_KALOGDB_FILEPATH_ID,
238 AFSDIR_SERVER_KALOG_FILEPATH_ID,
239 AFSDIR_SERVER_KADB_FILEPATH_ID,
240 AFSDIR_SERVER_NTPD_FILEPATH_ID,
241 AFSDIR_SERVER_PRDB_FILEPATH_ID,
242 AFSDIR_SERVER_PTLOG_FILEPATH_ID,
243 AFSDIR_SERVER_KCONF_FILEPATH_ID,
244 AFSDIR_SERVER_VLDB_FILEPATH_ID,
245 AFSDIR_SERVER_VLOG_FILEPATH_ID,
246 AFSDIR_SERVER_CORELOG_FILEPATH_ID,
247 AFSDIR_SERVER_SLVGLOG_FILEPATH_ID,
248 AFSDIR_SERVER_SALVAGER_FILEPATH_ID,
249 AFSDIR_SERVER_BOZCONF_FILEPATH_ID,
250 AFSDIR_SERVER_BOZCONFNEW_FILEPATH_ID,
251 AFSDIR_SERVER_BOZINIT_FILEPATH_ID,
252 AFSDIR_SERVER_BOZLOG_FILEPATH_ID,
253 AFSDIR_SERVER_BOZRXBIND_FILEPATH_ID,
254 AFSDIR_SERVER_BOSVR_FILEPATH_ID,
255 AFSDIR_SERVER_SLVGLOCK_FILEPATH_ID,
256 AFSDIR_SERVER_VOLSERLOG_FILEPATH_ID,
257 AFSDIR_SERVER_ROOTVOL_FILEPATH_ID,
258 AFSDIR_SERVER_HOSTDUMP_FILEPATH_ID,
259 AFSDIR_SERVER_CLNTDUMP_FILEPATH_ID,
260 AFSDIR_SERVER_CBKDUMP_FILEPATH_ID,
261 AFSDIR_SERVER_OLDSYSID_FILEPATH_ID,
262 AFSDIR_SERVER_SYSID_FILEPATH_ID,
263 AFSDIR_SERVER_FILELOG_FILEPATH_ID,
264 AFSDIR_SERVER_AUDIT_FILEPATH_ID,
265 AFSDIR_CLIENT_THISCELL_FILEPATH_ID,
266 AFSDIR_CLIENT_CELLSERVDB_FILEPATH_ID,
267 AFSDIR_CLIENT_NETINFO_FILEPATH_ID,
268 AFSDIR_CLIENT_NETRESTRICT_FILEPATH_ID,
269 AFSDIR_SERVER_NETINFO_FILEPATH_ID,
270 AFSDIR_SERVER_NETRESTRICT_FILEPATH_ID,
271 AFSDIR_SERVER_WEIGHTING_CONSTANTS_FILEPATH_ID,
272 AFSDIR_SERVER_THRESHOLD_CONSTANTS_FILEPATH_ID,
273 AFSDIR_SERVER_MIGRATE_DIRPATH_ID,
274 AFSDIR_SERVER_MIGRATELOG_FILEPATH_ID,
275 AFSDIR_SERVER_BIN_FILE_DIRPATH_ID,
276 AFSDIR_CLIENT_CELLALIAS_FILEPATH_ID,
277 AFSDIR_SERVER_KRB_EXCL_FILEPATH_ID,
278 AFSDIR_SERVER_SALSRV_FILEPATH_ID,
279 AFSDIR_SERVER_SALSRVLOG_FILEPATH_ID,
280 AFSDIR_SERVER_FSSTATE_FILEPATH_ID,
281 AFSDIR_CLIENT_CONFIG_FILE_FILEPATH_ID,
282 AFSDIR_SERVER_CONFIG_FILE_FILEPATH_ID,
283 AFSDIR_SERVER_RXKAD_KEYTAB_FILEPATH_ID,
284 AFSDIR_PATHSTRING_MAX
285 } afsdir_id_t;
286
287 /* afs_getDirPath() returns a pointer to a string from an internal array of path strings
288 */
289 const char *afs_getDirPath(afsdir_id_t string_id);
290 /* For ABI compatibility with historical versions. */
291 const char *getDirPath(afsdir_id_t string_id);
292
293 /* Top level usr dir */
294 #define AFSDIR_USR_DIRPATH afs_getDirPath(AFSDIR_USR_DIRPATH_ID)
295
296 /* server subdir paths */
297 #define AFSDIR_SERVER_AFS_DIRPATH afs_getDirPath(AFSDIR_SERVER_AFS_DIRPATH_ID)
298 #define AFSDIR_SERVER_ETC_DIRPATH afs_getDirPath(AFSDIR_SERVER_ETC_DIRPATH_ID)
299 #define AFSDIR_SERVER_BIN_DIRPATH afs_getDirPath(AFSDIR_SERVER_BIN_DIRPATH_ID)
300 #define AFSDIR_SERVER_CORES_DIRPATH afs_getDirPath(AFSDIR_SERVER_CORES_DIRPATH_ID)
301 #define AFSDIR_SERVER_DB_DIRPATH afs_getDirPath(AFSDIR_SERVER_DB_DIRPATH_ID)
302 #define AFSDIR_SERVER_LOGS_DIRPATH afs_getDirPath(AFSDIR_SERVER_LOGS_DIRPATH_ID)
303 #define AFSDIR_SERVER_LOCAL_DIRPATH afs_getDirPath(AFSDIR_SERVER_LOCAL_DIRPATH_ID)
304 #define AFSDIR_SERVER_BACKUP_DIRPATH afs_getDirPath(AFSDIR_SERVER_BACKUP_DIRPATH_ID)
305 #define AFSDIR_SERVER_LOCAL_DIRPATH afs_getDirPath(AFSDIR_SERVER_LOCAL_DIRPATH_ID)
306 #define AFSDIR_SERVER_MIGRATE_DIRPATH afs_getDirPath(AFSDIR_SERVER_MIGRATE_DIRPATH_ID)
307 #define AFSDIR_SERVER_MIGRATE_DIRPATH afs_getDirPath(AFSDIR_SERVER_MIGRATE_DIRPATH_ID)
308
309 /* client subdir paths */
310 #define AFSDIR_CLIENT_VICE_DIRPATH afs_getDirPath(AFSDIR_CLIENT_VICE_DIRPATH_ID)
311 #define AFSDIR_CLIENT_ETC_DIRPATH afs_getDirPath(AFSDIR_CLIENT_ETC_DIRPATH_ID)
312 #define AFSDIR_SERVER_BIN_FILE_DIRPATH afs_getDirPath(AFSDIR_SERVER_BIN_FILE_DIRPATH_ID)
313
314 /* server file paths */
315 #define AFSDIR_SERVER_THISCELL_FILEPATH afs_getDirPath(AFSDIR_SERVER_THISCELL_FILEPATH_ID)
316 #define AFSDIR_SERVER_CELLSERVDB_FILEPATH afs_getDirPath(AFSDIR_SERVER_CELLSERVDB_FILEPATH_ID)
317 #define AFSDIR_SERVER_NOAUTH_FILEPATH afs_getDirPath(AFSDIR_SERVER_NOAUTH_FILEPATH_ID)
318 #define AFSDIR_SERVER_KEY_FILEPATH afs_getDirPath(AFSDIR_SERVER_KEY_FILEPATH_ID)
319 #define AFSDIR_SERVER_ULIST_FILEPATH afs_getDirPath(AFSDIR_SERVER_ULIST_FILEPATH_ID)
320 #define AFSDIR_SERVER_BUDBLOG_FILEPATH afs_getDirPath(AFSDIR_SERVER_BUDBLOG_FILEPATH_ID)
321 #define AFSDIR_SERVER_TAPECONFIG_FILEPATH afs_getDirPath(AFSDIR_SERVER_TAPECONFIG_FILEPATH_ID)
322 #define AFSDIR_SERVER_KALOGDB_FILEPATH afs_getDirPath(AFSDIR_SERVER_KALOGDB_FILEPATH_ID)
323 #define AFSDIR_SERVER_KALOG_FILEPATH afs_getDirPath(AFSDIR_SERVER_KALOG_FILEPATH_ID)
324 #define AFSDIR_SERVER_KADB_FILEPATH afs_getDirPath(AFSDIR_SERVER_KADB_FILEPATH_ID)
325 #define AFSDIR_SERVER_NTPD_FILEPATH afs_getDirPath(AFSDIR_SERVER_NTPD_FILEPATH_ID)
326 #define AFSDIR_SERVER_PRDB_FILEPATH afs_getDirPath(AFSDIR_SERVER_PRDB_FILEPATH_ID)
327 #define AFSDIR_SERVER_PTLOG_FILEPATH afs_getDirPath(AFSDIR_SERVER_PTLOG_FILEPATH_ID)
328 #define AFSDIR_SERVER_KCONF_FILEPATH afs_getDirPath(AFSDIR_SERVER_KCONF_FILEPATH_ID)
329 #define AFSDIR_SERVER_VLDB_FILEPATH afs_getDirPath(AFSDIR_SERVER_VLDB_FILEPATH_ID)
330 #define AFSDIR_SERVER_VLOG_FILEPATH afs_getDirPath(AFSDIR_SERVER_VLOG_FILEPATH_ID)
331 #define AFSDIR_SERVER_CORELOG_FILEPATH afs_getDirPath(AFSDIR_SERVER_CORELOG_FILEPATH_ID)
332 #define AFSDIR_SERVER_SLVGLOG_FILEPATH afs_getDirPath(AFSDIR_SERVER_SLVGLOG_FILEPATH_ID)
333 #define AFSDIR_SERVER_SALSRVLOG_FILEPATH afs_getDirPath(AFSDIR_SERVER_SALSRVLOG_FILEPATH_ID)
334 #define AFSDIR_SERVER_SALVAGER_FILEPATH afs_getDirPath(AFSDIR_SERVER_SALVAGER_FILEPATH_ID)
335 #define AFSDIR_SERVER_SALSRV_FILEPATH afs_getDirPath(AFSDIR_SERVER_SALSRV_FILEPATH_ID)
336 #define AFSDIR_SERVER_BOZCONF_FILEPATH afs_getDirPath(AFSDIR_SERVER_BOZCONF_FILEPATH_ID)
337 #define AFSDIR_SERVER_BOZCONFNEW_FILEPATH afs_getDirPath(AFSDIR_SERVER_BOZCONFNEW_FILEPATH_ID)
338 #define AFSDIR_SERVER_BOZINIT_FILEPATH afs_getDirPath(AFSDIR_SERVER_BOZINIT_FILEPATH_ID)
339 #define AFSDIR_SERVER_BOZLOG_FILEPATH afs_getDirPath(AFSDIR_SERVER_BOZLOG_FILEPATH_ID)
340 #define AFSDIR_SERVER_BOZRXBIND_FILEPATH afs_getDirPath(AFSDIR_SERVER_BOZRXBIND_FILEPATH_ID)
341 #define AFSDIR_SERVER_BOSVR_FILEPATH afs_getDirPath(AFSDIR_SERVER_BOSVR_FILEPATH_ID)
342 #define AFSDIR_SERVER_SLVGLOCK_FILEPATH afs_getDirPath(AFSDIR_SERVER_SLVGLOCK_FILEPATH_ID)
343 #define AFSDIR_SERVER_VOLSERLOG_FILEPATH afs_getDirPath(AFSDIR_SERVER_VOLSERLOG_FILEPATH_ID)
344 #define AFSDIR_SERVER_ROOTVOL_FILEPATH afs_getDirPath(AFSDIR_SERVER_ROOTVOL_FILEPATH_ID)
345 #define AFSDIR_SERVER_HOSTDUMP_FILEPATH afs_getDirPath(AFSDIR_SERVER_HOSTDUMP_FILEPATH_ID)
346 #define AFSDIR_SERVER_CLNTDUMP_FILEPATH afs_getDirPath(AFSDIR_SERVER_CLNTDUMP_FILEPATH_ID)
347 #define AFSDIR_SERVER_CBKDUMP_FILEPATH afs_getDirPath(AFSDIR_SERVER_CBKDUMP_FILEPATH_ID)
348 #define AFSDIR_SERVER_OLDSYSID_FILEPATH afs_getDirPath(AFSDIR_SERVER_OLDSYSID_FILEPATH_ID)
349 #define AFSDIR_SERVER_SYSID_FILEPATH afs_getDirPath(AFSDIR_SERVER_SYSID_FILEPATH_ID)
350 #define AFSDIR_SERVER_FILELOG_FILEPATH afs_getDirPath(AFSDIR_SERVER_FILELOG_FILEPATH_ID)
351 #define AFSDIR_SERVER_AUDIT_FILEPATH afs_getDirPath(AFSDIR_SERVER_AUDIT_FILEPATH_ID)
352 #define AFSDIR_SERVER_NETINFO_FILEPATH afs_getDirPath(AFSDIR_SERVER_NETINFO_FILEPATH_ID)
353 #define AFSDIR_SERVER_NETRESTRICT_FILEPATH afs_getDirPath(AFSDIR_SERVER_NETRESTRICT_FILEPATH_ID)
354 #define AFSDIR_SERVER_WEIGHTING_CONSTANTS_FILEPATH afs_getDirPath(AFSDIR_SERVER_WEIGHTING_CONSTANTS_FILEPATH_ID)
355 #define AFSDIR_SERVER_THRESHOLD_CONSTANTS_FILEPATH afs_getDirPath(AFSDIR_SERVER_THRESHOLD_CONSTANTS_FILEPATH_ID)
356 #define AFSDIR_SERVER_MIGRATELOG_FILEPATH afs_getDirPath(AFSDIR_SERVER_MIGRATELOG_FILEPATH_ID)
357 #define AFSDIR_SERVER_KRB_EXCL_FILEPATH afs_getDirPath(AFSDIR_SERVER_KRB_EXCL_FILEPATH_ID)
358 #define AFSDIR_SERVER_FSSTATE_FILEPATH afs_getDirPath(AFSDIR_SERVER_FSSTATE_FILEPATH_ID)
359 #define AFSDIR_SERVER_CONFIG_FILE_FILEPATH afs_getDirPath(AFSDIR_SERVER_CONFIG_FILE_FILEPATH_ID)
360 #define AFSDIR_SERVER_RXKAD_KEYTAB_FILEPATH afs_getDirPath(AFSDIR_SERVER_RXKAD_KEYTAB_FILEPATH_ID)
361
362 /* client file paths */
363 #define AFSDIR_CLIENT_CONFIG_FILE_FILEPATH afs_getDirPath(AFSDIR_CLIENT_CONFIG_FILE_FILEPATH_ID)
364 #define AFSDIR_CLIENT_THISCELL_FILEPATH afs_getDirPath(AFSDIR_CLIENT_THISCELL_FILEPATH_ID)
365 #define AFSDIR_CLIENT_CELLSERVDB_FILEPATH afs_getDirPath(AFSDIR_CLIENT_CELLSERVDB_FILEPATH_ID)
366 #define AFSDIR_CLIENT_NETINFO_FILEPATH afs_getDirPath(AFSDIR_CLIENT_NETINFO_FILEPATH_ID)
367 #define AFSDIR_CLIENT_NETRESTRICT_FILEPATH afs_getDirPath(AFSDIR_CLIENT_NETRESTRICT_FILEPATH_ID)
368
369 #endif /* _DIRPATH_H */