summaryrefslogtreecommitdiff
path: root/firmware/libc/include
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/libc/include')
-rw-r--r--firmware/libc/include/errno.h1
-rw-r--r--firmware/libc/include/fcntl.h20
2 files changed, 12 insertions, 9 deletions
diff --git a/firmware/libc/include/errno.h b/firmware/libc/include/errno.h
index 9df261db9f..2ddf036c92 100644
--- a/firmware/libc/include/errno.h
+++ b/firmware/libc/include/errno.h
@@ -88,6 +88,7 @@ extern int * __errno(void);
88#define ELBIN 75 /* Inode is remote (not really error) */ 88#define ELBIN 75 /* Inode is remote (not really error) */
89#define EDOTDOT 76 /* Cross mount point (not really error) */ 89#define EDOTDOT 76 /* Cross mount point (not really error) */
90#define EBADMSG 77 /* Trying to read unreadable message */ 90#define EBADMSG 77 /* Trying to read unreadable message */
91#define EOVERFLOW 78 /* Value too large to be stored in data type */
91#define ENOTUNIQ 80 /* Given log. name not unique */ 92#define ENOTUNIQ 80 /* Given log. name not unique */
92#define EBADFD 81 /* f.d. invalid for this operation */ 93#define EBADFD 81 /* f.d. invalid for this operation */
93#define EREMCHG 82 /* Remote address changed */ 94#define EREMCHG 82 /* Remote address changed */
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__ */