xref: /titanic_44/usr/src/head/rpcsvc/nislib.h (revision ba3594ba9b5dd4c846c472a8d657edcb7c8109ac)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
23  *
24  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
25  * Use is subject to license terms.
26  */
27 
28 /*
29  * nislib.h
30  *
31  * This file contains the interfaces that are visible in the SunOS 5.x
32  * implementation of NIS Plus.
33  */
34 
35 #ifndef	_RPCSVC_NISLIB_H
36 #define	_RPCSVC_NISLIB_H
37 
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
43 extern name_pos nis_dir_cmp(nis_name, nis_name);
44 
45 extern nis_name nis_domain_of(nis_name);
46 extern nis_name nis_leaf_of(nis_name);
47 extern nis_name nis_leaf_of_r(const nis_name, char *, size_t);
48 extern nis_name nis_name_of(nis_name);
49 extern nis_name nis_local_group(void);
50 extern nis_name nis_local_directory(void);
51 extern nis_name nis_local_host(void);
52 
53 extern void nis_destroy_object(nis_object *);
54 extern nis_object *nis_clone_object(nis_object *, nis_object *);
55 extern nis_object *nis_read_obj(char *);
56 extern int nis_write_obj(char *, nis_object *);
57 
58 extern void *nis_get_static_storage(struct nis_sdata *, uint_t, uint_t);
59 extern nis_name __nis_rpc_domain(void);
60 
61 CLIENT *__nis_clnt_create(int, struct netconfig *, char *, struct netbuf *,
62 			int, int, int, int, int);
63 
64 #ifdef	__cplusplus
65 }
66 #endif
67 
68 #endif	/* _RPCSVC_NISLIB_H */
69