xref: /titanic_44/usr/src/cmd/ssh/include/openbsd-compat.h (revision 44991a1c1bb35cccb6bf99cb6dce14864dcee19c)
1*90685d2cSjp161948 /*
2*90685d2cSjp161948  * Copyright (c) 1999-2003 Damien Miller.  All rights reserved.
3*90685d2cSjp161948  * Copyright (c) 2003 Ben Lindstrom. All rights reserved.
4*90685d2cSjp161948  * Copyright (c) 2002 Tim Rice.  All rights reserved.
5*90685d2cSjp161948  *
6*90685d2cSjp161948  * Redistribution and use in source and binary forms, with or without
7*90685d2cSjp161948  * modification, are permitted provided that the following conditions
8*90685d2cSjp161948  * are met:
9*90685d2cSjp161948  * 1. Redistributions of source code must retain the above copyright
10*90685d2cSjp161948  *    notice, this list of conditions and the following disclaimer.
11*90685d2cSjp161948  * 2. Redistributions in binary form must reproduce the above copyright
12*90685d2cSjp161948  *    notice, this list of conditions and the following disclaimer in the
13*90685d2cSjp161948  *    documentation and/or other materials provided with the distribution.
14*90685d2cSjp161948  *
15*90685d2cSjp161948  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16*90685d2cSjp161948  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17*90685d2cSjp161948  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18*90685d2cSjp161948  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19*90685d2cSjp161948  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20*90685d2cSjp161948  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21*90685d2cSjp161948  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22*90685d2cSjp161948  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23*90685d2cSjp161948  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24*90685d2cSjp161948  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25*90685d2cSjp161948  */
267c478bd9Sstevel@tonic-gate 
277c478bd9Sstevel@tonic-gate #ifndef	_OPENBSD_COMPAT_H
287c478bd9Sstevel@tonic-gate #define	_OPENBSD_COMPAT_H
297c478bd9Sstevel@tonic-gate 
30*90685d2cSjp161948 /* $Id: openbsd-compat.h,v 1.17 2002/09/12 00:33:02 djm Exp $ */
31*90685d2cSjp161948 
327c478bd9Sstevel@tonic-gate #ifdef __cplusplus
337c478bd9Sstevel@tonic-gate extern "C" {
347c478bd9Sstevel@tonic-gate #endif
357c478bd9Sstevel@tonic-gate 
367c478bd9Sstevel@tonic-gate #include "config.h"
377c478bd9Sstevel@tonic-gate 
387c478bd9Sstevel@tonic-gate /* OpenBSD function replacements */
397c478bd9Sstevel@tonic-gate #include "bindresvport.h"
407c478bd9Sstevel@tonic-gate #include "getcwd.h"
417c478bd9Sstevel@tonic-gate #include "realpath.h"
427c478bd9Sstevel@tonic-gate #include "rresvport.h"
437c478bd9Sstevel@tonic-gate #include "strlcpy.h"
447c478bd9Sstevel@tonic-gate #include "strlcat.h"
457c478bd9Sstevel@tonic-gate #include "strmode.h"
467c478bd9Sstevel@tonic-gate #include "mktemp.h"
477c478bd9Sstevel@tonic-gate #include "dirname.h"
487c478bd9Sstevel@tonic-gate #include "base64.h"
497c478bd9Sstevel@tonic-gate #include "sigact.h"
507c478bd9Sstevel@tonic-gate #include "inet_ntoa.h"
517c478bd9Sstevel@tonic-gate #include "inet_ntop.h"
527c478bd9Sstevel@tonic-gate #include "setproctitle.h"
537c478bd9Sstevel@tonic-gate #include "getgrouplist.h"
547c478bd9Sstevel@tonic-gate #include "glob.h"
557c478bd9Sstevel@tonic-gate #include "readpassphrase.h"
567c478bd9Sstevel@tonic-gate #include "getopt.h"
577c478bd9Sstevel@tonic-gate 
587c478bd9Sstevel@tonic-gate /* Home grown routines */
597c478bd9Sstevel@tonic-gate #include "bsd-arc4random.h"
607c478bd9Sstevel@tonic-gate #include "bsd-getpeereid.h"
617c478bd9Sstevel@tonic-gate #include "bsd-misc.h"
627c478bd9Sstevel@tonic-gate #include "bsd-snprintf.h"
637c478bd9Sstevel@tonic-gate #include "bsd-waitpid.h"
647c478bd9Sstevel@tonic-gate 
657c478bd9Sstevel@tonic-gate /* rfc2553 socket API replacements */
667c478bd9Sstevel@tonic-gate #include "fake-getaddrinfo.h"
677c478bd9Sstevel@tonic-gate #include "fake-getnameinfo.h"
687c478bd9Sstevel@tonic-gate #include "fake-socket.h"
697c478bd9Sstevel@tonic-gate 
707c478bd9Sstevel@tonic-gate /* Routines for a single OS platform */
717c478bd9Sstevel@tonic-gate #include "bsd-cray.h"
727c478bd9Sstevel@tonic-gate #include "port-irix.h"
737c478bd9Sstevel@tonic-gate #include "port-aix.h"
747c478bd9Sstevel@tonic-gate 
75*90685d2cSjp161948 #ifndef HAVE_VASPRINTF
76*90685d2cSjp161948 int vasprintf(char **, const char *, va_list);
77*90685d2cSjp161948 #endif
78*90685d2cSjp161948 
797c478bd9Sstevel@tonic-gate #ifdef __cplusplus
807c478bd9Sstevel@tonic-gate }
817c478bd9Sstevel@tonic-gate #endif
827c478bd9Sstevel@tonic-gate 
837c478bd9Sstevel@tonic-gate #endif /* _OPENBSD_COMPAT_H */
84