summaryrefslogtreecommitdiff
path: root/firmware/libc/include/fcntl.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/libc/include/fcntl.h')
-rw-r--r--firmware/libc/include/fcntl.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/firmware/libc/include/fcntl.h b/firmware/libc/include/fcntl.h
index 34740c9ca2..ec53d728cf 100644
--- a/firmware/libc/include/fcntl.h
+++ b/firmware/libc/include/fcntl.h
@@ -23,18 +23,20 @@
23#define __FCNTL_H__ 23#define __FCNTL_H__
24 24
25#ifndef O_RDONLY 25#ifndef O_RDONLY
26#define O_RDONLY 0 26#define O_RDONLY 0x0000 /* open for reading only */
27#define O_WRONLY 1 27#define O_WRONLY 0x0001 /* open for writing only */
28#define O_RDWR 2 28#define O_RDWR 0x0002 /* open for reading and writing */
29#define O_CREAT 4 29#define O_ACCMODE 0x0003 /* mask for above modes */
30#define O_APPEND 8 30#define O_APPEND 0x0008 /* set append mode */
31#define O_TRUNC 0x10 31#define O_CREAT 0x0200 /* create if nonexistent */
32#define O_TRUNC 0x0400 /* truncate to zero length */
33#define O_EXCL 0x0800 /* error if already exists */
32#endif 34#endif
33 35
34#ifndef SEEK_SET 36#ifndef SEEK_SET
35#define SEEK_SET 0 37#define SEEK_SET 0 /* set file offset to offset */
36#define SEEK_CUR 1 38#define SEEK_CUR 1 /* set file offset to current plus offset */
37#define SEEK_END 2 39#define SEEK_END 2 /* set file offset to EOF plus offset */
38#endif 40#endif
39 41
40#endif /* __FCNTL_H__ */ 42#endif /* __FCNTL_H__ */