2 * Please do not edit this file.
3 * It was generated using rpcgen.
6 #ifndef _NIS_CACHE_H_RPCGEN
7 #define _NIS_CACHE_H_RPCGEN
16 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
17 * unrestricted use provided that this legend is included on all tape
18 * media and as a part of the software program in whole or part. Users
19 * may copy or modify Sun RPC without charge, but are not authorized
20 * to license or distribute it to anyone else except as part of a product or
21 * program developed by the user or with the express written consent of
22 * Sun Microsystems, Inc.
24 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
25 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
26 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
28 * Sun RPC is provided with no support and without any obligation on the
29 * part of Sun Microsystems, Inc. to assist in its use, correction,
30 * modification or enhancement.
32 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
33 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
34 * OR ANY PART THEREOF.
36 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
37 * or profits or other special, indirect and consequential damages, even if
38 * Sun has been advised of the possibility of such damages.
40 * Sun Microsystems, Inc.
42 * Mountain View, California 94043
44 * @(#)nis_cache.x 1.11 94/05/03 SMI
45 * $FreeBSD: src/include/rpcsvc/nis_cache.x,v 1.3 1999/08/27 23:45:09 peter Exp $
46 * $DragonFly: src/include/rpcsvc/nis_cache.x,v 1.2 2003/06/17 04:25:58 dillon Exp $
48 #include <rpc/types.h>
49 #include <rpcsvc/nis.h>
51 /* default cache file */
52 #define CACHEFILE "/var/nis/NIS_SHARED_DIRCACHE"
54 /* clients have to read-lock the cache file, and SVR4 locking requires that */
55 /* the file be writable, but we don't want a world-writable cache file. */
56 /* So... everyone agrees to use a different, world-writable file for the */
57 /* locking operations, but the data is in CACHEFILE. */
58 #define CACHELOCK "/usr/tmp/.NIS_DIR_CACHELOCK"
60 /* the file containing one trusted XDR'ed directory object.
61 * This has to be present for the system to work.
63 #define COLD_START_FILE "/var/nis/NIS_COLD_START"
65 enum pc_status {HIT, MISS, NEAR_MISS};
67 extern int __nis_debuglevel;
71 #define CACHEPROG ((unsigned long)(100301))
72 #define CACHE_VER_1 ((unsigned long)(1))
74 extern void cacheprog_1(struct svc_req *rqstp, SVCXPRT *transp);
75 #define NIS_CACHE_ADD_ENTRY ((unsigned long)(1))
76 extern void * nis_cache_add_entry_1(fd_result *, CLIENT *);
77 extern void * nis_cache_add_entry_1_svc(fd_result *, struct svc_req *);
78 #define NIS_CACHE_REMOVE_ENTRY ((unsigned long)(2))
79 extern void * nis_cache_remove_entry_1(directory_obj *, CLIENT *);
80 extern void * nis_cache_remove_entry_1_svc(directory_obj *, struct svc_req *);
81 #define NIS_CACHE_READ_COLDSTART ((unsigned long)(3))
82 extern void * nis_cache_read_coldstart_1(void *, CLIENT *);
83 extern void * nis_cache_read_coldstart_1_svc(void *, struct svc_req *);
84 #define NIS_CACHE_REFRESH_ENTRY ((unsigned long)(4))
85 extern void * nis_cache_refresh_entry_1(char **, CLIENT *);
86 extern void * nis_cache_refresh_entry_1_svc(char **, struct svc_req *);
87 extern int cacheprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
93 #endif /* !_NIS_CACHE_H_RPCGEN */