xref: /titanic_50/usr/src/cmd/ssh/include/fake-getnameinfo.h (revision c77a61a72b5ecdc507d6cf104142edd371a16c84)
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