home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / sdktools / fontedit / fcntl.h next >
Text File  |  1996-06-12  |  760b  |  24 lines

  1. /*
  2.  * fcntl.h
  3.  * 
  4.  * defines file control options used by the open system call.
  5.  *
  6.  * Copyright (C) Microsoft Corporation, 1993-1996
  7.  */
  8.  
  9. #define O_RDONLY        0x0000
  10. #define O_WRONLY        0x0001
  11. #define O_RDWR          0x0002
  12. #define O_APPEND        0x0008  /* writes done at eof */
  13.  
  14. #define O_CREAT         0x0100  /* create and open file */
  15. #define O_TRUNC         0x0200  /* open with truncation */
  16. #define O_EXCL          0x0400  /* exclusive open */
  17.  
  18. /* O_TEXT files have <cr><lf> sequences translated to <lf> on read()'s,
  19. ** and <lf> sequences translated to <cr><lf> on write()'s
  20. */
  21.  
  22. #define O_TEXT          0x4000  /* file mode is text (translated) */
  23. #define O_BINARY        0x8000  /* file mode is binary (untranslated) */
  24.