diff options
| author | 2024-04-25 21:24:10 +0100 | |
|---|---|---|
| committer | 2024-04-25 22:32:27 +0000 | |
| commit | 2d04cacc5322951f187bb17e017c12920ac8ebe2 (patch) | |
| tree | 80ee017efa878dfd5344b44249e6a241f2a7f6e2 /v4.0/src/TOOLS/BLD/INC/FCNTL.H | |
| parent | Merge pull request #430 from jpbaltazar/typoptbr (diff) | |
| download | ms-dos-main.tar.gz ms-dos-main.tar.xz ms-dos-main.zip | |
Diffstat (limited to 'v4.0/src/TOOLS/BLD/INC/FCNTL.H')
| -rw-r--r-- | v4.0/src/TOOLS/BLD/INC/FCNTL.H | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/v4.0/src/TOOLS/BLD/INC/FCNTL.H b/v4.0/src/TOOLS/BLD/INC/FCNTL.H new file mode 100644 index 0000000..08ad549 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/FCNTL.H | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /*** | ||
| 2 | *fcntl.h - file control options used by open() | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file defines constants for the file control options used | ||
| 8 | * by the open() function. | ||
| 9 | * [System V] | ||
| 10 | * | ||
| 11 | *******************************************************************************/ | ||
| 12 | |||
| 13 | #define O_RDONLY 0x0000 /* open for reading only */ | ||
| 14 | #define O_WRONLY 0x0001 /* open for writing only */ | ||
| 15 | #define O_RDWR 0x0002 /* open for reading and writing */ | ||
| 16 | #define O_APPEND 0x0008 /* writes done at eof */ | ||
| 17 | |||
| 18 | #define O_CREAT 0x0100 /* create and open file */ | ||
| 19 | #define O_TRUNC 0x0200 /* open and truncate */ | ||
| 20 | #define O_EXCL 0x0400 /* open only if file doesn't already exist */ | ||
| 21 | |||
| 22 | /* O_TEXT files have <cr><lf> sequences translated to <lf> on read()'s, | ||
| 23 | ** and <lf> sequences translated to <cr><lf> on write()'s | ||
| 24 | */ | ||
| 25 | |||
| 26 | #define O_TEXT 0x4000 /* file mode is text (translated) */ | ||
| 27 | #define O_BINARY 0x8000 /* file mode is binary (untranslated) */ | ||
| 28 | |||
| 29 | /* macro to translate the C 2.0 name used to force binary mode for files */ | ||
| 30 | |||
| 31 | #define O_RAW O_BINARY | ||
| 32 | |||
| 33 | /* Open handle inherit bit */ | ||
| 34 | |||
| 35 | #define O_NOINHERIT 0x0080 /* child process doesn't inherit file */ | ||