1 /* $FreeBSD: src/sys/dev/asr/osd_defs.h,v 1.1.2.2 2001/08/23 05:21:29 scottl Exp $ */
2 /* $DragonFly: src/sys/dev/raid/asr/osd_defs.h,v 1.2 2003/06/17 04:28:22 dillon Exp $ */
4 * Copyright (c) 1996-1999 Distributed Processing Technology Corporation
7 * Redistribution and use in source form, with or without modification, are
8 * permitted provided that redistributions of source code must retain the
9 * above copyright notice, this list of conditions and the following disclaimer.
11 * This software is provided `as is' by Distributed Processing Technology and
12 * any express or implied warranties, including, but not limited to, the
13 * implied warranties of merchantability and fitness for a particular purpose,
14 * are disclaimed. In no event shall Distributed Processing Technology be
15 * liable for any direct, indirect, incidental, special, exemplary or
16 * consequential damages (including, but not limited to, procurement of
17 * substitute goods or services; loss of use, data, or profits; or business
18 * interruptions) however caused and on any theory of liability, whether in
19 * contract, strict liability, or tort (including negligence or otherwise)
20 * arising in any way out of the use of this driver software, even if advised
21 * of the possibility of such damage.
29 ****************************************************************************
33 * This file contains the OS dependent defines. This file is included
34 *in osd_util.h and provides the OS specific defines for that file.
36 *Copyright Distributed Processing Technology, Corp.
38 * Maitland, Fl. 32751 USA
39 * Phone: (407) 830-5522 Fax: (407) 260-5366
42 *Author: Doug Anderson
50 *****************************************************************************/
53 /*Definitions - Defines & Constants ----------------------------------------- */
55 /* Define the operating system */
56 #if (defined(__linux__))
58 #elif (defined(__bsdi__))
60 #elif (defined(__FreeBSD__))
62 # define _DPT_FREE_BSD
67 #if defined (ZIL_CURSES)
73 /* Redefine 'far' to nothing - no far pointer type required in UNIX */
76 /* Define the mutually exclusive semaphore type */
77 #define SEMAPHORE_T unsigned int *
78 /* Define a handle to a DLL */
79 #define DLL_HANDLE_T unsigned int *