40 #ifndef _RPCSVC_NISLIB_H 41 #define _RPCSVC_NISLIB_H 55 extern void nis_freeresult(nis_result *);
56 extern nis_result * nis_lookup(nis_name, u_long);
57 extern nis_result * nis_list(nis_name, u_long,
58 int (*)(nis_name, nis_object *,
void *),
void *);
59 extern nis_result * nis_add(nis_name, nis_object *);
60 extern nis_result * nis_remove(nis_name, nis_object *);
61 extern nis_result * nis_modify(nis_name, nis_object *);
63 extern nis_result * nis_add_entry(nis_name, nis_object *, u_long);
64 extern nis_result * nis_remove_entry(nis_name, nis_object *, u_long);
65 extern nis_result * nis_modify_entry(nis_name, nis_object *, u_long);
66 extern nis_result * nis_first_entry(nis_name);
67 extern nis_result * nis_next_entry(nis_name, netobj *);
69 extern nis_error nis_mkdir(nis_name, nis_server *);
70 extern nis_error nis_rmdir(nis_name, nis_server *);
71 extern name_pos nis_dir_cmp(nis_name, nis_name);
73 extern nis_name * nis_getnames(nis_name);
74 extern void nis_freenames(nis_name *);
75 extern nis_name nis_domain_of(nis_name);
76 extern nis_name nis_leaf_of(nis_name);
77 extern nis_name nis_leaf_of_r(
const nis_name,
char *,
size_t);
78 extern nis_name nis_name_of(nis_name);
79 extern nis_name nis_local_group(
void);
80 extern nis_name nis_local_directory(
void);
81 extern nis_name nis_local_principal(
void);
82 extern nis_name nis_local_host(
void);
84 extern void nis_destroy_object(nis_object *);
85 extern nis_object * nis_clone_object(nis_object *, nis_object *);
86 extern void nis_print_object(nis_object *);
88 extern char * nis_sperrno(nis_error);
89 extern void nis_perror(nis_error,
char *);
90 extern char * nis_sperror(nis_error,
char *);
91 extern void nis_lerror(nis_error,
char *);
93 extern void nis_print_group_entry(nis_name);
94 extern bool_t nis_ismember(nis_name, nis_name);
95 extern nis_error nis_creategroup(nis_name, u_long);
96 extern nis_error nis_destroygroup(nis_name);
97 extern nis_error nis_addmember(nis_name, nis_name);
98 extern nis_error nis_removemember(nis_name, nis_name);
99 extern nis_error nis_verifygroup(nis_name);
101 extern void nis_freeservlist(nis_server **);
102 extern nis_server ** nis_getservlist(nis_name);
103 extern nis_error nis_stats(nis_server *, nis_tag *,
int, nis_tag **);
104 extern nis_error nis_servstate(nis_server *, nis_tag *,
int, nis_tag **);
105 extern void nis_freetags(nis_tag *,
int);
107 extern nis_result * nis_checkpoint(nis_name);
108 extern void nis_ping(nis_name, u_long, nis_object *);
117 extern char ** __break_name(nis_name,
int *);
118 extern int __name_distance(
char **,
char **);
119 extern nis_result * nis_make_error(nis_error, u_long, u_long, u_long, u_long);
120 extern nis_attr * __cvt2attr(
int *,
char **);
121 extern void nis_free_request(ib_request *);
122 extern nis_error nis_get_request(nis_name, nis_object *, netobj*, ib_request*);
123 extern nis_object * nis_read_obj(
char *);
124 extern int nis_write_obj(
char *, nis_object *);
125 extern int nis_in_table(nis_name, NIS_HASH_TABLE *,
int *);
126 extern int nis_insert_item(NIS_HASH_ITEM *, NIS_HASH_TABLE *);
127 extern NIS_HASH_ITEM * nis_find_item(nis_name, NIS_HASH_TABLE *);
128 extern NIS_HASH_ITEM * nis_remove_item(nis_name, NIS_HASH_TABLE *);
129 extern void nis_insert_name(nis_name, NIS_HASH_TABLE *);
130 extern void nis_remove_name(nis_name, NIS_HASH_TABLE *);
131 extern CLIENT * nis_make_rpchandle(nis_server *,
int, u_long, u_long, u_long,
133 extern void * nis_get_static_storage(
struct nis_sdata *, u_long, u_long);
134 extern char * nis_data(
char *);
135 extern void nis_print_rights(u_long);
136 extern void nis_print_directory(directory_obj *);
137 extern void nis_print_group(group_obj *);
138 extern void nis_print_table(table_obj *);
139 extern void nis_print_link(link_obj *);
140 extern void nis_print_entry(entry_obj *);
141 extern nis_object * nis_get_object(
char *,
char *,
char *, u_long, u_long,
143 extern nis_server * __nis_init_callback(CLIENT *,
144 int (*)(nis_name, nis_object *,
void *),
void *);
145 extern int nis_getdtblsize(
void);
146 extern int __nis_run_callback(netobj *, u_long,
struct timeval *, CLIENT *);
148 extern log_result *nis_dumplog(nis_server *, nis_name, u_long);
149 extern log_result *nis_dump(nis_server *, nis_name,
150 int (*)(nis_name, nis_object *,
void *));
152 extern bool_t __do_ismember(nis_name, nis_name,
153 nis_result *(*)(nis_name, u_long));
154 extern nis_name __nis_map_group(nis_name);
155 extern nis_name __nis_map_group_r(nis_name,
char*,
size_t);
157 extern nis_error __nis_CacheBind(
char *, directory_obj *);
158 extern nis_error __nis_CacheSearch(
char *, directory_obj *);
159 extern bool_t __nis_CacheRemoveEntry(directory_obj *);
160 extern void __nis_CacheRestart(
void);
161 extern void __nis_CachePrint(
void);
162 extern void __nis_CacheDumpStatistics(
void);
163 extern bool_t writeColdStartFile(directory_obj *);
165 extern CLIENT * __get_ti_clnt(
char *, CLIENT *,
char **, pid_t *);
166 extern int __strcmp_case_insens(
char *,
char *);
167 extern int __strncmp_case_insens(
char *,
char *);
169 extern fd_result * nis_finddirectory(directory_obj *, nis_name);
170 extern int __start_clock(
int);
171 extern u_long __stop_clock(
int);
180 extern struct signature *__nis_calculate_encrypted_cksum(
unsigned char *,
unsigned int,
char *,
int);
186 extern void nis_freeresult();
187 extern nis_result * nis_lookup();
188 extern nis_result * nis_list();
189 extern nis_result * nis_add();
190 extern nis_result * nis_remove();
191 extern nis_result * nis_modify();
193 extern nis_result * nis_add_entry();
194 extern nis_result * nis_remove_entry();
195 extern nis_result * nis_modify_entry();
196 extern nis_result * nis_first_entry();
197 extern nis_result * nis_next_entry();
199 extern nis_error nis_mkdir();
200 extern nis_error nis_rmdir();
201 extern name_pos nis_dir_cmp();
203 extern nis_name *nis_getnames();
204 extern void nis_freenames();
205 extern nis_name nis_domain_of();
206 extern nis_name nis_leaf_of();
207 extern nis_name nis_leaf_of_r();
208 extern nis_name nis_name_of();
209 extern nis_name nis_local_group();
210 extern nis_name nis_local_directory();
211 extern nis_name nis_local_principal();
212 extern nis_name nis_local_host();
214 extern void nis_destroy_object();
215 extern nis_object * nis_clone_object();
216 extern void nis_print_object();
218 extern char * nis_sperrno();
219 extern void nis_perror();
220 extern char * nis_sperror();
221 extern void nis_lerror();
223 extern void nis_print_group_entry();
224 extern bool_t nis_ismember();
225 extern nis_error nis_creategroup();
226 extern nis_error nis_destroygroup();
227 extern nis_error nis_addmember();
228 extern nis_error nis_removemember();
229 extern nis_error nis_verifygroup();
231 extern void nis_freeservlist();
232 extern nis_server ** nis_getservlist();
233 extern nis_error nis_stats();
234 extern nis_error nis_servstate();
235 extern void nis_freetags();
237 extern nis_result * nis_checkpoint();
238 extern void nis_ping();
246 extern char ** __break_name();
247 extern int __name_distance();
248 extern nis_result * nis_make_error();
249 extern nis_attr * __cvt2attr();
250 extern void nis_free_request();
251 extern nis_error nis_get_request();
252 extern nis_object * nis_read_obj();
253 extern int nis_write_obj();
254 extern int nis_in_table();
255 extern int nis_insert_item();
256 extern NIS_HASH_ITEM * nis_find_item();
257 extern NIS_HASH_ITEM * nis_remove_item();
258 extern void nis_insert_name();
259 extern void nis_remove_name();
260 extern CLIENT * nis_make_rpchandle();
261 extern void * nis_get_static_storage();
262 extern char * nis_data();
264 extern void nis_print_rights();
265 extern void nis_print_directory();
266 extern void nis_print_group();
267 extern void nis_print_table();
268 extern void nis_print_link();
269 extern void nis_print_entry();
270 extern nis_object * nis_get_object();
272 extern nis_server * __nis_init_callback();
273 extern int nis_getdtblsize();
274 extern int __nis_run_callback();
276 extern log_result * nis_dump();
277 extern log_result * nis_dumplog();
279 extern bool_t __do_ismember();
280 extern nis_name __nis_map_group();
281 extern nis_name __nis_map_group_r();
284 extern nis_error __nis_CacheBind();
285 extern directory_obj * __nis_CacheSearch();
286 extern bool_t __nis_CacheRemoveEntry();
287 extern void __nis_CacheRestart();
288 extern void __nis_CachePrint();
289 extern void __nis_CacheDumpStatistics();
290 extern bool_t writeColdStartFile();
292 extern CLIENT * __get_ti_clnt();
293 extern int __strcmp_case_insens();
294 extern int __strncmp_case_insens();
296 extern fd_result * nis_finddirectory();
297 extern int __start_clock();
298 extern u_long __stop_clock();
307 extern struct signature *__nis_calculate_encrypted_cksum();