projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
use rt_sigprocmask, not legacy sigprocmask, syscall in pthread exit code
[oweals/musl.git]
/
src
/
network
/
inet_addr.c
1
#include <sys/socket.h>
2
#include <netinet/in.h>
3
#include <arpa/inet.h>
4
#include "__dns.h"
5
6
in_addr_t inet_addr(const char *p)
7
{
8
struct sockaddr_in sin;
9
if (__ipparse(&sin, AF_INET, p)) return -1;
10
return sin.sin_addr.s_addr;
11
}