osd_defs.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:2k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /* BSDI osd_defs.h,v 1.4 1998/06/03 19:14:58 karels Exp */
  2. /*
  3.  * Copyright (c) 1996-1999 Distributed Processing Technology Corporation
  4.  * All rights reserved.
  5.  *
  6.  * Redistribution and use in source form, with or without modification, are
  7.  * permitted provided that redistributions of source code must retain the
  8.  * above copyright notice, this list of conditions and the following disclaimer.
  9.  *
  10.  * This software is provided `as is' by Distributed Processing Technology and
  11.  * any express or implied warranties, including, but not limited to, the
  12.  * implied warranties of merchantability and fitness for a particular purpose,
  13.  * are disclaimed. In no event shall Distributed Processing Technology be
  14.  * liable for any direct, indirect, incidental, special, exemplary or
  15.  * consequential damages (including, but not limited to, procurement of
  16.  * substitute goods or services; loss of use, data, or profits; or business
  17.  * interruptions) however caused and on any theory of liability, whether in
  18.  * contract, strict liability, or tort (including negligence or otherwise)
  19.  * arising in any way out of the use of this driver software, even if advised
  20.  * of the possibility of such damage.
  21.  *
  22.  */
  23. #ifndef _OSD_DEFS_H
  24. #define _OSD_DEFS_H
  25. /*File - OSD_DEFS.H
  26.  ****************************************************************************
  27.  *
  28.  *Description:
  29.  *
  30.  * This file contains the OS dependent defines.  This file is included
  31.  *in osd_util.h and provides the OS specific defines for that file.
  32.  *
  33.  *Copyright Distributed Processing Technology, Corp.
  34.  *   140 Candace Dr.
  35.  *   Maitland, Fl. 32751   USA
  36.  *   Phone: (407) 830-5522  Fax: (407) 260-5366
  37.  *   All Rights Reserved
  38.  *
  39.  *Author: Doug Anderson
  40.  *Date: 1/31/94
  41.  *
  42.  *Editors:
  43.  *
  44.  *Remarks:
  45.  *
  46.  *
  47.  *****************************************************************************/
  48. /*Definitions - Defines & Constants ----------------------------------------- */
  49.   /* Define the operating system */
  50. #if (defined(__linux__))
  51. # define _DPT_LINUX
  52. #elif (defined(__bsdi__))
  53. # define _DPT_BSDI
  54. #elif (defined(__FreeBSD__))
  55. # define _DPT_FREE_BSD
  56. #else
  57. # define _DPT_SCO
  58. #endif
  59. #if defined (ZIL_CURSES)
  60. #define _DPT_CURSES
  61. #else
  62. #define         _DPT_MOTIF
  63. #endif
  64.   /* Redefine 'far' to nothing - no far pointer type required in UNIX */
  65. #define far
  66.   /* Define the mutually exclusive semaphore type */
  67. #define SEMAPHORE_T unsigned int *
  68.   /* Define a handle to a DLL */
  69. #define DLL_HANDLE_T unsigned int *
  70. #endif