inet.h (fd8e4ebc8c18caec3eefac6527831f9ee6a92959) inet.h (d846855da8c8142a2f647f7a4c6949b341261297)
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 101 unchanged lines hidden (view full) ---

110#define inet_net_pton __inet_net_pton
111#define inet_ntoa __inet_ntoa
112#define inet_pton __inet_pton
113#define inet_ntop __inet_ntop
114#define inet_nsap_addr __inet_nsap_addr
115#define inet_nsap_ntoa __inet_nsap_ntoa
116#endif /* !_POSIX_SOURCE */
117
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 101 unchanged lines hidden (view full) ---

110#define inet_net_pton __inet_net_pton
111#define inet_ntoa __inet_ntoa
112#define inet_pton __inet_pton
113#define inet_ntop __inet_ntop
114#define inet_nsap_addr __inet_nsap_addr
115#define inet_nsap_ntoa __inet_nsap_ntoa
116#endif /* !_POSIX_SOURCE */
117
118#ifndef _BYTEORDER_FUNC_DEFINED
119#define _BYTEORDER_FUNC_DEFINED
120#define htonl(x) __htonl(x)
121#define htons(x) __htons(x)
122#define ntohl(x) __ntohl(x)
123#define ntohs(x) __ntohs(x)
118__BEGIN_DECLS
119#ifndef _BYTEORDER_PROTOTYPED
120#define _BYTEORDER_PROTOTYPED
121__uint32_t htonl __P((__uint32_t));
122__uint16_t htons __P((__uint16_t));
123__uint32_t ntohl __P((__uint32_t));
124__uint16_t ntohs __P((__uint16_t));
124#endif
125
125#endif
126
126__BEGIN_DECLS
127__uint32_t htonl(__uint32_t);
128__uint16_t htons(__uint16_t);
129in_addr_t inet_addr __P((const char *));
130char *inet_ntoa __P((struct in_addr));
131const char *inet_ntop __P((int, const void *, char *, socklen_t));
132int inet_pton __P((int, const char *, void *));
127in_addr_t inet_addr __P((const char *));
128char *inet_ntoa __P((struct in_addr));
129const char *inet_ntop __P((int, const void *, char *, socklen_t));
130int inet_pton __P((int, const char *, void *));
133__uint32_t ntohl(__uint32_t);
134__uint16_t ntohs(__uint16_t);
135
136/* Nonstandard functions. */
137#ifndef _POSIX_SOURCE
138int ascii2addr __P((int, const char *, void *));
139char *addr2ascii __P((int, const void *, int, char *));
140int inet_aton __P((const char *, struct in_addr *));
141in_addr_t inet_lnaof __P((struct in_addr));
142struct in_addr inet_makeaddr __P((in_addr_t, in_addr_t));
143char * inet_neta __P((in_addr_t, char *, size_t));
144in_addr_t inet_netof __P((struct in_addr));
145in_addr_t inet_network __P((const char *));
146char *inet_net_ntop __P((int, const void *, int, char *, size_t));
147int inet_net_pton __P((int, const char *, void *, size_t));
148unsigned inet_nsap_addr __P((const char *, unsigned char *, int));
149char *inet_nsap_ntoa __P((int, const unsigned char *, char *));
150#endif /* !_POSIX_SOURCE */
151__END_DECLS
152
131
132/* Nonstandard functions. */
133#ifndef _POSIX_SOURCE
134int ascii2addr __P((int, const char *, void *));
135char *addr2ascii __P((int, const void *, int, char *));
136int inet_aton __P((const char *, struct in_addr *));
137in_addr_t inet_lnaof __P((struct in_addr));
138struct in_addr inet_makeaddr __P((in_addr_t, in_addr_t));
139char * inet_neta __P((in_addr_t, char *, size_t));
140in_addr_t inet_netof __P((struct in_addr));
141in_addr_t inet_network __P((const char *));
142char *inet_net_ntop __P((int, const void *, int, char *, size_t));
143int inet_net_pton __P((int, const char *, void *, size_t));
144unsigned inet_nsap_addr __P((const char *, unsigned char *, int));
145char *inet_nsap_ntoa __P((int, const unsigned char *, char *));
146#endif /* !_POSIX_SOURCE */
147__END_DECLS
148
149#ifndef _BYTEORDER_FUNC_DEFINED
150#define _BYTEORDER_FUNC_DEFINED
151#define htonl(x) __htonl(x)
152#define htons(x) __htons(x)
153#define ntohl(x) __ntohl(x)
154#define ntohs(x) __ntohs(x)
155#endif
156
153#endif /* !_ARPA_INET_H_ */
157#endif /* !_ARPA_INET_H_ */