--- mstools/h/fcntl.h 2018/08/09 18:20:01 1.1.1.1 +++ mstools/h/fcntl.h 2018/08/09 18:23:06 1.1.1.3 @@ -1,7 +1,7 @@ /*** *fcntl.h - file control options used by open() * -* Copyright (c) 1985-1991, Microsoft Corporation. All rights reserved. +* Copyright (c) 1985-1993, Microsoft Corporation. All rights reserved. * *Purpose: * This file defines constants for the file control options used @@ -26,7 +26,7 @@ */ #define _O_TEXT 0x4000 /* file mode is text (translated) */ -#define _O_BINARY 0x00008000 /* file mode is binary (untranslated) */ +#define _O_BINARY 0x8000 /* file mode is binary (untranslated) */ /* macro to translate the C 2.0 name used to force binary mode for files */ @@ -36,20 +36,36 @@ #define _O_NOINHERIT 0x0080 /* child process doesn't inherit file */ -#if !__STDC__ +/* Temporary file bit - file is deleted when last handle is closed */ + +#define _O_TEMPORARY 0x0040 /* temporary file bit */ + +/* temporary access hint */ + +#define _O_SHORT_LIVED 0x1000 /* temporary storage file, try not to flush */ + +/* sequential/random access hints */ + +#define _O_SEQUENTIAL 0x0020 /* file access is primarily sequential */ +#define _O_RANDOM 0x0010 /* file access is primarily random */ + +#if !__STDC__ || defined(_POSIX_) /* Non-ANSI names for compatibility */ -#define O_RDONLY _O_RDONLY -#define O_WRONLY _O_WRONLY -#define O_RDWR _O_RDWR -#define O_APPEND _O_APPEND -#define O_CREAT _O_CREAT -#define O_TRUNC _O_TRUNC -#define O_EXCL _O_EXCL -#define O_TEXT _O_TEXT -#define O_BINARY _O_BINARY -#define O_RAW _O_BINARY -#define O_NOINHERIT _O_NOINHERIT -#endif /* __STDC__ */ +#define O_RDONLY _O_RDONLY +#define O_WRONLY _O_WRONLY +#define O_RDWR _O_RDWR +#define O_APPEND _O_APPEND +#define O_CREAT _O_CREAT +#define O_TRUNC _O_TRUNC +#define O_EXCL _O_EXCL +#define O_TEXT _O_TEXT +#define O_BINARY _O_BINARY +#define O_RAW _O_BINARY +#define O_TEMPORARY _O_TEMPORARY +#define O_NOINHERIT _O_NOINHERIT +#define O_SEQUENTIAL _O_SEQUENTIAL +#define O_RANDOM _O_RANDOM +#endif /* __STDC__ */ #define _INC_FCNTL -#endif /* _INC_FCNTL */ +#endif /* _INC_FCNTL */