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