1 /* 2 * Copyright (c) 1991, Sun Microsystems Inc. 3 */ 4 5 /* 6 * nis_tags.h 7 * 8 * This file contains the tags and statistics definitions. It is 9 * automatically included by nis.h 10 */ 11 12 #ifndef _RPCSVC_NIS_TAGS_H 13 #define _RPCSVC_NIS_TAGS_H 14 15 #if 0 16 #pragma ident "@(#)nis_tags.h 1.16 96/10/25 SMI" 17 #endif 18 /* from file: zns_tags.h 1.7 Copyright (c) 1990 Sun Microsystems */ 19 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 25 #define NIS_DIR "data" 26 27 /* Lookup and List function flags */ 28 #define FOLLOW_LINKS (1<<0) /* Follow link objects */ 29 #define FOLLOW_PATH (1<<1) /* Follow the path in a table */ 30 #define HARD_LOOKUP (1<<2) /* Block until successful */ 31 #define ALL_RESULTS (1<<3) /* Retrieve all results */ 32 #define NO_CACHE (1<<4) /* Do not return 'cached' results */ 33 #define MASTER_ONLY (1<<5) /* Get value only from master server */ 34 #define EXPAND_NAME (1<<6) /* Expand partitially qualified names */ 35 36 /* Semantic modification for table operations flags */ 37 #define RETURN_RESULT (1<<7) /* Return resulting object to client */ 38 #define ADD_OVERWRITE (1<<8) /* Allow overwrites on ADD */ 39 #define REM_MULTIPLE (1<<9) /* Allow wildcard deletes */ 40 #define MOD_SAMEOBJ (1<<10) /* Check modified object before write */ 41 #define ADD_RESERVED (1<<11) /* Spare ADD semantic */ 42 #define REM_RESERVED (1<<12) /* Spare REM semantic */ 43 #define MOD_EXCLUSIVE (1<<13) /* Modify no overwrite on modified keys */ 44 45 /* Lookup and List function flags (continued) */ 46 #define SOFT_LOOKUP (1<<14) /* The "old default" return on failure */ 47 48 /* Transport specific modifications to the operation */ 49 #define USE_DGRAM (1<<16) /* Use a datagram transport */ 50 #define NO_AUTHINFO (1<<17) /* Don't bother attaching auth info */ 51 52 /* 53 * Declarations for "standard" NIS+ tags 54 * State variable tags have values 0 - 2047 55 * Statistic tags have values 2048 - 65535 56 * User Tags have values >2^16 57 */ 58 #define TAG_DEBUG 1 /* set debug level */ 59 #define TAG_STATS 2 /* Enable/disable statistics */ 60 #define TAG_GCACHE 3 /* Flush the Group Cache */ 61 #define TAG_GCACHE_ALL TAG_GCACHE 62 #define TAG_DCACHE 4 /* Flush the directory cache */ 63 #define TAG_DCACHE_ONE TAG_DCACHE 64 #define TAG_OCACHE 5 /* Flush the Object Cache */ 65 #define TAG_SECURE 6 /* Set the security level */ 66 #define TAG_TCACHE_ONE 7 /* Flush the table cache */ 67 #define TAG_DCACHE_ALL 8 /* Flush entire directory cache */ 68 #define TAG_TCACHE_ALL 9 /* Flush entire table cache */ 69 #define TAG_GCACHE_ONE 10 /* Flush one group object */ 70 #define TAG_DCACHE_ONE_REFRESH 11 /* Flush and refresh one DO */ 71 #define TAG_READONLY 12 /* Set read only mode */ 72 #define TAG_READWRITE 14 /* Reset read-write mode */ 73 74 #define TAG_OPSTATS 2048 /* NIS+ operations statistics */ 75 #define TAG_THREADS 2049 /* Child process/thread status */ 76 #define TAG_HEAP 2050 /* Heap usage statistics */ 77 #define TAG_UPDATES 2051 /* Updates to this service */ 78 #define TAG_VISIBLE 2052 /* First update that isn't replicated */ 79 #define TAG_S_DCACHE 2053 /* Directory cache statistics */ 80 #define TAG_S_OCACHE 2054 /* Object cache statistics */ 81 #define TAG_S_GCACHE 2055 /* Group cache statistics */ 82 #define TAG_S_STORAGE 2056 /* Group cache statistics */ 83 #define TAG_UPTIME 2057 /* Time that server has been up */ 84 #define TAG_DIRLIST 2058 /* Dir served by this server */ 85 #define TAG_NISCOMPAT 2059 /* Whether supports NIS compat mode */ 86 #define TAG_DNSFORWARDING 2060 /* Whether DNS forwarding supported */ 87 #define TAG_SECURITY_LEVEL 2061 /* Security level of the server */ 88 #define TAG_ROOTSERVER 2062 /* Whether root server */ 89 90 /* 91 * Declarations for the Group object flags. Currently 92 * there are only 3. 93 */ 94 #define IMPMEM_GROUPS 1 /* Implicit Membership allowed */ 95 #define RECURS_GROUPS 2 /* Recursive Groups allowed */ 96 #define NEGMEM_GROUPS 4 /* Negative Groups allowed */ 97 98 #ifdef __cplusplus 99 } 100 #endif 101 102 #endif /* _RPCSVC_NIS_TAGS_H */ 103