/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1991-1994 Sun Microsystems, Inc
*
*
* getservbyname_r() is defined in this file. It is implemented on top of
* _get_hostserv_inetnetdir_byname() which is also used to implement
* netdir_getbyname() for inet family transports. In turn the common code
* uses the name service switch policy for "hosts" and "services" unless
* the administrator chooses to bypass the name service switch by
* specifying third-party supplied nametoaddr libs for inet transports
*
* getservbyport_r() is similarly related to _get_hostserv_inetnetdir_byaddr()
* and netdir_getbyaddr();
*
* The common code lives in lib/libnsl/nss/netdir_inet.c.
*
* getservent_r(), setservent() and endservent() are *not* implemented on top
* of the common interface; they go straight to the switch and are
* defined in getservent_r.c.
*
* There is absolutely no data sharing, not even the stayopen flag or
* enumeration state, between getservbyYY_r() and getservent_r();
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <netdb.h>
#include <netdir.h>
#include <nss_netdir.h>
extern int str2servent(const char *, int, void *, char *, int);
extern struct netconfig *__rpc_getconfip();
struct servent *
{
int neterr;
}
/*
* We pass in nconf and let the implementation of the long-named func
* decide whether to use the switch based on nc_nlookups.
*/
(void) freenetconfigent(nconf);
}
}
struct servent *
{
int neterr;
}
/*
* We pass in nconf and let the implementation of this long-named func
* decide whether to use the switch based on nc_nlookups.
*/
(void) freenetconfigent(nconf);
}
}