home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / include / os2file.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.1 KB  |  74 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. /* ---------------------------------------------------------------------------
  20.     Stuff to fake unix file I/O on os2 boxes
  21.     ------------------------------------------------------------------------*/
  22.  
  23. #ifndef OS2FILE_H
  24. #define OS2FILE_H
  25.  
  26. #if defined(XP_OS2)
  27. /* 32-bit stuff here */
  28. #define INCL_DOSPROCESS
  29. #define INCL_DOS
  30. #define INCL_DOSERRORS
  31. #define INCL_DOSFILEMGR
  32. #define INCL_DOSMODULEMGR
  33. #define INCL_PM
  34.  
  35.  
  36. #define INCL_WIN
  37. #define INCL_WINATOM
  38. #define INCL_GPI
  39. #define TID OS2TID   /* global rename in OS2 H's!               */
  40. #include <os2.h>
  41. #undef TID           /* and restore                             */
  42.  
  43.  
  44. /*DAK these are empty.. #include <windef.h> */
  45. /*DAK these are empty.. #include <winbase.h>*/
  46. #include <stdlib.h>
  47. #include <sys\types.h>
  48. #include <sys\stat.h>
  49. #include "dirent.h"
  50.  
  51. /*DSR020697 - now using dirent.h for DIR...*/
  52.  
  53. #define _ST_FSTYPSZ 16
  54. typedef unsigned long mode_t;
  55. typedef          long uid_t;
  56. typedef          long gid_t;
  57. #ifndef XP_OS2
  58.    typedef          long off_t;
  59. #endif
  60. typedef unsigned long nlink_t;
  61.  
  62. typedef struct timestruc {
  63.     time_t  tv_sec;         /* seconds */
  64.     long    tv_nsec;        /* and nanoseconds */
  65. } timestruc_t;
  66.  
  67. /*DSR020697 - now using dirent.h for dirent, S_ISDIR...*/
  68.  
  69. #endif /* XP_OS2 */
  70.  
  71. #define CONST const
  72.  
  73. #endif /* OS2FILE_H */
  74.