Home | History | Annotate | Download | only in rpcsvc
      1  0  stevel /*
      2  0  stevel  * CDDL HEADER START
      3  0  stevel  *
      4  0  stevel  * The contents of this file are subject to the terms of the
      5  0  stevel  * Common Development and Distribution License, Version 1.0 only
      6  0  stevel  * (the "License").  You may not use this file except in compliance
      7  0  stevel  * with the License.
      8  0  stevel  *
      9  0  stevel  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
     10  0  stevel  * or http://www.opensolaris.org/os/licensing.
     11  0  stevel  * See the License for the specific language governing permissions
     12  0  stevel  * and limitations under the License.
     13  0  stevel  *
     14  0  stevel  * When distributing Covered Code, include this CDDL HEADER in each
     15  0  stevel  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     16  0  stevel  * If applicable, add the following below this CDDL HEADER, with the
     17  0  stevel  * fields enclosed by brackets "[]" replaced with your own identifying
     18  0  stevel  * information: Portions Copyright [yyyy] [name of copyright owner]
     19  0  stevel  *
     20  0  stevel  * CDDL HEADER END
     21  0  stevel  */
     22  0  stevel /*
     23  0  stevel  * Copyright (c) 1991, Sun Microsystems Inc.
     24  0  stevel  */
     25  0  stevel 
     26  0  stevel /*
     27  0  stevel  *	nis_tags.h
     28  0  stevel  *
     29  0  stevel  *	This file contains the tags and statistics definitions. It is
     30  0  stevel  *	automatically included by nis.h
     31  0  stevel  */
     32  0  stevel 
     33  0  stevel #ifndef	_RPCSVC_NIS_TAGS_H
     34  0  stevel #define	_RPCSVC_NIS_TAGS_H
     35  0  stevel 
     36  0  stevel #pragma ident	"%Z%%M%	%I%	%E% SMI"
     37  0  stevel /* from file: zns_tags.h	1.7 Copyright (c) 1990 Sun Microsystems */
     38  0  stevel 
     39  0  stevel #ifdef	__cplusplus
     40  0  stevel extern "C" {
     41  0  stevel #endif
     42  0  stevel 
     43  0  stevel 
     44  0  stevel #define	NIS_DIR	"data"
     45  0  stevel 
     46  0  stevel /* Lookup and List function flags */
     47  0  stevel #define	FOLLOW_LINKS	(1<<0)	/* Follow link objects 			*/
     48  0  stevel #define	FOLLOW_PATH	(1<<1)	/* Follow the path in a table 		*/
     49  0  stevel #define	HARD_LOOKUP	(1<<2)	/* Block until successful 		*/
     50  0  stevel #define	ALL_RESULTS	(1<<3)	/* Retrieve all results 		*/
     51  0  stevel #define	NO_CACHE	(1<<4)	/* Do not return 'cached' results 	*/
     52  0  stevel #define	MASTER_ONLY	(1<<5)	/* Get value only from master server	*/
     53  0  stevel #define	EXPAND_NAME	(1<<6)	/* Expand partitially qualified names	*/
     54  0  stevel 
     55  0  stevel /* Semantic modification for table operations flags */
     56  0  stevel #define	RETURN_RESULT	(1<<7)	/* Return resulting object to client    */
     57  0  stevel #define	ADD_OVERWRITE	(1<<8)	/* Allow overwrites on ADD		*/
     58  0  stevel #define	REM_MULTIPLE	(1<<9)	/* Allow wildcard deletes		*/
     59  0  stevel #define	MOD_SAMEOBJ	(1<<10)	/* Check modified object before write	*/
     60  0  stevel #define	ADD_RESERVED	(1<<11)	/* Spare ADD semantic			*/
     61  0  stevel #define	REM_RESERVED	(1<<12)	/* Spare REM semantic			*/
     62  0  stevel #define	MOD_EXCLUSIVE	(1<<13)	/* Modify no overwrite on modified keys */
     63  0  stevel 
     64  0  stevel /* Lookup and List function flags (continued) */
     65  0  stevel #define	SOFT_LOOKUP	(1<<14)	/* The "old default" return on failure  */
     66  0  stevel 
     67  0  stevel /* Transport specific modifications to the operation */
     68  0  stevel #define	USE_DGRAM	(1<<16) /* Use a datagram transport 		*/
     69  0  stevel #define	NO_AUTHINFO	(1<<17) /* Don't bother attaching auth info	*/
     70  0  stevel 
     71  0  stevel /*
     72  0  stevel  * Declarations for "standard" NIS+ tags
     73  0  stevel  * State variable tags have values	0 - 2047
     74  0  stevel  * Statistic tags have values		2048 - 65535
     75  0  stevel  * User Tags have values		>2^16
     76  0  stevel  */
     77  0  stevel #define	TAG_DEBUG	1	/* set debug level 		*/
     78  0  stevel #define	TAG_STATS	2	/* Enable/disable statistics 	*/
     79  0  stevel #define	TAG_GCACHE	3	/* Flush the Group Cache	*/
     80  0  stevel #define	TAG_GCACHE_ALL	TAG_GCACHE
     81  0  stevel #define	TAG_DCACHE	4	/* Flush the directory cache	*/
     82  0  stevel #define	TAG_DCACHE_ONE	TAG_DCACHE
     83  0  stevel #define	TAG_OCACHE	5	/* Flush the Object Cache	*/
     84  0  stevel #define	TAG_SECURE	6	/* Set the security level 	*/
     85  0  stevel #define	TAG_TCACHE_ONE	7	/* Flush the table cache	*/
     86  0  stevel #define	TAG_DCACHE_ALL	8	/* Flush entire directory cache	*/
     87  0  stevel #define	TAG_TCACHE_ALL	9	/* Flush entire table cache	*/
     88  0  stevel #define	TAG_GCACHE_ONE	10	/* Flush one group object	*/
     89  0  stevel #define	TAG_DCACHE_ONE_REFRESH 11 /* Flush and refresh one DO	*/
     90  0  stevel #define	TAG_READONLY	12	/* Set read only mode		*/
     91  0  stevel #define	TAG_READWRITE	14	/* Reset read-write mode	*/
     92  0  stevel 
     93  0  stevel #define	TAG_OPSTATS	2048	/* NIS+ operations statistics   */
     94  0  stevel #define	TAG_THREADS	2049	/* Child process/thread status  */
     95  0  stevel #define	TAG_HEAP	2050	/* Heap usage statistics	*/
     96  0  stevel #define	TAG_UPDATES	2051	/* Updates to this service	*/
     97  0  stevel #define	TAG_VISIBLE	2052	/* First update that isn't replicated */
     98  0  stevel #define	TAG_S_DCACHE	2053	/* Directory cache statistics	*/
     99  0  stevel #define	TAG_S_OCACHE	2054	/* Object cache statistics	*/
    100  0  stevel #define	TAG_S_GCACHE	2055	/* Group cache statistics	*/
    101  0  stevel #define	TAG_S_STORAGE	2056	/* Group cache statistics	*/
    102  0  stevel #define	TAG_UPTIME	2057	/* Time that server has been up */
    103  0  stevel #define	TAG_DIRLIST	2058	/* Dir served by this server    */
    104  0  stevel #define	TAG_NISCOMPAT	2059	/* Whether supports NIS compat mode */
    105  0  stevel #define	TAG_DNSFORWARDING 2060	/* Whether DNS forwarding supported */
    106  0  stevel #define	TAG_SECURITY_LEVEL 2061	/* Security level of the server	*/
    107  0  stevel #define	TAG_ROOTSERVER	2062	/* Whether root server		*/
    108  0  stevel 
    109  0  stevel /*
    110  0  stevel  * Declarations for the Group object flags. Currently
    111  0  stevel  * there are only 3.
    112  0  stevel  */
    113  0  stevel #define	IMPMEM_GROUPS  1	/* Implicit Membership allowed 	*/
    114  0  stevel #define	RECURS_GROUPS  2	/* Recursive Groups allowed 	*/
    115  0  stevel #define	NEGMEM_GROUPS  4	/* Negative Groups allowed	*/
    116  0  stevel 
    117  0  stevel #ifdef	__cplusplus
    118  0  stevel }
    119  0  stevel #endif
    120  0  stevel 
    121  0  stevel #endif	/* _RPCSVC_NIS_TAGS_H */
    122