dos_compilers/Microsoft C v203/FCNTL.H
2024-06-30 13:40:22 -07:00

28 lines
896 B
C
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
*
* The following symbols are used for the "open" and "creat" functions.
*
**/
#define O_RDONLY 0 /* Read-only value (right byte of mode word) */
#define O_WRONLY 1 /* Write-only value */
#define O_RDWR 2 /* Read-write value */
#define O_NDELAY 4 /* Non-blocking I/O flag */
#define O_APPEND 8 /* Append mode flag */
#define O_CREAT 0x0100 /* File creation flag */
#define O_TRUNC 0x200 /* File truncation flag */
#define O_EXCL 0x400 /* Exclusive access flag */
#define O_RAW 0x8000 /* Raw I/O flag (Lattice feature) */
/**
*
* The following symbols are used for the "fcntl" function.
*
*/
#define F_DUPFD 0 /* Duplicate file descriptor */
#define F_GETFD 1 /* Get file descriptor flags */
#define F_SETFD 2 /* Set file descriptor flags */
#define F_GETFL 3 /* Get file flags */
#define F_SETFL 4 /* Set file flags */