xref: /titanic_50/usr/src/head/rpcsvc/nislib.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * CDDL HEADER START
3*7c478bd9Sstevel@tonic-gate  *
4*7c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*7c478bd9Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*7c478bd9Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*7c478bd9Sstevel@tonic-gate  * with the License.
8*7c478bd9Sstevel@tonic-gate  *
9*7c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*7c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*7c478bd9Sstevel@tonic-gate  * and limitations under the License.
13*7c478bd9Sstevel@tonic-gate  *
14*7c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*7c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*7c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*7c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*7c478bd9Sstevel@tonic-gate  *
20*7c478bd9Sstevel@tonic-gate  * CDDL HEADER END
21*7c478bd9Sstevel@tonic-gate  */
22*7c478bd9Sstevel@tonic-gate /*
23*7c478bd9Sstevel@tonic-gate  * Copyright 1991-2003 Sun Microsystems, Inc.  All rights reserved.
24*7c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
25*7c478bd9Sstevel@tonic-gate  */
26*7c478bd9Sstevel@tonic-gate 
27*7c478bd9Sstevel@tonic-gate /*
28*7c478bd9Sstevel@tonic-gate  * nislib.h
29*7c478bd9Sstevel@tonic-gate  *
30*7c478bd9Sstevel@tonic-gate  * This file contains the interfaces that are visible in the SunOS 5.x
31*7c478bd9Sstevel@tonic-gate  * implementation of NIS Plus. When using C++ the defined __cplusplus and
32*7c478bd9Sstevel@tonic-gate  * __STDC__ should both be true.
33*7c478bd9Sstevel@tonic-gate  */
34*7c478bd9Sstevel@tonic-gate 
35*7c478bd9Sstevel@tonic-gate #ifndef	_RPCSVC_NISLIB_H
36*7c478bd9Sstevel@tonic-gate #define	_RPCSVC_NISLIB_H
37*7c478bd9Sstevel@tonic-gate 
38*7c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
39*7c478bd9Sstevel@tonic-gate 
40*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus
41*7c478bd9Sstevel@tonic-gate extern "C" {
42*7c478bd9Sstevel@tonic-gate #endif
43*7c478bd9Sstevel@tonic-gate 
44*7c478bd9Sstevel@tonic-gate #ifdef __STDC__
45*7c478bd9Sstevel@tonic-gate extern void nis_freeresult(nis_result *);
46*7c478bd9Sstevel@tonic-gate extern nis_result *nis_lookup(nis_name, uint_t);
47*7c478bd9Sstevel@tonic-gate extern nis_result *nis_list(nis_name, uint_t,
48*7c478bd9Sstevel@tonic-gate 	int (*)(nis_name, nis_object *, void *), void *);
49*7c478bd9Sstevel@tonic-gate extern nis_result *nis_add(nis_name, nis_object *);
50*7c478bd9Sstevel@tonic-gate extern nis_result *nis_remove(nis_name, nis_object *);
51*7c478bd9Sstevel@tonic-gate extern nis_result *nis_modify(nis_name, nis_object *);
52*7c478bd9Sstevel@tonic-gate 
53*7c478bd9Sstevel@tonic-gate extern nis_result *nis_add_entry(nis_name, nis_object *, uint_t);
54*7c478bd9Sstevel@tonic-gate extern nis_result *nis_remove_entry(nis_name, nis_object *, uint_t);
55*7c478bd9Sstevel@tonic-gate extern nis_result *nis_modify_entry(nis_name, nis_object *, uint_t);
56*7c478bd9Sstevel@tonic-gate extern nis_result *nis_first_entry(nis_name);
57*7c478bd9Sstevel@tonic-gate extern nis_result *nis_next_entry(nis_name, netobj *);
58*7c478bd9Sstevel@tonic-gate 
59*7c478bd9Sstevel@tonic-gate extern nis_error nis_mkdir(nis_name, nis_server *);
60*7c478bd9Sstevel@tonic-gate extern nis_error nis_rmdir(nis_name, nis_server *);
61*7c478bd9Sstevel@tonic-gate extern name_pos nis_dir_cmp(nis_name, nis_name);
62*7c478bd9Sstevel@tonic-gate 
63*7c478bd9Sstevel@tonic-gate extern nis_name *nis_getnames(nis_name);
64*7c478bd9Sstevel@tonic-gate extern void nis_freenames(nis_name *);
65*7c478bd9Sstevel@tonic-gate extern nis_name nis_domain_of(nis_name);
66*7c478bd9Sstevel@tonic-gate extern nis_name nis_leaf_of(nis_name);
67*7c478bd9Sstevel@tonic-gate extern nis_name nis_leaf_of_r(const nis_name, char *, size_t);
68*7c478bd9Sstevel@tonic-gate extern nis_name nis_name_of(nis_name);
69*7c478bd9Sstevel@tonic-gate extern nis_name nis_local_group(void);
70*7c478bd9Sstevel@tonic-gate extern nis_name nis_local_directory(void);
71*7c478bd9Sstevel@tonic-gate extern nis_name nis_local_principal(void);
72*7c478bd9Sstevel@tonic-gate extern nis_name nis_local_host(void);
73*7c478bd9Sstevel@tonic-gate 
74*7c478bd9Sstevel@tonic-gate extern void nis_destroy_object(nis_object *);
75*7c478bd9Sstevel@tonic-gate extern nis_object *nis_clone_object(nis_object *, nis_object *);
76*7c478bd9Sstevel@tonic-gate extern void nis_print_object(nis_object *o);
77*7c478bd9Sstevel@tonic-gate 
78*7c478bd9Sstevel@tonic-gate extern char *nis_sperrno(nis_error);
79*7c478bd9Sstevel@tonic-gate extern void nis_perror(nis_error, char *);
80*7c478bd9Sstevel@tonic-gate extern char *nis_sperror(nis_error, char *);
81*7c478bd9Sstevel@tonic-gate extern char *nis_sperror_r(nis_error, char *, char *, int len);
82*7c478bd9Sstevel@tonic-gate extern void nis_lerror(nis_error, char *);
83*7c478bd9Sstevel@tonic-gate 
84*7c478bd9Sstevel@tonic-gate extern void nis_print_group_entry(nis_name);
85*7c478bd9Sstevel@tonic-gate extern bool_t nis_ismember(nis_name, nis_name);
86*7c478bd9Sstevel@tonic-gate extern nis_error nis_creategroup(nis_name, uint_t);
87*7c478bd9Sstevel@tonic-gate extern nis_error nis_destroygroup(nis_name);
88*7c478bd9Sstevel@tonic-gate extern nis_error nis_addmember(nis_name, nis_name);
89*7c478bd9Sstevel@tonic-gate extern nis_error nis_removemember(nis_name, nis_name);
90*7c478bd9Sstevel@tonic-gate extern nis_error nis_verifygroup(nis_name);
91*7c478bd9Sstevel@tonic-gate 
92*7c478bd9Sstevel@tonic-gate extern void nis_freeservlist(nis_server **);
93*7c478bd9Sstevel@tonic-gate extern nis_server **nis_getservlist(nis_name);
94*7c478bd9Sstevel@tonic-gate extern nis_error nis_stats(nis_server *, nis_tag *, int, nis_tag **);
95*7c478bd9Sstevel@tonic-gate extern nis_error nis_servstate(nis_server *, nis_tag *, int, nis_tag **);
96*7c478bd9Sstevel@tonic-gate extern void nis_freetags(nis_tag *, int);
97*7c478bd9Sstevel@tonic-gate 
98*7c478bd9Sstevel@tonic-gate extern nis_result *nis_checkpoint(nis_name);
99*7c478bd9Sstevel@tonic-gate extern void nis_ping(nis_name, uint32_t, nis_object *);
100*7c478bd9Sstevel@tonic-gate 
101*7c478bd9Sstevel@tonic-gate /*
102*7c478bd9Sstevel@tonic-gate  * XXX: PLEASE NOTE THAT THE FOLLOWING FUNCTIONS ARE INTERNAL
103*7c478bd9Sstevel@tonic-gate  * TO NIS+ AND SHOULD NOT BE USED BY ANY APPLICATION PROGRAM.
104*7c478bd9Sstevel@tonic-gate  * THEIR SEMANTICS AND/OR SIGNATURE CAN CHANGE WITHOUT NOTICE.
105*7c478bd9Sstevel@tonic-gate  * SO, PLEASE DO NOT USE THEM.  YOU ARE WARNED!!!!
106*7c478bd9Sstevel@tonic-gate  */
107*7c478bd9Sstevel@tonic-gate 
108*7c478bd9Sstevel@tonic-gate extern char **__break_name(nis_name, int *);
109*7c478bd9Sstevel@tonic-gate extern int __name_distance(char **, char **);
110*7c478bd9Sstevel@tonic-gate extern nis_result *nis_make_error(nis_error, uint32_t, uint32_t, uint32_t,
111*7c478bd9Sstevel@tonic-gate     uint32_t);
112*7c478bd9Sstevel@tonic-gate extern nis_attr *__cvt2attr(int *, char **);
113*7c478bd9Sstevel@tonic-gate extern void nis_free_request(ib_request *);
114*7c478bd9Sstevel@tonic-gate extern nis_error nis_get_request(nis_name, nis_object *, netobj*, ib_request*);
115*7c478bd9Sstevel@tonic-gate extern nis_object *nis_read_obj(char *);
116*7c478bd9Sstevel@tonic-gate extern int nis_write_obj(char *, nis_object *);
117*7c478bd9Sstevel@tonic-gate extern int nis_in_table(nis_name, NIS_HASH_TABLE *, int *);
118*7c478bd9Sstevel@tonic-gate extern int nis_insert_item(NIS_HASH_ITEM *, NIS_HASH_TABLE *);
119*7c478bd9Sstevel@tonic-gate extern NIS_HASH_ITEM *nis_find_item(nis_name, NIS_HASH_TABLE *);
120*7c478bd9Sstevel@tonic-gate extern NIS_HASH_ITEM *nis_remove_item(nis_name, NIS_HASH_TABLE *);
121*7c478bd9Sstevel@tonic-gate extern void nis_insert_name(nis_name, NIS_HASH_TABLE *);
122*7c478bd9Sstevel@tonic-gate extern void nis_remove_name(nis_name, NIS_HASH_TABLE *);
123*7c478bd9Sstevel@tonic-gate extern CLIENT *nis_make_rpchandle(nis_server *, int, rpcprog_t, rpcvers_t,
124*7c478bd9Sstevel@tonic-gate     uint_t, int, int);
125*7c478bd9Sstevel@tonic-gate extern void *nis_get_static_storage(struct nis_sdata *, uint_t, uint_t);
126*7c478bd9Sstevel@tonic-gate extern char *nis_data(char *);
127*7c478bd9Sstevel@tonic-gate extern char *nis_old_data(char *);
128*7c478bd9Sstevel@tonic-gate extern void nis_print_rights(uint_t);
129*7c478bd9Sstevel@tonic-gate extern void nis_print_directory(directory_obj *);
130*7c478bd9Sstevel@tonic-gate extern void nis_print_group(group_obj *);
131*7c478bd9Sstevel@tonic-gate extern void nis_print_table(table_obj *);
132*7c478bd9Sstevel@tonic-gate extern void nis_print_link(link_obj *);
133*7c478bd9Sstevel@tonic-gate extern void nis_print_entry(entry_obj *);
134*7c478bd9Sstevel@tonic-gate extern nis_server *__nis_init_callback(CLIENT *,
135*7c478bd9Sstevel@tonic-gate     int (*)(nis_name, nis_object *, void *), void *);
136*7c478bd9Sstevel@tonic-gate extern int __nis_run_callback(netobj *, rpcproc_t, struct timeval *, CLIENT *);
137*7c478bd9Sstevel@tonic-gate 
138*7c478bd9Sstevel@tonic-gate extern log_result *nis_dumplog(nis_server *, nis_name, uint32_t);
139*7c478bd9Sstevel@tonic-gate extern log_result *nis_dump(nis_server *, nis_name,
140*7c478bd9Sstevel@tonic-gate     int (*)(nis_name, nis_object *, void *));
141*7c478bd9Sstevel@tonic-gate extern nis_name __nis_rpc_domain(void);
142*7c478bd9Sstevel@tonic-gate 
143*7c478bd9Sstevel@tonic-gate extern bool_t __do_ismember(nis_name, nis_object *,
144*7c478bd9Sstevel@tonic-gate     nis_result *(*)(nis_name, uint_t));
145*7c478bd9Sstevel@tonic-gate extern nis_name __nis_map_group(nis_name);
146*7c478bd9Sstevel@tonic-gate extern nis_name __nis_map_group_r(const nis_name, char *, size_t);
147*7c478bd9Sstevel@tonic-gate 
148*7c478bd9Sstevel@tonic-gate void __nis_CacheStart(void);
149*7c478bd9Sstevel@tonic-gate nis_error __nis_CacheBind(char *dname, directory_obj *dobj);
150*7c478bd9Sstevel@tonic-gate bool_t __nis_CacheRemoveEntry(directory_obj *dobj);
151*7c478bd9Sstevel@tonic-gate nis_error __nis_CacheSearch(char *dname, directory_obj *dobj);
152*7c478bd9Sstevel@tonic-gate void __nis_CacheRestart(void);
153*7c478bd9Sstevel@tonic-gate void __nis_CachePrint(void);
154*7c478bd9Sstevel@tonic-gate void __nis_CachePrintDir(char *);
155*7c478bd9Sstevel@tonic-gate bool_t __nis_CacheAddEntry(fd_result *, directory_obj *);
156*7c478bd9Sstevel@tonic-gate void __nis_CacheRefreshEntry(char *);
157*7c478bd9Sstevel@tonic-gate nis_error __nis_CacheBindDir(char *dname,
158*7c478bd9Sstevel@tonic-gate 		nis_bound_directory **binding, int flags);
159*7c478bd9Sstevel@tonic-gate nis_error __nis_CacheBindMaster(char *dname, nis_bound_directory **binding);
160*7c478bd9Sstevel@tonic-gate nis_error __nis_CacheBindServer(nis_server *srv, int nsrv,
161*7c478bd9Sstevel@tonic-gate 		nis_bound_directory **binding);
162*7c478bd9Sstevel@tonic-gate int __nis_CacheRefreshBinding(nis_bound_directory *binding);
163*7c478bd9Sstevel@tonic-gate int __nis_CacheRefreshAddress(nis_bound_endpoint *bep);
164*7c478bd9Sstevel@tonic-gate int __nis_CacheRefreshCallback(nis_bound_endpoint *bep);
165*7c478bd9Sstevel@tonic-gate nis_error __nis_CacheLocalInit(uint32_t *exp_time);
166*7c478bd9Sstevel@tonic-gate uint32_t __nis_CacheLocalLoadPref(void);
167*7c478bd9Sstevel@tonic-gate nis_error __nis_CacheMgrInit(void);
168*7c478bd9Sstevel@tonic-gate void __nis_CacheMgrCleanup(void);
169*7c478bd9Sstevel@tonic-gate void __nis_CacheMgrReadColdstart(void);
170*7c478bd9Sstevel@tonic-gate nis_error __nis_CacheMgrBindReplica(char *dname);
171*7c478bd9Sstevel@tonic-gate nis_error __nis_CacheMgrBindMaster(char *dname);
172*7c478bd9Sstevel@tonic-gate nis_error __nis_CacheMgrBindServer(nis_server *srv, int nsrv);
173*7c478bd9Sstevel@tonic-gate int __nis_CacheMgrRefreshBinding(nis_bound_directory *binding);
174*7c478bd9Sstevel@tonic-gate int __nis_CacheMgrRefreshAddress(nis_bound_endpoint *bep);
175*7c478bd9Sstevel@tonic-gate int __nis_CacheMgrRefreshCallback(nis_bound_endpoint *bep);
176*7c478bd9Sstevel@tonic-gate int __nis_CacheMgrUpdateUaddr(char *uaddr);
177*7c478bd9Sstevel@tonic-gate void __nis_CacheMgrMarkUp(void);
178*7c478bd9Sstevel@tonic-gate uint32_t __nis_CacheMgrTimers(void);
179*7c478bd9Sstevel@tonic-gate uint32_t __nis_CacheMgrRefreshCache(void);
180*7c478bd9Sstevel@tonic-gate uint32_t __nis_serverRefreshCache(void);
181*7c478bd9Sstevel@tonic-gate 
182*7c478bd9Sstevel@tonic-gate extern CLIENT *__get_ti_clnt(char *, CLIENT *, char **, pid_t *, dev_t *);
183*7c478bd9Sstevel@tonic-gate extern int __strcmp_case_insens(char *, char *);
184*7c478bd9Sstevel@tonic-gate extern int __strncmp_case_insens(char *, char *);
185*7c478bd9Sstevel@tonic-gate 
186*7c478bd9Sstevel@tonic-gate extern fd_result *nis_finddirectory(directory_obj *, nis_name);
187*7c478bd9Sstevel@tonic-gate extern int __start_clock(int);
188*7c478bd9Sstevel@tonic-gate extern uint32_t __stop_clock(int);
189*7c478bd9Sstevel@tonic-gate 
190*7c478bd9Sstevel@tonic-gate fd_result *__nis_finddirectory(nis_bound_directory **, char *dname);
191*7c478bd9Sstevel@tonic-gate int __dir_prefix(char **, char **);
192*7c478bd9Sstevel@tonic-gate void __free_break_name(char **, int);
193*7c478bd9Sstevel@tonic-gate void __broken_name_print(char **, int);
194*7c478bd9Sstevel@tonic-gate void __free_fdresult(fd_result *res);
195*7c478bd9Sstevel@tonic-gate nis_error __nis_ping_servers(nis_bound_directory *, int, int);
196*7c478bd9Sstevel@tonic-gate struct netconfig *__nis_get_netconfig(endpoint *ep);
197*7c478bd9Sstevel@tonic-gate int __dir_same(char **, char **);
198*7c478bd9Sstevel@tonic-gate void nis_free_binding(nis_bound_directory *);
199*7c478bd9Sstevel@tonic-gate char *__nis_xdr_dup(xdrproc_t, char *, char *);
200*7c478bd9Sstevel@tonic-gate 
201*7c478bd9Sstevel@tonic-gate CLIENT *__nis_clnt_create(int, struct netconfig *, char *, struct netbuf *,
202*7c478bd9Sstevel@tonic-gate 			int, int, int, int, int);
203*7c478bd9Sstevel@tonic-gate 
204*7c478bd9Sstevel@tonic-gate #else
205*7c478bd9Sstevel@tonic-gate 
206*7c478bd9Sstevel@tonic-gate /* Non-prototype definitions (old fashioned C) */
207*7c478bd9Sstevel@tonic-gate 
208*7c478bd9Sstevel@tonic-gate extern void nis_freeresult();
209*7c478bd9Sstevel@tonic-gate extern nis_result *nis_lookup();
210*7c478bd9Sstevel@tonic-gate extern nis_result *nis_list();
211*7c478bd9Sstevel@tonic-gate extern nis_result *nis_add();
212*7c478bd9Sstevel@tonic-gate extern nis_result *nis_remove();
213*7c478bd9Sstevel@tonic-gate extern nis_result *nis_modify();
214*7c478bd9Sstevel@tonic-gate 
215*7c478bd9Sstevel@tonic-gate extern nis_result *nis_add_entry();
216*7c478bd9Sstevel@tonic-gate extern nis_result *nis_remove_entry();
217*7c478bd9Sstevel@tonic-gate extern nis_result *nis_modify_entry();
218*7c478bd9Sstevel@tonic-gate extern nis_result *nis_first_entry();
219*7c478bd9Sstevel@tonic-gate extern nis_result *nis_next_entry();
220*7c478bd9Sstevel@tonic-gate 
221*7c478bd9Sstevel@tonic-gate extern nis_error nis_mkdir();
222*7c478bd9Sstevel@tonic-gate extern nis_error nis_rmdir();
223*7c478bd9Sstevel@tonic-gate extern name_pos nis_dir_cmp();
224*7c478bd9Sstevel@tonic-gate 
225*7c478bd9Sstevel@tonic-gate extern nis_name *nis_getnames();
226*7c478bd9Sstevel@tonic-gate extern void nis_freenames();
227*7c478bd9Sstevel@tonic-gate extern nis_name nis_domain_of();
228*7c478bd9Sstevel@tonic-gate extern nis_name nis_leaf_of();
229*7c478bd9Sstevel@tonic-gate extern nis_name nis_leaf_of_r();
230*7c478bd9Sstevel@tonic-gate extern nis_name nis_name_of();
231*7c478bd9Sstevel@tonic-gate extern nis_name nis_local_group();
232*7c478bd9Sstevel@tonic-gate extern nis_name nis_local_directory();
233*7c478bd9Sstevel@tonic-gate extern nis_name nis_local_principal();
234*7c478bd9Sstevel@tonic-gate extern nis_name nis_local_host();
235*7c478bd9Sstevel@tonic-gate 
236*7c478bd9Sstevel@tonic-gate extern void nis_destroy_object();
237*7c478bd9Sstevel@tonic-gate extern nis_object *nis_clone_object();
238*7c478bd9Sstevel@tonic-gate extern void nis_print_object();
239*7c478bd9Sstevel@tonic-gate 
240*7c478bd9Sstevel@tonic-gate extern char *nis_sperrno();
241*7c478bd9Sstevel@tonic-gate extern void nis_perror();
242*7c478bd9Sstevel@tonic-gate extern char *nis_sperror();
243*7c478bd9Sstevel@tonic-gate extern char *nis_sperror_r();
244*7c478bd9Sstevel@tonic-gate extern void nis_lerror();
245*7c478bd9Sstevel@tonic-gate 
246*7c478bd9Sstevel@tonic-gate extern void nis_print_group_entry();
247*7c478bd9Sstevel@tonic-gate extern bool_t nis_ismember();
248*7c478bd9Sstevel@tonic-gate extern nis_error nis_creategroup();
249*7c478bd9Sstevel@tonic-gate extern nis_error nis_destroygroup();
250*7c478bd9Sstevel@tonic-gate extern nis_error nis_addmember();
251*7c478bd9Sstevel@tonic-gate extern nis_error nis_removemember();
252*7c478bd9Sstevel@tonic-gate extern nis_error nis_verifygroup();
253*7c478bd9Sstevel@tonic-gate 
254*7c478bd9Sstevel@tonic-gate extern void nis_freeservlist();
255*7c478bd9Sstevel@tonic-gate extern nis_server **nis_getservlist();
256*7c478bd9Sstevel@tonic-gate extern nis_error nis_stats();
257*7c478bd9Sstevel@tonic-gate extern nis_error nis_servstate();
258*7c478bd9Sstevel@tonic-gate extern void nis_freetags();
259*7c478bd9Sstevel@tonic-gate 
260*7c478bd9Sstevel@tonic-gate extern nis_result *nis_checkpoint();
261*7c478bd9Sstevel@tonic-gate extern void nis_ping();
262*7c478bd9Sstevel@tonic-gate 
263*7c478bd9Sstevel@tonic-gate /*
264*7c478bd9Sstevel@tonic-gate  * XXX: PLEASE NOTE THAT THE FOLLOWING FUNCTIONS ARE INTERNAL
265*7c478bd9Sstevel@tonic-gate  * TO NIS+ AND SHOULD NOT BE USED BY ANY APPLICATION PROGRAM.
266*7c478bd9Sstevel@tonic-gate  * THEIR SEMANTICS AND/OR SIGNATURE CAN CHANGE WITHOUT NOTICE.
267*7c478bd9Sstevel@tonic-gate  * SO, PLEASE DO NOT USE THEM.  YOU ARE WARNED!!!!
268*7c478bd9Sstevel@tonic-gate  */
269*7c478bd9Sstevel@tonic-gate extern char **__break_name();
270*7c478bd9Sstevel@tonic-gate extern int __name_distance();
271*7c478bd9Sstevel@tonic-gate extern nis_result *nis_make_error();
272*7c478bd9Sstevel@tonic-gate extern nis_attr *__cvt2attr();
273*7c478bd9Sstevel@tonic-gate extern void nis_free_request();
274*7c478bd9Sstevel@tonic-gate extern nis_error nis_get_request();
275*7c478bd9Sstevel@tonic-gate extern nis_object *nis_read_obj();
276*7c478bd9Sstevel@tonic-gate extern int nis_write_obj();
277*7c478bd9Sstevel@tonic-gate extern int nis_in_table();
278*7c478bd9Sstevel@tonic-gate extern int nis_insert_item();
279*7c478bd9Sstevel@tonic-gate extern NIS_HASH_ITEM *nis_find_item();
280*7c478bd9Sstevel@tonic-gate extern NIS_HASH_ITEM *nis_remove_item();
281*7c478bd9Sstevel@tonic-gate extern void nis_insert_name();
282*7c478bd9Sstevel@tonic-gate extern void nis_remove_name();
283*7c478bd9Sstevel@tonic-gate extern CLIENT *nis_make_rpchandle();
284*7c478bd9Sstevel@tonic-gate extern void *nis_get_static_storage();
285*7c478bd9Sstevel@tonic-gate extern char *nis_data();
286*7c478bd9Sstevel@tonic-gate extern char *nis_old_data();
287*7c478bd9Sstevel@tonic-gate 
288*7c478bd9Sstevel@tonic-gate extern void nis_print_rights();
289*7c478bd9Sstevel@tonic-gate extern void nis_print_directory();
290*7c478bd9Sstevel@tonic-gate extern void nis_print_group();
291*7c478bd9Sstevel@tonic-gate extern void nis_print_table();
292*7c478bd9Sstevel@tonic-gate extern void nis_print_link();
293*7c478bd9Sstevel@tonic-gate extern void nis_print_entry();
294*7c478bd9Sstevel@tonic-gate 
295*7c478bd9Sstevel@tonic-gate extern nis_server *__nis_init_callback();
296*7c478bd9Sstevel@tonic-gate extern int __nis_run_callback();
297*7c478bd9Sstevel@tonic-gate 
298*7c478bd9Sstevel@tonic-gate extern log_result *nis_dump();
299*7c478bd9Sstevel@tonic-gate extern log_result *nis_dumplog();
300*7c478bd9Sstevel@tonic-gate extern nis_name __nis_rpc_domain();
301*7c478bd9Sstevel@tonic-gate 
302*7c478bd9Sstevel@tonic-gate extern bool_t __do_ismember();
303*7c478bd9Sstevel@tonic-gate extern nis_name __nis_map_group();
304*7c478bd9Sstevel@tonic-gate extern nis_name __nis_map_group_r();
305*7c478bd9Sstevel@tonic-gate 
306*7c478bd9Sstevel@tonic-gate void __nis_CacheStart();
307*7c478bd9Sstevel@tonic-gate nis_error __nis_CacheBind();
308*7c478bd9Sstevel@tonic-gate bool_t __nis_CacheRemoveEntry();
309*7c478bd9Sstevel@tonic-gate nis_error __nis_CacheSearch();
310*7c478bd9Sstevel@tonic-gate void __nis_CacheRestart();
311*7c478bd9Sstevel@tonic-gate void __nis_CachePrint();
312*7c478bd9Sstevel@tonic-gate void __nis_CachePrintDir();
313*7c478bd9Sstevel@tonic-gate bool_t __nis_CacheAddEntry();
314*7c478bd9Sstevel@tonic-gate void __nis_CacheRefreshEntry();
315*7c478bd9Sstevel@tonic-gate nis_error __nis_CacheBindDir();
316*7c478bd9Sstevel@tonic-gate nis_error __nis_CacheBindMaster();
317*7c478bd9Sstevel@tonic-gate nis_error __nis_CacheBindServer();
318*7c478bd9Sstevel@tonic-gate int __nis_CacheRefreshBinding();
319*7c478bd9Sstevel@tonic-gate int __nis_CacheRefreshAddress();
320*7c478bd9Sstevel@tonic-gate int __nis_CacheRefreshCallback();
321*7c478bd9Sstevel@tonic-gate nis_error __nis_CacheLocalInit();
322*7c478bd9Sstevel@tonic-gate uint32_t __nis_CacheLocalLoadPref();
323*7c478bd9Sstevel@tonic-gate nis_error __nis_CacheMgrInit();
324*7c478bd9Sstevel@tonic-gate void __nis_CacheMgrCleanup();
325*7c478bd9Sstevel@tonic-gate void __nis_CacheMgrReadColdstart();
326*7c478bd9Sstevel@tonic-gate nis_error __nis_CacheMgrBindReplica();
327*7c478bd9Sstevel@tonic-gate nis_error __nis_CacheMgrBindMaster();
328*7c478bd9Sstevel@tonic-gate nis_error __nis_CacheMgrBindServer();
329*7c478bd9Sstevel@tonic-gate int __nis_CacheMgrRefreshBinding();
330*7c478bd9Sstevel@tonic-gate int __nis_CacheMgrRefreshAddress();
331*7c478bd9Sstevel@tonic-gate int __nis_CacheMgrRefreshCallback();
332*7c478bd9Sstevel@tonic-gate int __nis_CacheMgrUpdateUaddr();
333*7c478bd9Sstevel@tonic-gate void __nis_CacheMgrMarkUp();
334*7c478bd9Sstevel@tonic-gate uint32_t __nis_CacheMgrTimers();
335*7c478bd9Sstevel@tonic-gate uint32_t __nis_CacheMgrRefreshCache();
336*7c478bd9Sstevel@tonic-gate uint32_t __nis_serverRefreshCache();
337*7c478bd9Sstevel@tonic-gate 
338*7c478bd9Sstevel@tonic-gate extern CLIENT *__get_ti_clnt();
339*7c478bd9Sstevel@tonic-gate extern int __strcmp_case_insens();
340*7c478bd9Sstevel@tonic-gate extern int __strncmp_case_insens();
341*7c478bd9Sstevel@tonic-gate 
342*7c478bd9Sstevel@tonic-gate extern fd_result *nis_finddirectory();
343*7c478bd9Sstevel@tonic-gate extern int __start_clock();
344*7c478bd9Sstevel@tonic-gate extern uint32_t __stop_clock();
345*7c478bd9Sstevel@tonic-gate 
346*7c478bd9Sstevel@tonic-gate fd_result *__nis_finddirectory();
347*7c478bd9Sstevel@tonic-gate int __dir_prefix();
348*7c478bd9Sstevel@tonic-gate void __free_break_name();
349*7c478bd9Sstevel@tonic-gate void __broken_name_print();
350*7c478bd9Sstevel@tonic-gate void __free_fdresult();
351*7c478bd9Sstevel@tonic-gate nis_error __nis_ping_servers();
352*7c478bd9Sstevel@tonic-gate struct netconfig *__nis_get_netconfig();
353*7c478bd9Sstevel@tonic-gate int __dir_same();
354*7c478bd9Sstevel@tonic-gate void nis_free_binding();
355*7c478bd9Sstevel@tonic-gate char *__nis_xdr_dup();
356*7c478bd9Sstevel@tonic-gate 
357*7c478bd9Sstevel@tonic-gate CLIENT *__nis_clnt_create();
358*7c478bd9Sstevel@tonic-gate 
359*7c478bd9Sstevel@tonic-gate #endif
360*7c478bd9Sstevel@tonic-gate 
361*7c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
362*7c478bd9Sstevel@tonic-gate }
363*7c478bd9Sstevel@tonic-gate #endif
364*7c478bd9Sstevel@tonic-gate 
365*7c478bd9Sstevel@tonic-gate #endif	/* _RPCSVC_NISLIB_H */
366