Update.
[glibc.git] / nis / rpcsvc / nis_cache.x
blob91870d8a48c8ecc8e45c6fe6ae84c7e6039a3d51
1 /*
2  *      nis_cache.x
3  *
4  *      Copyright (c) 1988-1992 Sun Microsystems Inc
5  *      All Rights Reserved.
6  */
8 %#pragma ident  "@(#)nis_cache.x        1.8     92/07/14 SMI"
11 #ifdef RPC_HDR
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.
26 % */
27 %#define COLD_START_FILE "/var/nis/NIS_COLD_START"
29 %enum pc_status {HIT, MISS, NEAR_MISS};
31 %extern int __nis_debuglevel;
34 #endif
36 #ifdef RPC_CLNT
37 %#include "../gen/nis_clnt.h"
38 #endif
40 program CACHEPROG {
41         version CACHE_VER_1 {
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;
46         } = 1;
47 } = 100301;