From 02fec4701cee79f875c1d02b8b4aee09380dbcb8 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 4 Jan 2001 20:04:45 +0000 Subject: integrate dietlibc/stdio per default for cdrom and disk only installs --- mdk-stage1/dietlibc/include/netdb.h | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 mdk-stage1/dietlibc/include/netdb.h (limited to 'mdk-stage1/dietlibc/include/netdb.h') diff --git a/mdk-stage1/dietlibc/include/netdb.h b/mdk-stage1/dietlibc/include/netdb.h new file mode 100644 index 000000000..29f452ee9 --- /dev/null +++ b/mdk-stage1/dietlibc/include/netdb.h @@ -0,0 +1,48 @@ +#ifndef _NETDB_H +#define _NETDB_H + +#include +#include + +/* Absolute file name for network data base files. */ +#define _PATH_HEQUIV "/etc/hosts.equiv" +#define _PATH_HOSTS "/etc/hosts" +#define _PATH_NETWORKS "/etc/networks" +#define _PATH_NSSWITCH_CONF "/etc/nsswitch.conf" +#define _PATH_PROTOCOLS "/etc/protocols" +#define _PATH_SERVICES "/etc/services" + +/* Description of data base entry for a single service. */ +struct servent +{ + char *s_name; /* Official service name. */ + char **s_aliases; /* Alias list. */ + int s_port; /* Port number. */ + char *s_proto; /* Protocol to use. */ +}; + +extern void endservent (void) __THROW; +extern struct servent *getservent (void) __THROW; +extern struct servent *getservbyname (__const char *__name, + __const char *__proto) __THROW; +extern struct servent *getservbyport (int __port, __const char *__proto) + __THROW; + +struct hostent +{ + char *h_name; /* Official name of host. */ + char **h_aliases; /* Alias list. */ + int h_addrtype; /* Host address type. */ + socklen_t h_length; /* Length of address. */ + char **h_addr_list; /* List of addresses from name server. */ +#define h_addr h_addr_list[0] /* Address, for backward compatibility. */ +}; + +extern void endhostent (void) __THROW; +extern struct hostent *gethostent (void) __THROW; +extern struct hostent *gethostbyaddr (const void *__addr, socklen_t __len, + int __type) __THROW; +extern struct hostent *gethostbyname (const char *__name) __THROW; +extern struct hostent *gethostbyname2 (const char *__name, int __af) __THROW; + +#endif -- cgit v1.2.1