10Sstevel@tonic-gate /* 20Sstevel@tonic-gate * CDDL HEADER START 30Sstevel@tonic-gate * 40Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*11262SRajagopal.Andra@Sun.COM * Common Development and Distribution License (the "License"). 6*11262SRajagopal.Andra@Sun.COM * You may not use this file except in compliance with the License. 70Sstevel@tonic-gate * 80Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate * See the License for the specific language governing permissions 110Sstevel@tonic-gate * and limitations under the License. 120Sstevel@tonic-gate * 130Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate * 190Sstevel@tonic-gate * CDDL HEADER END 200Sstevel@tonic-gate */ 210Sstevel@tonic-gate /* 22*11262SRajagopal.Andra@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate * Use is subject to license terms. 240Sstevel@tonic-gate */ 250Sstevel@tonic-gate 260Sstevel@tonic-gate /* 270Sstevel@tonic-gate * nislib.h 280Sstevel@tonic-gate * 290Sstevel@tonic-gate * This file contains the interfaces that are visible in the SunOS 5.x 300Sstevel@tonic-gate * implementation of NIS Plus. When using C++ the defined __cplusplus and 310Sstevel@tonic-gate * __STDC__ should both be true. 320Sstevel@tonic-gate */ 330Sstevel@tonic-gate 340Sstevel@tonic-gate #ifndef _RPCSVC_NISLIB_H 350Sstevel@tonic-gate #define _RPCSVC_NISLIB_H 360Sstevel@tonic-gate 370Sstevel@tonic-gate 380Sstevel@tonic-gate #ifdef __cplusplus 390Sstevel@tonic-gate extern "C" { 400Sstevel@tonic-gate #endif 410Sstevel@tonic-gate 420Sstevel@tonic-gate #ifdef __STDC__ 430Sstevel@tonic-gate extern name_pos nis_dir_cmp(nis_name, nis_name); 440Sstevel@tonic-gate 450Sstevel@tonic-gate extern nis_name nis_domain_of(nis_name); 460Sstevel@tonic-gate extern nis_name nis_leaf_of(nis_name); 470Sstevel@tonic-gate extern nis_name nis_leaf_of_r(const nis_name, char *, size_t); 480Sstevel@tonic-gate extern nis_name nis_name_of(nis_name); 490Sstevel@tonic-gate extern nis_name nis_local_group(void); 500Sstevel@tonic-gate extern nis_name nis_local_directory(void); 510Sstevel@tonic-gate extern nis_name nis_local_host(void); 520Sstevel@tonic-gate 530Sstevel@tonic-gate extern void nis_destroy_object(nis_object *); 540Sstevel@tonic-gate extern nis_object *nis_clone_object(nis_object *, nis_object *); 550Sstevel@tonic-gate extern nis_object *nis_read_obj(char *); 560Sstevel@tonic-gate extern int nis_write_obj(char *, nis_object *); 57*11262SRajagopal.Andra@Sun.COM 580Sstevel@tonic-gate extern void *nis_get_static_storage(struct nis_sdata *, uint_t, uint_t); 590Sstevel@tonic-gate extern nis_name __nis_rpc_domain(void); 600Sstevel@tonic-gate 610Sstevel@tonic-gate CLIENT *__nis_clnt_create(int, struct netconfig *, char *, struct netbuf *, 620Sstevel@tonic-gate int, int, int, int, int); 630Sstevel@tonic-gate 640Sstevel@tonic-gate #else 650Sstevel@tonic-gate 660Sstevel@tonic-gate /* Non-prototype definitions (old fashioned C) */ 670Sstevel@tonic-gate 680Sstevel@tonic-gate extern name_pos nis_dir_cmp(); 690Sstevel@tonic-gate 700Sstevel@tonic-gate extern nis_name nis_domain_of(); 710Sstevel@tonic-gate extern nis_name nis_leaf_of(); 720Sstevel@tonic-gate extern nis_name nis_leaf_of_r(); 730Sstevel@tonic-gate extern nis_name nis_name_of(); 740Sstevel@tonic-gate extern nis_name nis_local_group(); 750Sstevel@tonic-gate extern nis_name nis_local_directory(); 760Sstevel@tonic-gate extern nis_name nis_local_host(); 770Sstevel@tonic-gate 780Sstevel@tonic-gate extern void nis_destroy_object(); 790Sstevel@tonic-gate extern nis_object *nis_clone_object(); 800Sstevel@tonic-gate 810Sstevel@tonic-gate extern nis_object *nis_read_obj(); 820Sstevel@tonic-gate extern int nis_write_obj(); 830Sstevel@tonic-gate extern void *nis_get_static_storage(); 840Sstevel@tonic-gate extern nis_name __nis_rpc_domain(); 850Sstevel@tonic-gate 860Sstevel@tonic-gate CLIENT *__nis_clnt_create(); 870Sstevel@tonic-gate 880Sstevel@tonic-gate #endif 890Sstevel@tonic-gate 900Sstevel@tonic-gate #ifdef __cplusplus 910Sstevel@tonic-gate } 920Sstevel@tonic-gate #endif 930Sstevel@tonic-gate 940Sstevel@tonic-gate #endif /* _RPCSVC_NISLIB_H */ 95