[7297] Fixed profession spells sorting in trainer spell list at client.
[getmangos.git] / dep / ACE_wrappers / ace / OS_NS_netdb.h
blob0c6bdf43556690ffd18e175b9938a5e6a9ecfb7f
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file OS_NS_netdb.h
7 * $Id: OS_NS_netdb.h 80826 2008-03-04 14:51:23Z wotte $
9 * @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
10 * @author Jesper S. M|ller<stophph@diku.dk>
11 * @author and a cast of thousands...
13 * Originally in OS.h.
15 //=============================================================================
17 #ifndef ACE_OS_NS_NETDB_H
18 #define ACE_OS_NS_NETDB_H
20 # include /**/ "ace/pre.h"
22 # include "ace/config-all.h"
24 # if !defined (ACE_LACKS_PRAGMA_ONCE)
25 # pragma once
26 # endif /* ACE_LACKS_PRAGMA_ONCE */
28 #include "ace/os_include/os_netdb.h"
29 #include /**/ "ace/ACE_export.h"
31 #if defined (ACE_EXPORT_MACRO)
32 # undef ACE_EXPORT_MACRO
33 #endif
34 #define ACE_EXPORT_MACRO ACE_Export
36 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
38 namespace ACE_OS
41 #if defined (ACE_VXWORKS) && defined (ACE_LACKS_GETHOSTBYADDR)
42 extern ACE_Export
43 #else
44 ACE_NAMESPACE_INLINE_FUNCTION
45 #endif /* ACE_VXWORKS */
46 struct hostent *gethostbyaddr (const char *addr,
47 int length,
48 int type);
50 #if defined (ACE_VXWORKS) && defined (ACE_LACKS_GETHOSTBYADDR)
51 extern ACE_Export
52 #else
53 ACE_NAMESPACE_INLINE_FUNCTION
54 #endif /* ACE_VXWORKS */
55 struct hostent *gethostbyaddr_r (const char *addr,
56 int length,
57 int type,
58 struct hostent *result,
59 ACE_HOSTENT_DATA buffer,
60 int *h_errnop);
62 #if defined (ACE_VXWORKS) && defined (ACE_LACKS_GETHOSTBYNAME)
63 extern ACE_Export
64 #else
65 ACE_NAMESPACE_INLINE_FUNCTION
66 #endif /* ACE_VXWORKS */
67 struct hostent *gethostbyname (const char *name);
69 #if defined (ACE_VXWORKS) && defined (ACE_LACKS_GETHOSTBYNAME)
70 extern ACE_Export
71 #else
72 ACE_NAMESPACE_INLINE_FUNCTION
73 #endif /* ACE_VXWORKS */
74 struct hostent *gethostbyname_r (const char *name,
75 struct hostent *result,
76 ACE_HOSTENT_DATA buffer,
77 int *h_errnop);
80 ACE_NAMESPACE_INLINE_FUNCTION
81 struct hostent *getipnodebyaddr (const void *src, size_t len,
82 int family);
84 ACE_NAMESPACE_INLINE_FUNCTION
85 struct hostent *getipnodebyname (const char *name, int family,
86 int flags = 0);
88 /**
89 * Get the first adapter found on the machine.
90 * @todo: this is really useless except for UUID, move there? dhinton
92 struct macaddr_node_t {
93 unsigned char node[6];
96 extern ACE_Export
97 int getmacaddress (struct macaddr_node_t *node);
99 ACE_NAMESPACE_INLINE_FUNCTION
100 struct protoent *getprotobyname (const char *name);
102 ACE_NAMESPACE_INLINE_FUNCTION
103 struct protoent *getprotobyname_r (const char *name,
104 struct protoent *result,
105 ACE_PROTOENT_DATA buffer);
107 ACE_NAMESPACE_INLINE_FUNCTION
108 struct protoent *getprotobynumber (int proto);
110 ACE_NAMESPACE_INLINE_FUNCTION
111 struct protoent *getprotobynumber_r (int proto,
112 struct protoent *result,
113 ACE_PROTOENT_DATA buffer);
115 ACE_NAMESPACE_INLINE_FUNCTION
116 struct servent *getservbyname (const char *svc,
117 const char *proto);
119 ACE_NAMESPACE_INLINE_FUNCTION
120 struct servent *getservbyname_r (const char *svc,
121 const char *proto,
122 struct servent *result,
123 ACE_SERVENT_DATA buf);
125 # if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0) && defined (ACE_LACKS_NETDB_REENTRANT_FUNCTIONS)
126 extern ACE_Export
127 int netdb_acquire (void);
129 extern ACE_Export
130 int netdb_release (void);
131 # endif /* defined (ACE_MT_SAFE) && ACE_LACKS_NETDB_REENTRANT_FUNCTIONS */
133 } /* namespace ACE_OS */
135 ACE_END_VERSIONED_NAMESPACE_DECL
137 # if defined (ACE_HAS_INLINED_OSCALLS)
138 # if defined (ACE_INLINE)
139 # undef ACE_INLINE
140 # endif /* ACE_INLINE */
141 # define ACE_INLINE inline
142 # include "ace/OS_NS_netdb.inl"
143 # endif /* ACE_HAS_INLINED_OSCALLS */
145 # include /**/ "ace/post.h"
146 #endif /* ACE_OS_NS_NETDB_H */