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
/
htonl.c
1
#include <netinet/in.h>
2
3
uint32_t htonl(uint32_t n)
4
{
5
union {
6
uint8_t b[4];
7
uint32_t i;
8
} u = { { n>>24, n>>16, n>>8, n } };
9
return u.i;
10
}