diff options
Diffstat (limited to 'nis/rpcsvc/nis.h')
-rw-r--r-- | nis/rpcsvc/nis.h | 52 |
1 files changed, 23 insertions, 29 deletions
diff --git a/nis/rpcsvc/nis.h b/nis/rpcsvc/nis.h index f94b96cba4..c0d25325c1 100644 --- a/nis/rpcsvc/nis.h +++ b/nis/rpcsvc/nis.h @@ -46,14 +46,15 @@ __BEGIN_DECLS * which defines the tag values. This allows the tags to change without * having to change the nis.x file. * - * NOTE : DO NOT EDIT THIS FILE! It is automatically generated when - * rpcgen is run on the nis.x file. Note that there is a - * simple sed script to remove some unneeded lines. (See the - * Makefile target nis.h) + * NOTE : THIS FILE IS NOT GENERATED WITH RPCGEN ! SO YOU HAVE TO + * ADD ALL THE CHANGES ON nis_*.x FILES HERE AGAIN ! * + * I have removed all the Solaris internal structs and variables, + * because they are not supported, Sun changed them between various + * releases and they shouldn't be used in user programs. + * <kukuk@vt.uni-paderborn.de> */ -#pragma ident "@(#)nis_object.x 1.7 92/07/14 SMI" #ifndef __nis_object_h #define __nis_object_h @@ -94,6 +95,14 @@ enum zotypes { ENTRY_OBJ = 5, LINK_OBJ = 6, PRIVATE_OBJ = 7, + NIS_BOGUS_OBJ = 0, + NIS_NO_OBJ = 1, + NIS_DIRECTORY_OBJ = 2, + NIS_GROUP_OBJ = 3, + NIS_TABLE_OBJ = 4, + NIS_ENTRY_OBJ = 5, + NIS_LINK_OBJ = 6, + NIS_PRIVATE_OBJ = 7 }; typedef enum zotypes zotypes; extern bool_t xdr_zotypes __P ((XDR *, zotypes*)); @@ -472,30 +481,6 @@ struct fd_result { typedef struct fd_result fd_result; extern bool_t xdr_fd_result __P ((XDR *, fd_result*)); -/* - * Generic "hash" datastructures, used by all types of hashed data. - */ -struct nis_hash_data { - nis_name name; /* NIS name of hashed item */ - int keychain; /* It's hash key (for pop) */ - struct nis_hash_data *next; /* Hash collision pointer */ - struct nis_hash_data *prv_item; /* A serial, doubly linked list */ - struct nis_hash_data *nxt_item; /* of items in the hash table */ -}; -typedef struct nis_hash_data NIS_HASH_ITEM; - -struct nis_hash_table { - NIS_HASH_ITEM *keys[64]; /* A hash table of items */ - NIS_HASH_ITEM *first; /* The first "item" in serial list */ -}; -typedef struct nis_hash_table NIS_HASH_TABLE; - -/* Structure for storing dynamically allocated static data */ -struct nis_sdata { - void *buf; /* Memory allocation pointer */ - u_long size; /* Buffer size */ -}; - /* Generic client creating flags */ #define ZMH_VC 1 #define ZMH_DG 2 @@ -508,6 +493,15 @@ struct nis_sdata { #define NIS_CREATE_ACC 4 #define NIS_DESTROY_ACC 8 /* Test macros. a == access rights, m == desired rights. */ +#define NIS_WORLD(a, m) (((a) & (m)) != 0) +#define NIS_GROUP(a, m) (((a) & ((m) << 8)) != 0) +#define NIS_OWNER(a, m) (((a) & ((m) << 16)) != 0) +#define NIS_NOBODY(a, m) (((a) & ((m) << 24)) != 0) +/* + * EOL Alert - The following non-prefixed test macros are + * here for backward compatability, and will be not be present + * in future releases - use the NIS_*() macros above. + */ #define WORLD(a, m) (((a) & (m)) != 0) #define GROUP(a, m) (((a) & ((m) << 8)) != 0) #define OWNER(a, m) (((a) & ((m) << 16)) != 0) |