Sign in
fuchsia
/
fuchsia
/
refs/heads/releases/canary
/
.
/
zircon
/
third_party
/
ulib
/
musl
/
src
/
network
/
gethostbyname_r.c
blob: 883e70117c6406f034a505ec07f7757cd9308eb9 [
file
] [
log
] [
blame
]
#define
_GNU_SOURCE
#include
<netdb.h>
#include
<sys/socket.h>
int
gethostbyname_r
(
const
char
*
name
,
struct
hostent
*
h
,
char
*
buf
,
size_t
buflen
,
struct
hostent
**
res
,
int
*
err
)
{
return
gethostbyname2_r
(
name
,
AF_INET
,
h
,
buf
,
buflen
,
res
,
err
);
}