xref: /illumos-gate/usr/src/lib/libnsl/nss/nss.h (revision 45916cd2)
17c478bd9Sstevel@tonic-gate /*
27c478bd9Sstevel@tonic-gate  * CDDL HEADER START
37c478bd9Sstevel@tonic-gate  *
47c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*45916cd2Sjpk  * Common Development and Distribution License (the "License").
6*45916cd2Sjpk  * You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate  *
87c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate  * and limitations under the License.
127c478bd9Sstevel@tonic-gate  *
137c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate  *
197c478bd9Sstevel@tonic-gate  * CDDL HEADER END
207c478bd9Sstevel@tonic-gate  */
217c478bd9Sstevel@tonic-gate /*
22*45916cd2Sjpk  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
247c478bd9Sstevel@tonic-gate  */
257c478bd9Sstevel@tonic-gate 
267c478bd9Sstevel@tonic-gate #ifndef	_NSS_H
277c478bd9Sstevel@tonic-gate #define	_NSS_H
287c478bd9Sstevel@tonic-gate 
297c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
307c478bd9Sstevel@tonic-gate 
317c478bd9Sstevel@tonic-gate #include <sys/socket.h>
327c478bd9Sstevel@tonic-gate #include <netinet/in.h>
337c478bd9Sstevel@tonic-gate #include <nss_common.h>
347c478bd9Sstevel@tonic-gate #include <netdb.h>
357c478bd9Sstevel@tonic-gate 
367c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
377c478bd9Sstevel@tonic-gate extern "C" {
387c478bd9Sstevel@tonic-gate #endif
397c478bd9Sstevel@tonic-gate 
407c478bd9Sstevel@tonic-gate extern struct hostent	*_switch_gethostbyname_r(const char *, struct hostent *,
417c478bd9Sstevel@tonic-gate     char *, int, int *);
427c478bd9Sstevel@tonic-gate extern struct hostent	*_switch_gethostbyaddr_r(const char *, int, int,
437c478bd9Sstevel@tonic-gate     struct hostent *, char *, int, int *);
447c478bd9Sstevel@tonic-gate extern struct hostent	*_switch_getipnodebyname_r(const char *,
457c478bd9Sstevel@tonic-gate     struct hostent *, char *, int, int, int, int *);
467c478bd9Sstevel@tonic-gate extern struct hostent	*_switch_getipnodebyaddr_r(const char *, int, int,
477c478bd9Sstevel@tonic-gate     struct hostent *, char *, int, int *);
487c478bd9Sstevel@tonic-gate extern struct hostent	*_door_gethostbyname_r(const char *, struct hostent *,
497c478bd9Sstevel@tonic-gate     char *, int, int *);
507c478bd9Sstevel@tonic-gate extern struct hostent	*_door_gethostbyaddr_r(const char *, int, int,
517c478bd9Sstevel@tonic-gate     struct hostent *, char *, int, int *);
527c478bd9Sstevel@tonic-gate extern struct hostent	*_door_getipnodebyname_r(const char *, struct hostent *,
537c478bd9Sstevel@tonic-gate     char *, int, int, int, int *);
547c478bd9Sstevel@tonic-gate extern struct hostent	*_door_getipnodebyaddr_r(const char *, int, int,
557c478bd9Sstevel@tonic-gate     struct hostent *, char *, int, int *);
567c478bd9Sstevel@tonic-gate extern struct hostent	*__mappedtov4(struct hostent *, int *);
577c478bd9Sstevel@tonic-gate extern int	str2hostent(const char *, int, void *, char *, int);
587c478bd9Sstevel@tonic-gate extern int	str2hostent6(const char *, int, void *, char *, int);
597c478bd9Sstevel@tonic-gate extern int	__str2hostent(int, const char *, int, void *, char *, int);
607c478bd9Sstevel@tonic-gate extern int	str2servent(const char *, int, void *, char *, int);
617c478bd9Sstevel@tonic-gate extern void	_nss_initf_hosts(nss_db_params_t *);
627c478bd9Sstevel@tonic-gate extern void	_nss_initf_ipnodes(nss_db_params_t *);
637c478bd9Sstevel@tonic-gate extern void	order_haddrlist_af(sa_family_t, char **);
647c478bd9Sstevel@tonic-gate extern int	nss_ioctl(int, int, void *);
657c478bd9Sstevel@tonic-gate 
66*45916cd2Sjpk /* parse.c */
67*45916cd2Sjpk extern char *_strtok_escape(char *, char *, char **);
68*45916cd2Sjpk extern char *_strpbrk_escape(char *, char *);
69*45916cd2Sjpk extern char *_escape(char *, char *);
70*45916cd2Sjpk extern char *_unescape(char *, char *);
71*45916cd2Sjpk extern char *_strdup_null(char *);
72*45916cd2Sjpk extern int _readbufline(char *,	int, char *, int, int *);
73*45916cd2Sjpk 
747c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
757c478bd9Sstevel@tonic-gate }
767c478bd9Sstevel@tonic-gate #endif
777c478bd9Sstevel@tonic-gate 
787c478bd9Sstevel@tonic-gate #endif	/* _NSS_H */
79