xref: /titanic_41/usr/src/cmd/ssh/include/fake-getnameinfo.h (revision 45916cd2fec6e79bca5dee0421bd39e3c2910d1e)
1 /* $Id: fake-getnameinfo.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */
2 
3 #ifndef	_FAKE_GETNAMEINFO_H
4 #define	_FAKE_GETNAMEINFO_H
5 
6 #pragma ident	"%Z%%M%	%I%	%E% SMI"
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 #include "config.h"
13 
14 #ifndef HAVE_GETNAMEINFO
15 int getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
16                 size_t hostlen, char *serv, size_t servlen, int flags);
17 #endif /* !HAVE_GETNAMEINFO */
18 
19 #ifndef NI_MAXSERV
20 # define NI_MAXSERV 32
21 #endif /* !NI_MAXSERV */
22 #ifndef NI_MAXHOST
23 # define NI_MAXHOST 1025
24 #endif /* !NI_MAXHOST */
25 
26 #ifdef __cplusplus
27 }
28 #endif
29 
30 #endif /* _FAKE_GETNAMEINFO_H */
31