43 #ifndef _RPCSVC_NIS_DB_H 44 #define _RPCSVC_NIS_DB_H 57 #include <rpcsvc/nis.h> 72 DB_INTERNAL_ERROR = 8,
73 _DB_STATUS = 0xffffffff
75 typedef enum db_status db_status;
85 _DB_ACTION = 0xffffffff
87 typedef enum db_action db_action;
89 typedef entry_obj *entry_object_p;
92 u_int db_next_desc_len;
93 char *db_next_desc_val;
101 entry_object_p *objects_val;
113 extern bool_t db_initialize(
char *);
114 #ifdef ORIGINAL_DECLS 115 extern bool_t db_create_table(
char *, table_obj *);
116 extern bool_t db_destroy_table(
char *);
118 extern db_status db_create_table(
char *, table_obj *);
119 extern db_status db_destroy_table(
char *);
121 extern db_result *db_first_entry(
char *,
int, nis_attr *);
124 extern db_result *db_list_entries(
char *,
int, nis_attr *);
125 extern db_result *db_add_entry(
char *,
int, nis_attr *, entry_obj *);
126 extern db_result *db_remove_entry(
char *,
int, nis_attr *);
127 extern db_status db_checkpoint(
char *);
128 extern db_status db_standby(
char *);
129 #ifndef ORIGINAL_DECLS 130 extern db_status db_table_exists(
char *);
131 extern db_status db_unload_table(
char *);
137 extern bool_t db_initialize();
138 #ifdef ORIGINAL_DECLS 139 extern bool_t db_create_table();
140 extern bool_t db_destroy_table();
142 extern db_status db_create_table();
143 extern db_status db_destroy_table();
151 extern db_status db_checkpoint();
152 extern db_status db_standby();
153 #ifndef ORIGINAL_DECLS 154 extern db_status db_table_exists();
155 extern db_status db_unload_table();
156 extern void db_free_result();