home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / h.z / FCNTL.H < prev    next >
C/C++ Source or Header  |  1996-07-24  |  2KB  |  69 lines

  1. /*
  2.  *  fcntl.h    File control options used by open
  3.  *
  4.  *  Copyright by WATCOM International Corp. 1988-1996.  All rights reserved.
  5.  */
  6. #ifndef _FCNTL_H_INCLUDED
  7. #define _FCNTL_H_INCLUDED
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11.  
  12. #ifndef _COMDEF_H_INCLUDED
  13.  #include <_comdef.h>
  14. #endif
  15.  
  16. #if defined(_M_IX86)
  17.   #pragma pack(__push,1);
  18. #else
  19.   #pragma pack(__push,8);
  20. #endif
  21.  
  22. #ifndef _WCHAR_T_DEFINED
  23. #define _WCHAR_T_DEFINED
  24. #define _WCHAR_T_DEFINED_
  25. #ifdef __cplusplus
  26. typedef long char wchar_t;
  27. #else
  28. typedef unsigned short wchar_t;
  29. #endif
  30. #endif
  31.  
  32. #define O_RDONLY    0x0000    /* open for read only */
  33. #define _O_RDONLY    0x0000    /* open for read only */
  34. #define O_WRONLY    0x0001    /* open for write only */
  35. #define _O_WRONLY    0x0001    /* open for write only */
  36. #define O_RDWR        0x0002    /* open for read and write */
  37. #define _O_RDWR        0x0002    /* open for read and write */
  38. #define O_APPEND    0x0010    /* writes done at end of file */
  39. #define _O_APPEND    0x0010    /* writes done at end of file */
  40. #define O_CREAT     0x0020    /* create new file */
  41. #define _O_CREAT     0x0020    /* create new file */
  42. #define O_TRUNC     0x0040    /* truncate existing file */
  43. #define _O_TRUNC     0x0040    /* truncate existing file */
  44. #define O_NOINHERIT    0x0080    /* file is not inherited by child process */
  45. #define _O_NOINHERIT    0x0080    /* file is not inherited by child process */
  46. #define O_TEXT        0x0100    /* text file */
  47. #define _O_TEXT        0x0100    /* text file */
  48. #define O_BINARY    0x0200    /* binary file */
  49. #define _O_BINARY    0x0200    /* binary file */
  50. #define O_EXCL        0x0400    /* exclusive open */
  51. #define _O_EXCL        0x0400    /* exclusive open */
  52.  
  53. /*
  54.  *  POSIX 1003.1 Prototypes.
  55.  */
  56. _WCRTLINK extern int open( const char *__path, int __oflag, ... );
  57. _WCRTLINK extern int sopen( const char *__path, int __oflag, int __share, ... );
  58.  
  59. _WCRTLINK extern int _wcreat( const wchar_t *, int );
  60. _WCRTLINK extern int _wopen( const wchar_t *, int, ... );
  61. _WCRTLINK extern int _wsopen( const wchar_t *, int, int, ... );
  62.  
  63.  
  64. #pragma pack(__pop);
  65. #ifdef __cplusplus
  66. };
  67. #endif
  68. #endif
  69.