xref: /onnv-gate/usr/src/cmd/ssh/include/openbsd-compat.h (revision 10547:1a61a72b11d5)
1*5087Sjp161948 /*
2*5087Sjp161948  * Copyright (c) 1999-2003 Damien Miller.  All rights reserved.
3*5087Sjp161948  * Copyright (c) 2003 Ben Lindstrom. All rights reserved.
4*5087Sjp161948  * Copyright (c) 2002 Tim Rice.  All rights reserved.
5*5087Sjp161948  *
6*5087Sjp161948  * Redistribution and use in source and binary forms, with or without
7*5087Sjp161948  * modification, are permitted provided that the following conditions
8*5087Sjp161948  * are met:
9*5087Sjp161948  * 1. Redistributions of source code must retain the above copyright
10*5087Sjp161948  *    notice, this list of conditions and the following disclaimer.
11*5087Sjp161948  * 2. Redistributions in binary form must reproduce the above copyright
12*5087Sjp161948  *    notice, this list of conditions and the following disclaimer in the
13*5087Sjp161948  *    documentation and/or other materials provided with the distribution.
14*5087Sjp161948  *
15*5087Sjp161948  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16*5087Sjp161948  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17*5087Sjp161948  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18*5087Sjp161948  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19*5087Sjp161948  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20*5087Sjp161948  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21*5087Sjp161948  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22*5087Sjp161948  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23*5087Sjp161948  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24*5087Sjp161948  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25*5087Sjp161948  */
260Sstevel@tonic-gate 
270Sstevel@tonic-gate #ifndef	_OPENBSD_COMPAT_H
280Sstevel@tonic-gate #define	_OPENBSD_COMPAT_H
290Sstevel@tonic-gate 
30*5087Sjp161948 /* $Id: openbsd-compat.h,v 1.17 2002/09/12 00:33:02 djm Exp $ */
31*5087Sjp161948 
320Sstevel@tonic-gate #ifdef __cplusplus
330Sstevel@tonic-gate extern "C" {
340Sstevel@tonic-gate #endif
350Sstevel@tonic-gate 
360Sstevel@tonic-gate #include "config.h"
370Sstevel@tonic-gate 
380Sstevel@tonic-gate /* OpenBSD function replacements */
390Sstevel@tonic-gate #include "bindresvport.h"
400Sstevel@tonic-gate #include "getcwd.h"
410Sstevel@tonic-gate #include "realpath.h"
420Sstevel@tonic-gate #include "rresvport.h"
430Sstevel@tonic-gate #include "strlcpy.h"
440Sstevel@tonic-gate #include "strlcat.h"
450Sstevel@tonic-gate #include "strmode.h"
460Sstevel@tonic-gate #include "mktemp.h"
470Sstevel@tonic-gate #include "dirname.h"
480Sstevel@tonic-gate #include "base64.h"
490Sstevel@tonic-gate #include "sigact.h"
500Sstevel@tonic-gate #include "inet_ntoa.h"
510Sstevel@tonic-gate #include "inet_ntop.h"
520Sstevel@tonic-gate #include "setproctitle.h"
530Sstevel@tonic-gate #include "getgrouplist.h"
540Sstevel@tonic-gate #include "glob.h"
550Sstevel@tonic-gate #include "readpassphrase.h"
560Sstevel@tonic-gate #include "getopt.h"
570Sstevel@tonic-gate 
580Sstevel@tonic-gate /* Home grown routines */
590Sstevel@tonic-gate #include "bsd-arc4random.h"
600Sstevel@tonic-gate #include "bsd-getpeereid.h"
610Sstevel@tonic-gate #include "bsd-misc.h"
620Sstevel@tonic-gate #include "bsd-snprintf.h"
630Sstevel@tonic-gate #include "bsd-waitpid.h"
640Sstevel@tonic-gate 
650Sstevel@tonic-gate /* rfc2553 socket API replacements */
660Sstevel@tonic-gate #include "fake-getaddrinfo.h"
670Sstevel@tonic-gate #include "fake-getnameinfo.h"
680Sstevel@tonic-gate #include "fake-socket.h"
690Sstevel@tonic-gate 
700Sstevel@tonic-gate /* Routines for a single OS platform */
710Sstevel@tonic-gate #include "bsd-cray.h"
720Sstevel@tonic-gate #include "port-irix.h"
730Sstevel@tonic-gate #include "port-aix.h"
740Sstevel@tonic-gate 
75*5087Sjp161948 #ifndef HAVE_VASPRINTF
76*5087Sjp161948 int vasprintf(char **, const char *, va_list);
77*5087Sjp161948 #endif
78*5087Sjp161948 
790Sstevel@tonic-gate #ifdef __cplusplus
800Sstevel@tonic-gate }
810Sstevel@tonic-gate #endif
820Sstevel@tonic-gate 
830Sstevel@tonic-gate #endif /* _OPENBSD_COMPAT_H */
84