version 1.24, 2005/06/08 18:32:32 |
version 1.25, 2005/12/13 00:35:22 |
|
|
#define _NETDB_H_ |
#define _NETDB_H_ |
|
|
#include <sys/param.h> |
#include <sys/param.h> |
#if (!defined(BSD)) || (BSD < 199306) |
|
# include <sys/bitypes.h> |
|
#endif |
|
#include <sys/cdefs.h> |
#include <sys/cdefs.h> |
|
|
#define _PATH_HEQUIV "/etc/hosts.equiv" |
#define _PATH_HEQUIV "/etc/hosts.equiv" |
|
|
struct rdatainfo *rri_sigs; /* individual signatures */ |
struct rdatainfo *rri_sigs; /* individual signatures */ |
}; |
}; |
|
|
#ifndef POSIX_SOURCE |
#if __BSD_VISIBLE |
struct servent_data { |
struct servent_data { |
void *fp; |
void *fp; |
char **aliases; |
char **aliases; |
|
|
void endhostent(void); |
void endhostent(void); |
void endnetent(void); |
void endnetent(void); |
void endprotoent(void); |
void endprotoent(void); |
#ifndef POSIX_SOURCE |
#if __BSD_VISIBLE |
void endprotoent_r(struct protoent_data *); |
void endprotoent_r(struct protoent_data *); |
#endif |
#endif |
void endservent(void); |
void endservent(void); |
#ifndef POSIX_SOURCE |
#if __BSD_VISIBLE |
void endservent_r(struct servent_data *); |
void endservent_r(struct servent_data *); |
#endif |
#endif |
struct hostent *gethostbyaddr(const void *, socklen_t, int); |
struct hostent *gethostbyaddr(const void *, socklen_t, int); |
|
|
struct protoent *getprotobyname(const char *); |
struct protoent *getprotobyname(const char *); |
struct protoent *getprotobynumber(int); |
struct protoent *getprotobynumber(int); |
struct protoent *getprotoent(void); |
struct protoent *getprotoent(void); |
#ifndef POSIX_SOURCE |
#if __BSD_VISIBLE |
int getprotobyname_r(const char *, struct protoent *, |
int getprotobyname_r(const char *, struct protoent *, |
struct protoent_data *); |
struct protoent_data *); |
int getprotobynumber_r(int, struct protoent *, |
int getprotobynumber_r(int, struct protoent *, |
|
|
struct servent *getservbyname(const char *, const char *); |
struct servent *getservbyname(const char *, const char *); |
struct servent *getservbyport(int, const char *); |
struct servent *getservbyport(int, const char *); |
struct servent *getservent(void); |
struct servent *getservent(void); |
#ifndef POSIX_SOURCE |
#if __BSD_VISIBLE |
int getservbyname_r(const char *, const char *, struct servent *, |
int getservbyname_r(const char *, const char *, struct servent *, |
struct servent_data *); |
struct servent_data *); |
int getservbyport_r(int, const char *, struct servent *, |
int getservbyport_r(int, const char *, struct servent *, |
|
|
/* void sethostfile(const char *); */ |
/* void sethostfile(const char *); */ |
void setnetent(int); |
void setnetent(int); |
void setprotoent(int); |
void setprotoent(int); |
#ifndef POSIX_SOURCE |
#if __BSD_VISIBLE |
void setprotoent_r(int, struct protoent_data *); |
void setprotoent_r(int, struct protoent_data *); |
#endif |
#endif |
void setservent(int); |
void setservent(int); |
#ifndef POSIX_SOURCE |
#if __BSD_VISIBLE |
void setservent_r(int, struct servent_data *); |
void setservent_r(int, struct servent_data *); |
#endif |
#endif |
|
|