home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / djgpp / include / fcntl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-23  |  1.0 KB  |  49 lines

  1. /*
  2. ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
  3. **
  4. ** This file is distributed under the terms listed in the document
  5. ** "copying.dj", available from DJ Delorie at the address above.
  6. ** A copy of "copying.dj" should accompany this file; if not, a copy
  7. ** should be available from where this file was obtained.  This file
  8. ** may not be distributed without a verbatim copy of "copying.dj".
  9. **
  10. ** This file is distributed WITHOUT ANY WARRANTY; without even the implied
  11. ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. */
  13.  
  14. #ifndef fcntl_h
  15. #pragma once
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. #define KERNEL
  22.  
  23.  
  24. #define O_RDONLY    0x0001
  25. #define    O_WRONLY    0x0002
  26. #define    O_RDWR        0x0004
  27. #define    O_CREAT        0x0100
  28. #define    O_TRUNC        0x0200
  29. #define O_EXCL        0x0400
  30. #define O_APPEND    0x0800
  31. #define O_TEXT        0x4000
  32. #define O_BINARY    0x8000
  33.  
  34. extern int _fmode;
  35.  
  36. #ifndef fcntl_h
  37. #define fcntl_h 1
  38. #endif
  39.  
  40. #undef KERNEL
  41.  
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45.  
  46. #include <std.h>
  47.  
  48. #endif
  49.