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 47#ifdef __cplusplus 48extern "C" { 49#endif 50 51#ifndef ORIGINAL_DECLS 52#define NIS_DIR "data" 53#endif 54 55/* Lookup and List function flags */ 56#define FOLLOW_LINKS (1<<0) /* Follow link objects */ 57#define FOLLOW_PATH (1<<1) /* Follow the path in a table */ 58#define HARD_LOOKUP (1<<2) /* Block until successful */ 59#define ALL_RESULTS (1<<3) /* Retrieve all results */ 60#define NO_CACHE (1<<4) /* Do not return 'cached' results */ 61#define MASTER_ONLY (1<<5) /* Get value only from master server */ 62#define EXPAND_NAME (1<<6) /* Expand partitially qualified names */ 63 64/* Semantic modification for table operations flags */ 65#define RETURN_RESULT (1<<7) /* Return resulting object to client */ 66#define ADD_OVERWRITE (1<<8) /* Allow overwrites on ADD */ 67#define REM_MULTIPLE (1<<9) /* Allow wildcard deletes */ 68#define MOD_SAMEOBJ (1<<10) /* Check modified object before write */ 69#define ADD_RESERVED (1<<11) /* Spare ADD semantic */ 70#define REM_RESERVED (1<<12) /* Spare REM semantic */ 71#ifdef ORIGINAL_DECLS 72#define MOD_RESERVED (1<<13) /* Spare MOD semantic */ 73#else 74#define MOD_EXCLUSIVE (1<<13) /* Modify no overwrite on modified keys */ 75#endif 76 77/* Transport specific modifications to the operation */ 78#define USE_DGRAM (1<<16) /* Use a datagram transport */ 79#define NO_AUTHINFO (1<<17) /* Don't bother attaching auth info */ 80 81/* 82 * Declarations for "standard" NIS+ tags 83 * State variable tags have values 0 - 2047 84 * Statistic tags have values 2048 - 65535 85 * User Tags have values >2^16 86 */ 87#define TAG_DEBUG 1 /* set debug level */ 88#define TAG_STATS 2 /* Enable/disable statistics */ 89#define TAG_GCACHE 3 /* Flush the Group Cache */ 90#ifndef ORIGINAL_DECLS 91#define TAG_GCACHE_ALL TAG_GCACHE 92#endif 93#define TAG_DCACHE 4 /* Flush the directory cache */ 94#ifndef ORIGINAL_DECLS 95#define TAG_DCACHE_ONE TAG_DCACHE 96#endif 97#define TAG_OCACHE 5 /* Flush the Object Cache */ 98#define TAG_SECURE 6 /* Set the security level */ 99#ifndef ORIGINAL_DECLS 100#define TAG_TCACHE_ONE 7 /* Flush the table cache */ 101#define TAG_DCACHE_ALL 8 /* Flush entire directory cache */ 102#define TAG_TCACHE_ALL 9 /* Flush entire table cache */ 103#define TAG_GCACHE_ONE 10 /* Flush one group object */ 104#define TAG_DCACHE_ONE_REFRESH 11 /* Flush and refresh one DO */ 105#endif 106 107#define TAG_OPSTATS 2048 /* NIS+ operations statistics */ 108#define TAG_THREADS 2049 /* Child process/thread status */ 109#define TAG_HEAP 2050 /* Heap usage statistics */ 110#define TAG_UPDATES 2051 /* Updates to this service */ 111#define TAG_VISIBLE 2052 /* First update that isn't replicated */ 112#define TAG_S_DCACHE 2053 /* Directory cache statistics */ 113#define TAG_S_OCACHE 2054 /* Object cache statistics */ 114#define TAG_S_GCACHE 2055 /* Group cache statistics */ 115#define TAG_S_STORAGE 2056 /* Group cache statistics */ 116#define TAG_UPTIME 2057 /* Time that server has been up */ 117#ifndef ORIGINAL_DECLS 118#define TAG_DIRLIST 2058 /* Dir served by this server */ 119#define TAG_NISCOMPAT 2059 /* Whether supports NIS compat mode */ 120#define TAG_DNSFORWARDING 2060 /* Whether DNS forwarding supported*/ 121#define TAG_SECURITY_LEVEL 2061 /* Security level of the server */ 122#define TAG_ROOTSERVER 2062 /* Whether root server */ 123#endif 124 125/* 126 * Declarations for the Group object flags. Currently 127 * there are only 3. 128 */ 129#define IMPMEM_GROUPS 1 /* Implicit Membership allowed */ 130#define RECURS_GROUPS 2 /* Recursive Groups allowed */ 131#define NEGMEM_GROUPS 4 /* Negative Groups allowed */ 132 133#ifdef __cplusplus 134} 135#endif 136 137#endif /* _RPCSVC_NIS_TAGS_H */ 138