gethostent_r.c (61961e0f) | gethostent_r.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/gethostent_r.c 28 * | 26 */ 27 28/* |
29 * This file defines and implements the re-entrant enumeration routines for 30 * hosts: sethostent(), gethostent_r(), and endhostent(). They consult 31 * the switch policy directly and do not "share" their enumeration state 32 * nor the stayopen flag with the implentation of the more commonly used 33 * gethostbyname_r()/gethostbyaddr_r(). The latter follows a tortuous 34 * route in order to be consistent with netdir_getbyYY() (see 35 * gethostbyname_r.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 * hosts: sethostent(), gethostent_r(), and endhostent(). They consult 31 * the switch policy directly and do not "share" their enumeration state 32 * nor the stayopen flag with the implentation of the more commonly used 33 * gethostbyname_r()/gethostbyaddr_r(). The latter follows a tortuous 34 * route in order to be consistent with netdir_getbyYY() (see 35 * gethostbyname_r.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 45/* 46 * str2hostent() is now a wrapper to __str2hostent(). 47 * __str2hostent() now takes an extra argument to specify the --- 54 unchanged lines hidden --- | 41#include <sys/socket.h> 42#include <sys/types.h> 43#include <nss_dbdefs.h> 44#include "nss.h" 45 46/* 47 * str2hostent() is now a wrapper to __str2hostent(). 48 * __str2hostent() now takes an extra argument to specify the --- 54 unchanged lines hidden --- |