Back to index

glibc  2.9
nis_tags.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1991, Sun Microsystems Inc.
00003  */
00004 
00005 /*
00006  *     nis_tags.h
00007  *
00008  *     This file contains the tags and statistics definitions. It is
00009  *     automatically included by nis.h
00010  */
00011 
00012 #ifndef       _RPCSVC_NIS_TAGS_H
00013 #define       _RPCSVC_NIS_TAGS_H
00014 
00015 #if 0
00016 #pragma ident "@(#)nis_tags.h      1.16   96/10/25 SMI"
00017 #endif
00018 /* from file: zns_tags.h    1.7 Copyright (c) 1990 Sun Microsystems */
00019 
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023 
00024 
00025 #define       NIS_DIR       "data"
00026 
00027 /* Lookup and List function flags */
00028 #define       FOLLOW_LINKS  (1<<0) /* Follow link objects                    */
00029 #define       FOLLOW_PATH   (1<<1) /* Follow the path in a table             */
00030 #define       HARD_LOOKUP   (1<<2) /* Block until successful          */
00031 #define       ALL_RESULTS   (1<<3) /* Retrieve all results            */
00032 #define       NO_CACHE      (1<<4) /* Do not return 'cached' results  */
00033 #define       MASTER_ONLY   (1<<5) /* Get value only from master server      */
00034 #define       EXPAND_NAME   (1<<6) /* Expand partitially qualified names     */
00035 
00036 /* Semantic modification for table operations flags */
00037 #define       RETURN_RESULT (1<<7) /* Return resulting object to client    */
00038 #define       ADD_OVERWRITE (1<<8) /* Allow overwrites on ADD         */
00039 #define       REM_MULTIPLE  (1<<9) /* Allow wildcard deletes          */
00040 #define       MOD_SAMEOBJ   (1<<10)       /* Check modified object before write     */
00041 #define       ADD_RESERVED  (1<<11)       /* Spare ADD semantic                     */
00042 #define       REM_RESERVED  (1<<12)       /* Spare REM semantic                     */
00043 #define       MOD_EXCLUSIVE (1<<13)       /* Modify no overwrite on modified keys */
00044 
00045 /* Lookup and List function flags (continued) */
00046 #define       SOFT_LOOKUP   (1<<14)       /* The "old default" return on failure  */
00047 
00048 /* Transport specific modifications to the operation */
00049 #define       USE_DGRAM     (1<<16) /* Use a datagram transport              */
00050 #define       NO_AUTHINFO   (1<<17) /* Don't bother attaching auth info      */
00051 
00052 /*
00053  * Declarations for "standard" NIS+ tags
00054  * State variable tags have values 0 - 2047
00055  * Statistic tags have values             2048 - 65535
00056  * User Tags have values           >2^16
00057  */
00058 #define       TAG_DEBUG     1      /* set debug level          */
00059 #define       TAG_STATS     2      /* Enable/disable statistics       */
00060 #define       TAG_GCACHE    3      /* Flush the Group Cache    */
00061 #define       TAG_GCACHE_ALL       TAG_GCACHE
00062 #define       TAG_DCACHE    4      /* Flush the directory cache       */
00063 #define       TAG_DCACHE_ONE       TAG_DCACHE
00064 #define       TAG_OCACHE    5      /* Flush the Object Cache   */
00065 #define       TAG_SECURE    6      /* Set the security level   */
00066 #define       TAG_TCACHE_ONE       7      /* Flush the table cache    */
00067 #define       TAG_DCACHE_ALL       8      /* Flush entire directory cache    */
00068 #define       TAG_TCACHE_ALL       9      /* Flush entire table cache */
00069 #define       TAG_GCACHE_ONE       10     /* Flush one group object   */
00070 #define       TAG_DCACHE_ONE_REFRESH 11 /* Flush and refresh one DO   */
00071 #define       TAG_READONLY  12     /* Set read only mode              */
00072 #define       TAG_READWRITE 14     /* Reset read-write mode    */
00073 
00074 #define       TAG_OPSTATS   2048   /* NIS+ operations statistics   */
00075 #define       TAG_THREADS   2049   /* Child process/thread status  */
00076 #define       TAG_HEAP      2050   /* Heap usage statistics    */
00077 #define       TAG_UPDATES   2051   /* Updates to this service  */
00078 #define       TAG_VISIBLE   2052   /* First update that isn't replicated */
00079 #define       TAG_S_DCACHE  2053   /* Directory cache statistics      */
00080 #define       TAG_S_OCACHE  2054   /* Object cache statistics  */
00081 #define       TAG_S_GCACHE  2055   /* Group cache statistics   */
00082 #define       TAG_S_STORAGE 2056   /* Group cache statistics   */
00083 #define       TAG_UPTIME    2057   /* Time that server has been up */
00084 #define       TAG_DIRLIST   2058   /* Dir served by this server    */
00085 #define       TAG_NISCOMPAT 2059   /* Whether supports NIS compat mode */
00086 #define       TAG_DNSFORWARDING 2060      /* Whether DNS forwarding supported */
00087 #define       TAG_SECURITY_LEVEL 2061     /* Security level of the server    */
00088 #define       TAG_ROOTSERVER       2062   /* Whether root server             */
00089 
00090 /*
00091  * Declarations for the Group object flags. Currently
00092  * there are only 3.
00093  */
00094 #define       IMPMEM_GROUPS  1     /* Implicit Membership allowed     */
00095 #define       RECURS_GROUPS  2     /* Recursive Groups allowed        */
00096 #define       NEGMEM_GROUPS  4     /* Negative Groups allowed  */
00097 
00098 #ifdef __cplusplus
00099 }
00100 #endif
00101 
00102 #endif /* _RPCSVC_NIS_TAGS_H */