4 * Copyright (c) 1988-1992 Sun Microsystems Inc
8 %#pragma ident "@(#)nis_cache.x 1.8 92/07/14 SMI"
12 %#include <rpc/types.h>
13 %#include <rpcsvc/nis.h>
15 %/* default cache file */
16 %#define CACHEFILE "/var/nis/NIS_SHARED_DIRCACHE"
18 %/* clients have to read-lock the cache file, and SVR4 locking requires that */
19 %/* the file be writable, but we don't want a world-writable cache file. */
20 %/* So... everyone agrees to use a different, world-writable file for the */
21 %/* locking operations, but the data is in CACHEFILE. */
22 %#define CACHELOCK "/usr/tmp/.NIS_DIR_CACHELOCK"
24 %/* the file containing one trusted XDR'ed directory object.
25 % * This has to be present for the system to work.
27 %#define COLD_START_FILE "/var/nis/NIS_COLD_START"
29 %enum pc_status {HIT, MISS, NEAR_MISS};
31 %extern int __nis_debuglevel;
37 %#include "../gen/nis_clnt.h"
42 void NIS_CACHE_ADD_ENTRY(fd_result) = 1;
43 void NIS_CACHE_REMOVE_ENTRY(directory_obj) = 2;
44 void NIS_CACHE_READ_COLDSTART(void) = 3;
45 void NIS_CACHE_REFRESH_ENTRY(string<>) = 4;