/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* onc720 src/oncplus/usr/include/tirpc/rpcsvc/nis_cache.h 1.1 */ /* */ /* */ /* */ /* COPYRIGHT International Business Machines Corp. 1996,1999 */ /* All Rights Reserved */ /* */ /* IBM_PROLOG_END_TAG */ /* @(#)89 1.1 src/oncplus/usr/include/tirpc/rpcsvc/nis_cache.h, nisplus, onc720 1/21/99 14:39:00 */ /* * COMPONENT_NAME: onchdrs * * FUNCTIONS: none * * ORIGINS: 162 * */ #ifndef _RPCSVC_NIS_CACHE_H #define _RPCSVC_NIS_CACHE_H #include #include /* default cache file */ #define CACHEFILE "/var/nis/NIS_SHARED_DIRCACHE" /* clients have to read-lock the cache file, and SVR4 locking requires that */ /* the file be writable, but we don't want a world-writable cache file. */ /* So... everyone agrees to use a different, world-writable file for the */ /* locking operations, but the data is in CACHEFILE. */ #define CACHELOCK "/usr/tmp/.NIS_DIR_CACHELOCK" /* the file containing one trusted XDR'ed directory object. * This has to be present for the system to work. */ #define COLD_START_FILE "/var/nis/NIS_COLD_START" enum pc_status {HIT, MISS, NEAR_MISS}; extern int __nis_debuglevel; #define CACHEPROG ((u_long)100301) #define CACHE_VER_1 ((u_long)1) #define NIS_CACHE_ADD_ENTRY ((u_long)1) extern void *nis_cache_add_entry_1(); #define NIS_CACHE_REMOVE_ENTRY ((u_long)2) extern void *nis_cache_remove_entry_1(); #define NIS_CACHE_READ_COLDSTART ((u_long)3) extern void *nis_cache_read_coldstart_1(); #define NIS_CACHE_REFRESH_ENTRY ((u_long)4) extern void *nis_cache_refresh_entry_1(); #endif