root/compat/ibcs2/ibcs2_util.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


    1 /*      $OpenBSD: ibcs2_util.h,v 1.3 1997/01/23 16:12:20 niklas Exp $   */
    2 /*      $NetBSD: ibcs2_util.h,v 1.4 1996/10/13 00:46:52 christos Exp $  */
    3 
    4 /*
    5  * Copyright (c) 1994 Christos Zoulas
    6  * Copyright (c) 1995 Frank van der Linden
    7  * Copyright (c) 1995 Scott Bartram
    8  * All rights reserved.
    9  *
   10  * Redistribution and use in source and binary forms, with or without
   11  * modification, are permitted provided that the following conditions
   12  * are met:
   13  * 1. Redistributions of source code must retain the above copyright
   14  *    notice, this list of conditions and the following disclaimer.
   15  * 2. Redistributions in binary form must reproduce the above copyright
   16  *    notice, this list of conditions and the following disclaimer in the
   17  *    documentation and/or other materials provided with the distribution.
   18  * 3. The name of the author may not be used to endorse or promote products
   19  *    derived from this software without specific prior written permission
   20  *
   21  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   22  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   23  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   24  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
   25  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
   26  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
   27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
   28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   30  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   31  *
   32  */
   33 
   34 #ifndef _IBCS2_UTIL_H_
   35 #define _IBCS2_UTIL_H_
   36 
   37 #include <compat/common/compat_util.h>
   38 
   39 #ifdef DEBUG_IBCS2
   40 #define DPRINTF(a)      printf a;
   41 #else
   42 #define DPRINTF(a)
   43 #endif
   44 
   45 extern const char ibcs2_emul_path[];
   46 
   47 #define IBCS2_CHECK_ALT_EXIST(p, sgp, path) \
   48         CHECK_ALT_EXIST(p, sgp, ibcs2_emul_path, path)
   49 
   50 #define IBCS2_CHECK_ALT_CREAT(p, sgp, path) \
   51         CHECK_ALT_CREAT(p, sgp, ibcs2_emul_path, path)
   52 
   53 #endif /* !_IBCS2_UTIL_H_ */

/* [<][>][^][v][top][bottom][index][help] */