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