Dr Andrew Scott G7VAV

My photo
 
June 2025
Mo Tu We Th Fr Sa Su
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 1 2 3 4 5 6


nis_tags.h
001: /*
002:  * Copyright (c) 2010, Oracle America, Inc.
003:  *
004:  * Redistribution and use in source and binary forms, with or without
005:  * modification, are permitted provided that the following conditions are
006:  * met:
007:  *
008:  *     * Redistributions of source code must retain the above copyright
009:  *       notice, this list of conditions and the following disclaimer.
010:  *     * Redistributions in binary form must reproduce the above
011:  *       copyright notice, this list of conditions and the following
012:  *       disclaimer in the documentation and/or other materials
013:  *       provided with the distribution.
014:  *     * Neither the name of the "Oracle America, Inc." nor the names of its
015:  *       contributors may be used to endorse or promote products derived
016:  *       from this software without specific prior written permission.
017:  *
018:  *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
019:  *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
020:  *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
021:  *   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
022:  *   COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
023:  *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
024:  *   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
025:  *   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
026:  *   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
027:  *   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
028:  *   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
029:  *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
030:  */
031: 
032: /*
033:  *      nis_tags.h
034:  *
035:  *      This file contains the tags and statistics definitions. It is
036:  *      automatically included by nis.h
037:  */
038: 
039: #ifndef _RPCSVC_NIS_TAGS_H
040: #define _RPCSVC_NIS_TAGS_H
041: 
042: #if 0
043: #pragma ident   "@(#)nis_tags.h 1.16    96/10/25"
044: #endif
045: /* from file: zns_tags.h        1.7 */
046: 
047: #ifdef  __cplusplus
048: extern "C" {
049: #endif
050: 
051: 
052: #define NIS_DIR "data"
053: 
054: /* Lookup and List function flags */
055: #define FOLLOW_LINKS    (1<<0)  /* Follow link objects                  */
056: #define FOLLOW_PATH     (1<<1)  /* Follow the path in a table           */
057: #define HARD_LOOKUP     (1<<2)  /* Block until successful               */
058: #define ALL_RESULTS     (1<<3)  /* Retrieve all results                 */
059: #define NO_CACHE        (1<<4)  /* Do not return 'cached' results       */
060: #define MASTER_ONLY     (1<<5)  /* Get value only from master server    */
061: #define EXPAND_NAME     (1<<6)  /* Expand partitially qualified names   */
062: 
063: /* Semantic modification for table operations flags */
064: #define RETURN_RESULT   (1<<7)  /* Return resulting object to client    */
065: #define ADD_OVERWRITE   (1<<8)  /* Allow overwrites on ADD              */
066: #define REM_MULTIPLE    (1<<9)  /* Allow wildcard deletes               */
067: #define MOD_SAMEOBJ     (1<<10) /* Check modified object before write   */
068: #define ADD_RESERVED    (1<<11) /* Spare ADD semantic                   */
069: #define REM_RESERVED    (1<<12) /* Spare REM semantic                   */
070: #define MOD_EXCLUSIVE   (1<<13) /* Modify no overwrite on modified keys */
071: 
072: /* Lookup and List function flags (continued) */
073: #define SOFT_LOOKUP     (1<<14) /* The "old default" return on failure  */
074: 
075: /* Transport specific modifications to the operation */
076: #define USE_DGRAM       (1<<16) /* Use a datagram transport             */
077: #define NO_AUTHINFO     (1<<17) /* Don't bother attaching auth info     */
078: 
079: /*
080:  * Declarations for "standard" NIS+ tags
081:  * State variable tags have values      0 - 2047
082:  * Statistic tags have values           2048 - 65535
083:  * User Tags have values                >2^16
084:  */
085: #define TAG_DEBUG       1       /* set debug level              */
086: #define TAG_STATS       2       /* Enable/disable statistics    */
087: #define TAG_GCACHE      3       /* Flush the Group Cache        */
088: #define TAG_GCACHE_ALL  TAG_GCACHE
089: #define TAG_DCACHE      4       /* Flush the directory cache    */
090: #define TAG_DCACHE_ONE  TAG_DCACHE
091: #define TAG_OCACHE      5       /* Flush the Object Cache       */
092: #define TAG_SECURE      6       /* Set the security level       */
093: #define TAG_TCACHE_ONE  7       /* Flush the table cache        */
094: #define TAG_DCACHE_ALL  8       /* Flush entire directory cache */
095: #define TAG_TCACHE_ALL  9       /* Flush entire table cache     */
096: #define TAG_GCACHE_ONE  10      /* Flush one group object       */
097: #define TAG_DCACHE_ONE_REFRESH 11 /* Flush and refresh one DO   */
098: #define TAG_READONLY    12      /* Set read only mode           */
099: #define TAG_READWRITE   14      /* Reset read-write mode        */
100: 
101: #define TAG_OPSTATS     2048    /* NIS+ operations statistics   */
102: #define TAG_THREADS     2049    /* Child process/thread status  */
103: #define TAG_HEAP        2050    /* Heap usage statistics        */
104: #define TAG_UPDATES     2051    /* Updates to this service      */
105: #define TAG_VISIBLE     2052    /* First update that isn't replicated */
106: #define TAG_S_DCACHE    2053    /* Directory cache statistics   */
107: #define TAG_S_OCACHE    2054    /* Object cache statistics      */
108: #define TAG_S_GCACHE    2055    /* Group cache statistics       */
109: #define TAG_S_STORAGE   2056    /* Group cache statistics       */
110: #define TAG_UPTIME      2057    /* Time that server has been up */
111: #define TAG_DIRLIST     2058    /* Dir served by this server    */
112: #define TAG_NISCOMPAT   2059    /* Whether supports NIS compat mode */
113: #define TAG_DNSFORWARDING 2060  /* Whether DNS forwarding supported */
114: #define TAG_SECURITY_LEVEL 2061 /* Security level of the server */
115: #define TAG_ROOTSERVER  2062    /* Whether root server          */
116: 
117: /*
118:  * Declarations for the Group object flags. Currently
119:  * there are only 3.
120:  */
121: #define IMPMEM_GROUPS  1        /* Implicit Membership allowed  */
122: #define RECURS_GROUPS  2        /* Recursive Groups allowed     */
123: #define NEGMEM_GROUPS  4        /* Negative Groups allowed      */
124: 
125: #ifdef  __cplusplus
126: }
127: #endif
128: 
129: #endif  /* _RPCSVC_NIS_TAGS_H */
130: 


for client (none)
© Andrew Scott 2006 - 2025,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/