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