repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
apply hidden visibility to stdio internals
[musl.git]
/
src
/
network
/
gethostbyname.c
blob
bfedf52ad65bfc6fb1b1c3304c67d9049aa584aa
1
#define _GNU_SOURCE
2
3
#include <sys/socket.h>
4
#include <netdb.h>
5
#include <string.h>
6
#include <netinet/in.h>
7
8
struct
hostent
*
gethostbyname
(
const char
*
name
)
9
{
10
return
gethostbyname2
(
name
,
AF_INET
);
11
}