xref: /onnv-gate/usr/src/lib/libnsl/nss/nss.h (revision 1676:37f4a3e2bd99)
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*1676Sjpk  * Common Development and Distribution License (the "License").
6*1676Sjpk  * 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*1676Sjpk  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate  * Use is subject to license terms.
240Sstevel@tonic-gate  */
250Sstevel@tonic-gate 
260Sstevel@tonic-gate #ifndef	_NSS_H
270Sstevel@tonic-gate #define	_NSS_H
280Sstevel@tonic-gate 
290Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
300Sstevel@tonic-gate 
310Sstevel@tonic-gate #include <sys/socket.h>
320Sstevel@tonic-gate #include <netinet/in.h>
330Sstevel@tonic-gate #include <nss_common.h>
340Sstevel@tonic-gate #include <netdb.h>
350Sstevel@tonic-gate 
360Sstevel@tonic-gate #ifdef	__cplusplus
370Sstevel@tonic-gate extern "C" {
380Sstevel@tonic-gate #endif
390Sstevel@tonic-gate 
400Sstevel@tonic-gate extern struct hostent	*_switch_gethostbyname_r(const char *, struct hostent *,
410Sstevel@tonic-gate     char *, int, int *);
420Sstevel@tonic-gate extern struct hostent	*_switch_gethostbyaddr_r(const char *, int, int,
430Sstevel@tonic-gate     struct hostent *, char *, int, int *);
440Sstevel@tonic-gate extern struct hostent	*_switch_getipnodebyname_r(const char *,
450Sstevel@tonic-gate     struct hostent *, char *, int, int, int, int *);
460Sstevel@tonic-gate extern struct hostent	*_switch_getipnodebyaddr_r(const char *, int, int,
470Sstevel@tonic-gate     struct hostent *, char *, int, int *);
480Sstevel@tonic-gate extern struct hostent	*_door_gethostbyname_r(const char *, struct hostent *,
490Sstevel@tonic-gate     char *, int, int *);
500Sstevel@tonic-gate extern struct hostent	*_door_gethostbyaddr_r(const char *, int, int,
510Sstevel@tonic-gate     struct hostent *, char *, int, int *);
520Sstevel@tonic-gate extern struct hostent	*_door_getipnodebyname_r(const char *, struct hostent *,
530Sstevel@tonic-gate     char *, int, int, int, int *);
540Sstevel@tonic-gate extern struct hostent	*_door_getipnodebyaddr_r(const char *, int, int,
550Sstevel@tonic-gate     struct hostent *, char *, int, int *);
560Sstevel@tonic-gate extern struct hostent	*__mappedtov4(struct hostent *, int *);
570Sstevel@tonic-gate extern int	str2hostent(const char *, int, void *, char *, int);
580Sstevel@tonic-gate extern int	str2hostent6(const char *, int, void *, char *, int);
590Sstevel@tonic-gate extern int	__str2hostent(int, const char *, int, void *, char *, int);
600Sstevel@tonic-gate extern int	str2servent(const char *, int, void *, char *, int);
610Sstevel@tonic-gate extern void	_nss_initf_hosts(nss_db_params_t *);
620Sstevel@tonic-gate extern void	_nss_initf_ipnodes(nss_db_params_t *);
630Sstevel@tonic-gate extern void	order_haddrlist_af(sa_family_t, char **);
640Sstevel@tonic-gate extern int	nss_ioctl(int, int, void *);
650Sstevel@tonic-gate 
66*1676Sjpk /* parse.c */
67*1676Sjpk extern char *_strtok_escape(char *, char *, char **);
68*1676Sjpk extern char *_strpbrk_escape(char *, char *);
69*1676Sjpk extern char *_escape(char *, char *);
70*1676Sjpk extern char *_unescape(char *, char *);
71*1676Sjpk extern char *_strdup_null(char *);
72*1676Sjpk extern int _readbufline(char *,	int, char *, int, int *);
73*1676Sjpk 
740Sstevel@tonic-gate #ifdef	__cplusplus
750Sstevel@tonic-gate }
760Sstevel@tonic-gate #endif
770Sstevel@tonic-gate 
780Sstevel@tonic-gate #endif	/* _NSS_H */
79