1 #ifndef __MSDOS_FCNTL_H
2 #define __MSDOS_FCNTL_H
4 /* Definitions taken from Ralf Brown interrupt list and Linux kernel */
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 */
20 #define O_APPEND 0x400
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) */