diff options
Diffstat (limited to 'libc/include/msdos/fcntl.h')
-rw-r--r-- | libc/include/msdos/fcntl.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libc/include/msdos/fcntl.h b/libc/include/msdos/fcntl.h new file mode 100644 index 0000000..8cf076c --- /dev/null +++ b/libc/include/msdos/fcntl.h @@ -0,0 +1,24 @@ +#ifndef __MSDOS_FCNTL_H +#define __MSDOS_FCNTL_H + +/* Definitions taken from the i386 Linux kernel. */ + +#define O_ACCMODE 0003 +#define O_RDONLY 00 +#define O_WRONLY 01 +#define O_RDWR 02 +#define O_CREAT 0100 /* not fcntl */ +#define O_EXCL 0200 /* not fcntl */ +#define O_TRUNC 01000 /* not fcntl */ +#define O_APPEND 02000 + +#define F_DUPFD 0 /* dup */ +#define F_GETFD 1 /* get f_flags */ +#define F_SETFD 2 /* set f_flags */ +#define F_GETFL 3 /* more flags (cloexec) */ +#define F_SETFL 4 +#define F_GETLK 5 +#define F_SETLK 6 +#define F_SETLKW 7 + +#endif |