gethostent6.c (61961e0f) | gethostent6.c (e8031f0a) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * --- 7 unchanged lines hidden (view full) --- 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 23/* | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * --- 7 unchanged lines hidden (view full) --- 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 23/* |
24 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. | 24 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. |
25 * Use is subject to license terms. | 25 * Use is subject to license terms. |
26 * 27 * lib/libnsl/nss/gethostent6.c 28 * | 26 */ 27 28/* |
29 * This file defines and implements the re-entrant enumeration routines for 30 * IPv6 hosts: sethostent6(), gethostent6(), and endhostent6(). 31 * They consult the switch policy directly and do not "share" their 32 * enumeration state nor the stayopen flag with the implentation of the 33 * more commonly used getipnodebyname()/getipnodebyaddr(). The latter 34 * follows a tortuous route in order to be consistent with netdir_getbyYY() 35 * (see getipnodebyname.c and netdir_inet.c). 36 */ 37 38#pragma ident "%Z%%M% %I% %E% SMI" 39 | 29 * This file defines and implements the re-entrant enumeration routines for 30 * IPv6 hosts: sethostent6(), gethostent6(), and endhostent6(). 31 * They consult the switch policy directly and do not "share" their 32 * enumeration state nor the stayopen flag with the implentation of the 33 * more commonly used getipnodebyname()/getipnodebyaddr(). The latter 34 * follows a tortuous route in order to be consistent with netdir_getbyYY() 35 * (see getipnodebyname.c and netdir_inet.c). 36 */ 37 38#pragma ident "%Z%%M% %I% %E% SMI" 39 |
40#include "mt.h" |
|
40#include <sys/socket.h> 41#include <sys/types.h> 42#include <nss_dbdefs.h> 43#include "nss.h" 44 45static int ipnodes_stayopen; 46/* 47 * Unsynchronized, but it affects only --- 50 unchanged lines hidden --- | 41#include <sys/socket.h> 42#include <sys/types.h> 43#include <nss_dbdefs.h> 44#include "nss.h" 45 46static int ipnodes_stayopen; 47/* 48 * Unsynchronized, but it affects only --- 50 unchanged lines hidden --- |