fake-rfc2553.h (124696) | fake-rfc2553.h (126277) |
---|---|
1/* $Id: fake-rfc2553.h,v 1.6.2.1 2003/09/22 02:09:18 dtucker Exp $ */ 2/* $FreeBSD: head/crypto/openssh/openbsd-compat/fake-rfc2553.h 124696 2004-01-18 22:31:30Z des $ */ | 1/* $Id: fake-rfc2553.h,v 1.8 2004/02/10 02:05:41 dtucker Exp $ */ 2/* $FreeBSD: head/crypto/openssh/openbsd-compat/fake-rfc2553.h 126277 2004-02-26 10:52:33Z des $ */ |
3 4/* 5 * Copyright (C) 2000-2003 Damien Miller. All rights reserved. 6 * Copyright (C) 1999 WIDE Project. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 118 unchanged lines hidden (view full) --- 129 size_t ai_addrlen; /* length of ai_addr */ 130 char *ai_canonname; /* canonical name for hostname */ 131 struct sockaddr *ai_addr; /* binary address */ 132 struct addrinfo *ai_next; /* next structure in linked list */ 133}; 134#endif /* !HAVE_STRUCT_ADDRINFO */ 135 136#ifndef HAVE_GETADDRINFO | 3 4/* 5 * Copyright (C) 2000-2003 Damien Miller. All rights reserved. 6 * Copyright (C) 1999 WIDE Project. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 118 unchanged lines hidden (view full) --- 129 size_t ai_addrlen; /* length of ai_addr */ 130 char *ai_canonname; /* canonical name for hostname */ 131 struct sockaddr *ai_addr; /* binary address */ 132 struct addrinfo *ai_next; /* next structure in linked list */ 133}; 134#endif /* !HAVE_STRUCT_ADDRINFO */ 135 136#ifndef HAVE_GETADDRINFO |
137#define getaddrinfo(a,b,c,d) (ssh_getaddrinfo(a,b,c,d)) |
|
137int getaddrinfo(const char *, const char *, 138 const struct addrinfo *, struct addrinfo **); 139#endif /* !HAVE_GETADDRINFO */ 140 141#if !defined(HAVE_GAI_STRERROR) && !defined(HAVE_CONST_GAI_STRERROR_PROTO) | 138int getaddrinfo(const char *, const char *, 139 const struct addrinfo *, struct addrinfo **); 140#endif /* !HAVE_GETADDRINFO */ 141 142#if !defined(HAVE_GAI_STRERROR) && !defined(HAVE_CONST_GAI_STRERROR_PROTO) |
143#define gai_strerror(a) (ssh_gai_strerror(a)) |
|
142char *gai_strerror(int); 143#endif /* !HAVE_GAI_STRERROR */ 144 145#ifndef HAVE_FREEADDRINFO | 144char *gai_strerror(int); 145#endif /* !HAVE_GAI_STRERROR */ 146 147#ifndef HAVE_FREEADDRINFO |
148#define freeaddrinfo(a) (ssh_freeaddrinfo(a)) |
|
146void freeaddrinfo(struct addrinfo *); 147#endif /* !HAVE_FREEADDRINFO */ 148 149#ifndef HAVE_GETNAMEINFO | 149void freeaddrinfo(struct addrinfo *); 150#endif /* !HAVE_FREEADDRINFO */ 151 152#ifndef HAVE_GETNAMEINFO |
153#define getnameinfo(a,b,c,d,e,f,g) (ssh_getnameinfo(a,b,c,d,e,f,g)) |
|
150int getnameinfo(const struct sockaddr *, size_t, char *, size_t, 151 char *, size_t, int); 152#endif /* !HAVE_GETNAMEINFO */ 153 154#endif /* !_FAKE_RFC2553_H */ 155 | 154int getnameinfo(const struct sockaddr *, size_t, char *, size_t, 155 char *, size_t, int); 156#endif /* !HAVE_GETNAMEINFO */ 157 158#endif /* !_FAKE_RFC2553_H */ 159 |