1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
/* $Id$
* ============================================================================
*
* = LIBRARY
* pace
*
* = FILENAME
* netdb.h
*
* = AUTHOR
* Luther Baker
*
* ============================================================================ */
#ifndef PACE_NETDB_H
#define PACE_NETDB_H
#include "pace/defines.h"
#include <netdb.h>
# if defined (PACE_HAS_CPLUSPLUS)
extern "C" {
# endif /* PACE_HAS_CPLUSPLUS */
PACE_INLINE struct hostent * pace_gethostbyaddr (const char * addr,
int len,
int type);
PACE_INLINE struct hostent * pace_gethostbyaddr_r (const char * addr,
int length,
int type,
struct hostent * result,
char * buffer,
int buflen,
int * h_errnop);
PACE_INLINE struct hostent * pace_gethostbyname (const char * name);
PACE_INLINE struct hostent * pace_gethostbyname_r (const char * name,
struct hostent *result,
char * buffer,
int buflen,
int * h_errnop);
PACE_INLINE struct hostent * pace_gethostent ();
PACE_INLINE struct hostent * pace_gethostent_r (struct hostent * result,
char * buffer,
int buflen,
int * h_errnop);
PACE_INLINE int pace_sethostent (int stayopen);
PACE_INLINE int pace_endhostent ();
PACE_INLINE struct servent * pace_getservbyname (const char * name,
const char * proto);
PACE_INLINE struct servent * pace_getservbyname_r (const char * name,
const char * proto,
struct servent * result,
char * buffer,
int buflen);
PACE_INLINE struct servent * pace_getservbyport (int port,
const char * proto);
PACE_INLINE struct servent * pace_getservbyport_r (int port,
const char *proto,
struct servent *result,
char *buffer,
int buflen);
PACE_INLINE struct servent * pace_getservent ();
PACE_INLINE struct servent * pace_getservent_r (struct servent * result,
char * buffer,
int buflen);
PACE_INLINE int pace_setservent (int stayopen);
PACE_INLINE int pace_endservent ();
# if defined (PACE_HAS_CPLUSPLUS)
}
# endif /* PACE_HAS_CPLUSPLUS */
# if defined (PACE_HAS_INLINE)
# include "netdb.inl"
# endif /* PACE_HAS_INLINE */
#endif /* PACE_NETDB_H */
|