xref: /titanic_50/usr/src/cmd/ssh/include/openbsd-compat.h (revision b9bd317cda1afb3a01f4812de73e8cec888cbbd7)
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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 #include "config.h"
39 
40 /* OpenBSD function replacements */
41 #include "bindresvport.h"
42 #include "getcwd.h"
43 #include "realpath.h"
44 #include "rresvport.h"
45 #include "strlcpy.h"
46 #include "strlcat.h"
47 #include "strmode.h"
48 #include "mktemp.h"
49 #include "daemon.h"
50 #include "dirname.h"
51 #include "base64.h"
52 #include "sigact.h"
53 #include "inet_ntoa.h"
54 #include "inet_ntop.h"
55 #include "strsep.h"
56 #include "setproctitle.h"
57 #include "getgrouplist.h"
58 #include "glob.h"
59 #include "readpassphrase.h"
60 #include "getopt.h"
61 
62 /* Home grown routines */
63 #include "bsd-arc4random.h"
64 #include "bsd-getpeereid.h"
65 #include "bsd-misc.h"
66 #include "bsd-snprintf.h"
67 #include "bsd-waitpid.h"
68 
69 /* rfc2553 socket API replacements */
70 #include "fake-getaddrinfo.h"
71 #include "fake-getnameinfo.h"
72 #include "fake-socket.h"
73 
74 /* Routines for a single OS platform */
75 #include "bsd-cray.h"
76 #include "port-irix.h"
77 #include "port-aix.h"
78 
79 #ifndef HAVE_VASPRINTF
80 int vasprintf(char **, const char *, va_list);
81 #endif
82 
83 #ifdef __cplusplus
84 }
85 #endif
86 
87 #endif /* _OPENBSD_COMPAT_H */
88