chiark / gitweb /
volume_id: provide libvolume_id.a file
[elogind.git] / klibc / include / netinet / in.h
1 /*
2  * netinet/in.h
3  */
4
5 #ifndef _NETINET_IN_H
6 #define _NETINET_IN_H
7
8 /* added this include by Mats Petersson */
9 #include <linux/socket.h>
10
11 #include <klibc/extern.h>
12 #include <stdint.h>
13 #include <endian.h>             /* Must be included *before* <linux/in.h> */
14 #include <linux/in.h>
15
16 #ifndef htons
17 # define htons(x)       __cpu_to_be16(x)
18 #endif
19 #ifndef ntohs
20 # define ntohs(x)       __be16_to_cpu(x)
21 #endif
22 #ifndef htonl
23 # define htonl(x)       __cpu_to_be32(x)
24 #endif
25 #ifndef ntohl
26 # define ntohl(x)       __be32_to_cpu(x)
27 #endif
28 #ifndef htonq
29 # define htonq(x)       __cpu_to_be64(x)
30 #endif
31 #ifndef ntohq
32 # define ntohq(x)       __be64_to_cpu(x)
33 #endif
34
35 #define IPPORT_RESERVED 1024
36
37 __extern int bindresvport (int sd, struct sockaddr_in *sin);
38
39 #endif /* _NETINET_IN_H */