* added compilers lcc and bcc (linux86)
[mascara-docs.git] / compilers / linux86-0.16.17 / libc / include / msdos / fcntl.h
blobf92ff2a2fd7634b5cdcec36112b129b7180a2cfd
1 #ifndef __MSDOS_FCNTL_H
2 #define __MSDOS_FCNTL_H
4 /* Definitions taken from Ralf Brown interrupt list and Linux kernel */
6 #define O_ACCMODE 0x03
7 #define O_RDONLY 0x00
8 #define O_WRONLY 0x01
9 #define O_RDWR 0x02
11 #define O_DENYMODE 0x70
12 #define O_DENYALL 0x10
13 #define O_DENYWRITE 0x20
14 #define O_DENYREAD 0x30
15 #define O_DENYNONE 0x40
16 #define O_SETFD 0x80 /* Close on exec flag for open */
18 #define O_CREAT 0x100 /* Moved on DOS to avoid DENY's */
19 #define O_TRUNC 0x200
20 #define O_APPEND 0x400
21 #define O_EXCL 0x800
23 #define O_BINARY 0x0000
24 #define O_TEXT 0x8000 /* This right ? Who cares! */
26 #define F_DUPFD 0 /* dup */
27 #define F_GETFD 1 /* get f_flags */
28 #define F_SETFD 2 /* set f_flags */
29 #define F_GETFL 3 /* more flags (cloexec) */
30 #define F_SETFL 4
31 #define F_GETLK 5
32 #define F_SETLK 6
33 #define F_SETLKW 7
35 #endif