2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License, Version 1.0 only 2N/A * (the "License"). You may not use this file except in compliance 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A * This file defines and implements the re-entrant enumeration routines for 2N/A * hosts: sethostent(), gethostent_r(), and endhostent(). They consult 2N/A * the switch policy directly and do not "share" their enumeration state 2N/A * nor the stayopen flag with the implentation of the more commonly used 2N/A * gethostbyname_r()/gethostbyaddr_r(). The latter follows a tortuous 2N/A * route in order to be consistent with netdir_getbyYY() (see 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A * str2hostent() is now a wrapper to __str2hostent(). 2N/A * __str2hostent() now takes an extra argument to specify the 2N/A * AF_INET type for address parsing. 2N/A * Unsynchronized, but it affects only 2N/A * efficiency, not correctness