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 #pragma ident "%Z%%M% %I% %E% SMI" 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gate #ifdef __cplusplus 357c478bd9Sstevel@tonic-gate extern "C" { 367c478bd9Sstevel@tonic-gate #endif 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gate #include "config.h" 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gate /* OpenBSD function replacements */ 417c478bd9Sstevel@tonic-gate #include "bindresvport.h" 427c478bd9Sstevel@tonic-gate #include "getcwd.h" 437c478bd9Sstevel@tonic-gate #include "realpath.h" 447c478bd9Sstevel@tonic-gate #include "rresvport.h" 457c478bd9Sstevel@tonic-gate #include "strlcpy.h" 467c478bd9Sstevel@tonic-gate #include "strlcat.h" 477c478bd9Sstevel@tonic-gate #include "strmode.h" 487c478bd9Sstevel@tonic-gate #include "mktemp.h" 497c478bd9Sstevel@tonic-gate #include "daemon.h" 507c478bd9Sstevel@tonic-gate #include "dirname.h" 517c478bd9Sstevel@tonic-gate #include "base64.h" 527c478bd9Sstevel@tonic-gate #include "sigact.h" 537c478bd9Sstevel@tonic-gate #include "inet_ntoa.h" 547c478bd9Sstevel@tonic-gate #include "inet_ntop.h" 557c478bd9Sstevel@tonic-gate #include "strsep.h" 567c478bd9Sstevel@tonic-gate #include "setproctitle.h" 577c478bd9Sstevel@tonic-gate #include "getgrouplist.h" 587c478bd9Sstevel@tonic-gate #include "glob.h" 597c478bd9Sstevel@tonic-gate #include "readpassphrase.h" 607c478bd9Sstevel@tonic-gate #include "getopt.h" 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gate /* Home grown routines */ 637c478bd9Sstevel@tonic-gate #include "bsd-arc4random.h" 647c478bd9Sstevel@tonic-gate #include "bsd-getpeereid.h" 657c478bd9Sstevel@tonic-gate #include "bsd-misc.h" 667c478bd9Sstevel@tonic-gate #include "bsd-snprintf.h" 677c478bd9Sstevel@tonic-gate #include "bsd-waitpid.h" 687c478bd9Sstevel@tonic-gate 697c478bd9Sstevel@tonic-gate /* rfc2553 socket API replacements */ 707c478bd9Sstevel@tonic-gate #include "fake-getaddrinfo.h" 717c478bd9Sstevel@tonic-gate #include "fake-getnameinfo.h" 727c478bd9Sstevel@tonic-gate #include "fake-socket.h" 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gate /* Routines for a single OS platform */ 757c478bd9Sstevel@tonic-gate #include "bsd-cray.h" 767c478bd9Sstevel@tonic-gate #include "port-irix.h" 777c478bd9Sstevel@tonic-gate #include "port-aix.h" 787c478bd9Sstevel@tonic-gate 79*90685d2cSjp161948 #ifndef HAVE_VASPRINTF 80*90685d2cSjp161948 int vasprintf(char **, const char *, va_list); 81*90685d2cSjp161948 #endif 82*90685d2cSjp161948 837c478bd9Sstevel@tonic-gate #ifdef __cplusplus 847c478bd9Sstevel@tonic-gate } 857c478bd9Sstevel@tonic-gate #endif 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gate #endif /* _OPENBSD_COMPAT_H */ 88