Clean up conditionals for declaration of gets.
[glibc.git] / include / netinet / ether.h
blob8bfe7e03ad4d1c03c285be7763c88aaffd83b117
1 #ifndef _NETINET_ETHER_H
2 #include <inet/netinet/ether.h>
4 # ifndef _ISOMAC
6 libc_hidden_proto (ether_aton_r)
7 libc_hidden_proto (ether_ntoa_r)
9 /* Because the `ethers' lookup does not fit so well in the scheme we
10 define a dummy struct here which helps us to use the available
11 functions. */
12 struct etherent
14 const char *e_name;
15 struct ether_addr e_addr;
18 struct parser_data;
19 extern int _nss_files_parse_etherent (char *line, struct etherent *result,
20 struct parser_data *data,
21 size_t datalen, int *errnop);
22 libnss_files_hidden_proto (_nss_files_parse_etherent)
24 #define DECLARE_NSS_PROTOTYPES(service) \
25 extern enum nss_status _nss_ ## service ## _setetherent (int __stayopen); \
26 extern enum nss_status _nss_ ## service ## _endetherent (void); \
27 extern enum nss_status _nss_ ## service ## _getetherent_r \
28 (struct etherent *result, char *buffer, \
29 size_t buflen, int *errnop); \
30 extern enum nss_status _nss_ ## service ## _gethostton_r \
31 (const char *name, struct etherent *eth, \
32 char *buffer, size_t buflen, int *errnop); \
33 extern enum nss_status _nss_ ## service ## _getntohost_r \
34 (const struct ether_addr *addr, \
35 struct etherent *eth, \
36 char *buffer, size_t buflen, int *errnop);
38 DECLARE_NSS_PROTOTYPES (files)
39 DECLARE_NSS_PROTOTYPES (nis)
40 DECLARE_NSS_PROTOTYPES (nisplus)
42 #undef DECLARE_NSS_PROTOTYPES
44 # endif /* !_ISOMAC */
45 #endif