source: trunk/minix/include/arpa/inet.h@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 756 bytes
Line 
1/*
2arpa/inet.h
3*/
4
5#ifndef _ARPA__INET_H
6#define _ARPA__INET_H
7
8#include <stdint.h>
9
10/* Open Group Base Specifications Issue 6 (not complete): */
11
12#ifndef _IN_ADDR_T
13#define _IN_ADDR_T
14/* Has to match corresponding declaration in <netinet/in.h> */
15typedef uint32_t in_addr_t;
16#endif /* _IN_ADDR_T */
17
18#ifndef _STRUCT_IN_ADDR
19#define _STRUCT_IN_ADDR
20/* Has to match corresponding declaration in <netinet/in.h> */
21struct in_addr
22{
23 in_addr_t s_addr;
24};
25#endif
26
27_PROTOTYPE( uint32_t htonl, (uint32_t _hostval) );
28_PROTOTYPE( uint16_t htons, (uint16_t _hostval) );
29_PROTOTYPE( char *inet_ntoa, (struct in_addr _in) );
30_PROTOTYPE( uint32_t ntohl, (uint32_t _netval) );
31_PROTOTYPE( uint16_t ntohs, (uint16_t _netval) );
32
33#endif /* _ARPA__INET_H */
Note: See TracBrowser for help on using the repository browser.