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 2009 Sun Microsystems, Inc. All rights reserved. 23 * Use is subject to license terms. 24 */ 25 26/* 27 * nislib.h 28 * 29 * This file contains the interfaces that are visible in the SunOS 5.x 30 * implementation of NIS Plus. When using C++ the defined __cplusplus and 31 * __STDC__ should both be true. 32 */ 33 34#ifndef _RPCSVC_NISLIB_H 35#define _RPCSVC_NISLIB_H 36 37 38#ifdef __cplusplus 39extern "C" { 40#endif 41 42#ifdef __STDC__ 43extern name_pos nis_dir_cmp(nis_name, nis_name); 44 45extern nis_name nis_domain_of(nis_name); 46extern nis_name nis_leaf_of(nis_name); 47extern nis_name nis_leaf_of_r(const nis_name, char *, size_t); 48extern nis_name nis_name_of(nis_name); 49extern nis_name nis_local_group(void); 50extern nis_name nis_local_directory(void); 51extern nis_name nis_local_host(void); 52 53extern void nis_destroy_object(nis_object *); 54extern nis_object *nis_clone_object(nis_object *, nis_object *); 55extern nis_object *nis_read_obj(char *); 56extern int nis_write_obj(char *, nis_object *); 57 58extern void *nis_get_static_storage(struct nis_sdata *, uint_t, uint_t); 59extern nis_name __nis_rpc_domain(void); 60 61CLIENT *__nis_clnt_create(int, struct netconfig *, char *, struct netbuf *, 62 int, int, int, int, int); 63 64#else 65 66/* Non-prototype definitions (old fashioned C) */ 67 68extern name_pos nis_dir_cmp(); 69 70extern nis_name nis_domain_of(); 71extern nis_name nis_leaf_of(); 72extern nis_name nis_leaf_of_r(); 73extern nis_name nis_name_of(); 74extern nis_name nis_local_group(); 75extern nis_name nis_local_directory(); 76extern nis_name nis_local_host(); 77 78extern void nis_destroy_object(); 79extern nis_object *nis_clone_object(); 80 81extern nis_object *nis_read_obj(); 82extern int nis_write_obj(); 83extern void *nis_get_static_storage(); 84extern nis_name __nis_rpc_domain(); 85 86CLIENT *__nis_clnt_create(); 87 88#endif 89 90#ifdef __cplusplus 91} 92#endif 93 94#endif /* _RPCSVC_NISLIB_H */ 95