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