Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
783 B

  1. /***
  2. *binmode.c - set global file mode to binary
  3. *
  4. * Copyright (c) 1989-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * Sets the global file mode flag to binary. Linking with this file
  8. * sets all files to be opened in binary mode.
  9. *
  10. *Revision History:
  11. * 06-08-89 PHG Module created, based on asm version.
  12. * 04-04-90 GJF Added #include <cruntime.h>. Also, fixed the copyright.
  13. * 01-17-91 GJF ANSI naming.
  14. * 01-23-92 GJF Added #include <stdlib.h> (contains decl of _fmode).
  15. * 08-27-92 GJF Don't build for POSIX.
  16. *
  17. *******************************************************************************/
  18. #ifndef _POSIX_
  19. #include <cruntime.h>
  20. #include <fcntl.h>
  21. #include <stdlib.h>
  22. /* set default file mode */
  23. int _fmode = _O_BINARY;
  24. #endif