nis_tags.h revision 26207
1/*
2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
3 * unrestricted use provided that this legend is included on all tape
4 * media and as a part of the software program in whole or part.  Users
5 * may copy or modify Sun RPC without charge, but are not authorized
6 * to license or distribute it to anyone else except as part of a product or
7 * program developed by the user.
8 *
9 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
10 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
11 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
12 *
13 * Sun RPC is provided with no support and without any obligation on the
14 * part of Sun Microsystems, Inc. to assist in its use, correction,
15 * modification or enhancement.
16 *
17 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
18 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
19 * OR ANY PART THEREOF.
20 *
21 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
22 * or profits or other special, indirect and consequential damages, even if
23 * Sun has been advised of the possibility of such damages.
24 *
25 * Sun Microsystems, Inc.
26 * 2550 Garcia Avenue
27 * Mountain View, California  94043
28 */
29
30/*
31 * Copyright (c) 1991, Sun Microsystems Inc.
32 */
33
34/*
35 *	nis_tags.h
36 *
37 *	This file contains the tags and statistics definitions. It is
38 *	automatically included by nis.h
39 */
40
41#ifndef	_RPCSVC_NIS_TAGS_H
42#define	_RPCSVC_NIS_TAGS_H
43
44/* From: #pragma ident	"@(#)nis_tags.h	1.10	94/05/03 SMI" */
45/* from file: zns_tags.h	1.7 Copyright (c) 1990 Sun Microsystems */
46#pragma ident "$Id: nis_tags.h,v 1.2 1996/07/29 14:26:03 wpaul Exp $"
47
48#ifdef	__cplusplus
49extern "C" {
50#endif
51
52#ifndef ORIGINAL_DECLS
53#define		NIS_DIR "data"
54#endif
55
56/* Lookup and List function flags */
57#define	FOLLOW_LINKS	(1<<0)	/* Follow link objects 			*/
58#define	FOLLOW_PATH	(1<<1)	/* Follow the path in a table 		*/
59#define	HARD_LOOKUP	(1<<2)	/* Block until successful 		*/
60#define	ALL_RESULTS	(1<<3)	/* Retrieve all results 		*/
61#define	NO_CACHE	(1<<4)	/* Do not return 'cached' results 	*/
62#define	MASTER_ONLY	(1<<5)	/* Get value only from master server	*/
63#define	EXPAND_NAME	(1<<6)	/* Expand partitially qualified names	*/
64
65/* Semantic modification for table operations flags */
66#define	RETURN_RESULT	(1<<7)	/* Return resulting object to client    */
67#define	ADD_OVERWRITE	(1<<8)	/* Allow overwrites on ADD		*/
68#define	REM_MULTIPLE	(1<<9)	/* Allow wildcard deletes		*/
69#define	MOD_SAMEOBJ	(1<<10)	/* Check modified object before write	*/
70#define	ADD_RESERVED	(1<<11)	/* Spare ADD semantic			*/
71#define	REM_RESERVED	(1<<12)	/* Spare REM semantic			*/
72#ifdef ORIGINAL_DECLS
73#define	MOD_RESERVED	(1<<13)	/* Spare MOD semantic			*/
74#else
75#define	MOD_EXCLUSIVE	(1<<13)	/* Modify no overwrite on modified keys	*/
76#endif
77
78/* Transport specific modifications to the operation */
79#define	USE_DGRAM	(1<<16) /* Use a datagram transport 		*/
80#define	NO_AUTHINFO	(1<<17) /* Don't bother attaching auth info	*/
81
82/*
83 * Declarations for "standard" NIS+ tags
84 * State variable tags have values	0 - 2047
85 * Statistic tags have values		2048 - 65535
86 * User Tags have values		>2^16
87 */
88#define	TAG_DEBUG	1	/* set debug level 		*/
89#define	TAG_STATS	2	/* Enable/disable statistics 	*/
90#define	TAG_GCACHE	3	/* Flush the Group Cache	*/
91#ifndef ORIGINAL_DECLS
92#define	TAG_GCACHE_ALL	TAG_GCACHE
93#endif
94#define	TAG_DCACHE	4	/* Flush the directory cache	*/
95#ifndef ORIGINAL_DECLS
96#define	TAG_DCACHE_ONE	TAG_DCACHE
97#endif
98#define	TAG_OCACHE	5	/* Flush the Object Cache	*/
99#define	TAG_SECURE	6	/* Set the security level 	*/
100#ifndef ORIGINAL_DECLS
101#define	TAG_TCACHE_ONE	7	/* Flush the table cache	*/
102#define	TAG_DCACHE_ALL	8	/* Flush entire directory cache */
103#define TAG_TCACHE_ALL	9	/* Flush entire table cache	*/
104#define	TAG_GCACHE_ONE	10	/* Flush one group object	*/
105#define	TAG_DCACHE_ONE_REFRESH 11 /* Flush and refresh one DO	*/
106#endif
107
108#define	TAG_OPSTATS	2048	/* NIS+ operations statistics   */
109#define	TAG_THREADS	2049	/* Child process/thread status  */
110#define	TAG_HEAP	2050	/* Heap usage statistics	*/
111#define	TAG_UPDATES	2051	/* Updates to this service	*/
112#define	TAG_VISIBLE	2052	/* First update that isn't replicated */
113#define	TAG_S_DCACHE	2053	/* Directory cache statistics	*/
114#define	TAG_S_OCACHE	2054	/* Object cache statistics	*/
115#define	TAG_S_GCACHE	2055	/* Group cache statistics	*/
116#define	TAG_S_STORAGE	2056	/* Group cache statistics	*/
117#define	TAG_UPTIME	2057	/* Time that server has been up */
118#ifndef ORIGINAL_DECLS
119#define	TAG_DIRLIST	2058    /* Dir served by this server	*/
120#define	TAG_NISCOMPAT	2059    /* Whether supports NIS compat mode */
121#define	TAG_DNSFORWARDING 2060	/* Whether DNS forwarding supported*/
122#define	TAG_SECURITY_LEVEL 2061 /* Security level of the server */
123#define	TAG_ROOTSERVER	2062	/* Whether root server		*/
124#endif
125
126/*
127 * Declarations for the Group object flags. Currently
128 * there are only 3.
129 */
130#define	IMPMEM_GROUPS  1	/* Implicit Membership allowed 	*/
131#define	RECURS_GROUPS  2	/* Recursive Groups allowed 	*/
132#define	NEGMEM_GROUPS  4	/* Negative Groups allowed	*/
133
134#ifdef	__cplusplus
135}
136#endif
137
138#endif	/* _RPCSVC_NIS_TAGS_H */
139