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 #pragma ident "%Z%%M% %I% %E% SMI" 330Sstevel@tonic-gate 340Sstevel@tonic-gate #ifdef __cplusplus 350Sstevel@tonic-gate extern "C" { 360Sstevel@tonic-gate #endif 370Sstevel@tonic-gate 380Sstevel@tonic-gate #include "config.h" 390Sstevel@tonic-gate 400Sstevel@tonic-gate /* OpenBSD function replacements */ 410Sstevel@tonic-gate #include "bindresvport.h" 420Sstevel@tonic-gate #include "getcwd.h" 430Sstevel@tonic-gate #include "realpath.h" 440Sstevel@tonic-gate #include "rresvport.h" 450Sstevel@tonic-gate #include "strlcpy.h" 460Sstevel@tonic-gate #include "strlcat.h" 470Sstevel@tonic-gate #include "strmode.h" 480Sstevel@tonic-gate #include "mktemp.h" 490Sstevel@tonic-gate #include "daemon.h" 500Sstevel@tonic-gate #include "dirname.h" 510Sstevel@tonic-gate #include "base64.h" 520Sstevel@tonic-gate #include "sigact.h" 530Sstevel@tonic-gate #include "inet_ntoa.h" 540Sstevel@tonic-gate #include "inet_ntop.h" 550Sstevel@tonic-gate #include "strsep.h" 560Sstevel@tonic-gate #include "setproctitle.h" 570Sstevel@tonic-gate #include "getgrouplist.h" 580Sstevel@tonic-gate #include "glob.h" 590Sstevel@tonic-gate #include "readpassphrase.h" 600Sstevel@tonic-gate #include "getopt.h" 610Sstevel@tonic-gate 620Sstevel@tonic-gate /* Home grown routines */ 630Sstevel@tonic-gate #include "bsd-arc4random.h" 640Sstevel@tonic-gate #include "bsd-getpeereid.h" 650Sstevel@tonic-gate #include "bsd-misc.h" 660Sstevel@tonic-gate #include "bsd-snprintf.h" 670Sstevel@tonic-gate #include "bsd-waitpid.h" 680Sstevel@tonic-gate 690Sstevel@tonic-gate /* rfc2553 socket API replacements */ 700Sstevel@tonic-gate #include "fake-getaddrinfo.h" 710Sstevel@tonic-gate #include "fake-getnameinfo.h" 720Sstevel@tonic-gate #include "fake-socket.h" 730Sstevel@tonic-gate 740Sstevel@tonic-gate /* Routines for a single OS platform */ 750Sstevel@tonic-gate #include "bsd-cray.h" 760Sstevel@tonic-gate #include "port-irix.h" 770Sstevel@tonic-gate #include "port-aix.h" 780Sstevel@tonic-gate 79*5087Sjp161948 #ifndef HAVE_VASPRINTF 80*5087Sjp161948 int vasprintf(char **, const char *, va_list); 81*5087Sjp161948 #endif 82*5087Sjp161948 830Sstevel@tonic-gate #ifdef __cplusplus 840Sstevel@tonic-gate } 850Sstevel@tonic-gate #endif 860Sstevel@tonic-gate 870Sstevel@tonic-gate #endif /* _OPENBSD_COMPAT_H */ 88