comm: add -Wall
[unleashed.git] / include / rpcsvc / nislib.h
blobd1abc4aee7a7bb142775e7f22fc0733c3a7e81d3
1 /*
2 * CDDL HEADER START
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.
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.
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]
19 * CDDL HEADER END
22 * Copyright 2014 Garrett D'Amore <garrett@damore.org>
24 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
25 * Use is subject to license terms.
29 * nislib.h
31 * This file contains the interfaces that are visible in the SunOS 5.x
32 * implementation of NIS Plus.
35 #ifndef _RPCSVC_NISLIB_H
36 #define _RPCSVC_NISLIB_H
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
43 extern name_pos nis_dir_cmp(nis_name, nis_name);
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);
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 *);
58 extern void *nis_get_static_storage(struct nis_sdata *, uint_t, uint_t);
59 extern nis_name __nis_rpc_domain(void);
61 CLIENT *__nis_clnt_create(int, struct netconfig *, char *, struct netbuf *,
62 int, int, int, int, int);
64 #ifdef __cplusplus
66 #endif
68 #endif /* _RPCSVC_NISLIB_H */