osd_defs.h revision 65312
1/* $FreeBSD: head/sys/dev/asr/osd_defs.h 65312 2000-09-01 07:51:25Z msmith $ */
2/*	BSDI osd_defs.h,v 1.4 1998/06/03 19:14:58 karels Exp	*/
3/*
4 * Copyright (c) 1996-1999 Distributed Processing Technology Corporation
5 * All rights reserved.
6 *
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.
10 *
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.
22 *
23 */
24
25#ifndef		_OSD_DEFS_H
26#define		_OSD_DEFS_H
27
28/*File - OSD_DEFS.H
29 ****************************************************************************
30 *
31 *Description:
32 *
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.
35 *
36 *Copyright Distributed Processing Technology, Corp.
37 *	  140 Candace Dr.
38 *	  Maitland, Fl.	32751   USA
39 *	  Phone: (407) 830-5522  Fax: (407) 260-5366
40 *	  All Rights Reserved
41 *
42 *Author:	Doug Anderson
43 *Date:		1/31/94
44 *
45 *Editors:
46 *
47 *Remarks:
48 *
49 *
50 *****************************************************************************/
51
52
53/*Definitions - Defines & Constants ----------------------------------------- */
54
55  /* Define the operating system */
56#if (defined(__linux__))
57# define _DPT_LINUX
58#elif (defined(__bsdi__))
59# define _DPT_BSDI
60#elif (defined(__FreeBSD__))
61# define _DPT_FREE_BSD
62#else
63# define _DPT_SCO
64#endif
65
66#if defined (ZIL_CURSES)
67#define		_DPT_CURSES
68#else
69#define         _DPT_MOTIF
70#endif
71
72  /* Redefine 'far' to nothing - no far pointer type required in UNIX */
73#define		far
74
75  /* Define the mutually exclusive semaphore type */
76#define		SEMAPHORE_T	unsigned int *
77  /* Define a handle to a DLL */
78#define		DLL_HANDLE_T	unsigned int *
79
80#endif
81