xref: /titanic_41/usr/src/cmd/ssh/include/openbsd-compat.h (revision 5bbb4db2c3f208d12bf0fd11769728f9e5ba66a2)
1 /*
2  * Copyright (c) 1999-2003 Damien Miller.  All rights reserved.
3  * Copyright (c) 2003 Ben Lindstrom. All rights reserved.
4  * Copyright (c) 2002 Tim Rice.  All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions
8  * are met:
9  * 1. Redistributions of source code must retain the above copyright
10  *    notice, this list of conditions and the following disclaimer.
11  * 2. Redistributions in binary form must reproduce the above copyright
12  *    notice, this list of conditions and the following disclaimer in the
13  *    documentation and/or other materials provided with the distribution.
14  *
15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25  */
26 
27 #ifndef	_OPENBSD_COMPAT_H
28 #define	_OPENBSD_COMPAT_H
29 
30 /* $Id: openbsd-compat.h,v 1.17 2002/09/12 00:33:02 djm Exp $ */
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 #include "config.h"
37 
38 /* OpenBSD function replacements */
39 #include "bindresvport.h"
40 #include "getcwd.h"
41 #include "realpath.h"
42 #include "rresvport.h"
43 #include "strlcpy.h"
44 #include "strlcat.h"
45 #include "strmode.h"
46 #include "mktemp.h"
47 #include "dirname.h"
48 #include "base64.h"
49 #include "sigact.h"
50 #include "inet_ntoa.h"
51 #include "inet_ntop.h"
52 #include "setproctitle.h"
53 #include "getgrouplist.h"
54 #include "glob.h"
55 #include "readpassphrase.h"
56 #include "getopt.h"
57 
58 /* Home grown routines */
59 #include "bsd-arc4random.h"
60 #include "bsd-getpeereid.h"
61 #include "bsd-misc.h"
62 #include "bsd-snprintf.h"
63 #include "bsd-waitpid.h"
64 
65 /* rfc2553 socket API replacements */
66 #include "fake-getaddrinfo.h"
67 #include "fake-getnameinfo.h"
68 #include "fake-socket.h"
69 
70 /* Routines for a single OS platform */
71 #include "bsd-cray.h"
72 #include "port-irix.h"
73 #include "port-aix.h"
74 
75 #ifndef HAVE_VASPRINTF
76 int vasprintf(char **, const char *, va_list);
77 #endif
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
83 #endif /* _OPENBSD_COMPAT_H */
84