☰
Debian Codegraph
@
0.0~git20260129.ec0effd-3
0.0~git20260129.ec0effd-2
/
/
libc-top-half
/
musl
/
src
/
network
/
gethostbyname.c
☽
☼
libc-top-half/musl/src/network/gethostbyname.c
code
plain
raw
MIT
2005-2019 Rich Felker <
[email protected]
>; 2005-2019 Many other contributors
debian/copyright
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
}