Libraries/ld-acess - APPEND and TRUNCATE flags (unimplimented)
authorJohn Hodge <[email protected]>
Wed, 12 Sep 2012 02:59:21 +0000 (10:59 +0800)
committerJohn Hodge <[email protected]>
Wed, 12 Sep 2012 02:59:21 +0000 (10:59 +0800)
Usermode/Libraries/ld-acess.so_src/include_exp/acess/sys.h
Usermode/Libraries/ld-acess.so_src/include_exp/unistd.h

index 1494c99..1a954d3 100644 (file)
@@ -19,6 +19,8 @@
 #define OPENFLAG_EXEC  0x01
 #define OPENFLAG_READ  0x02
 #define OPENFLAG_WRITE 0x04
+#define OPENFLAG_TRUNCATE      0x10
+#define OPENFLAG_APPEND        0x20
 #define        OPENFLAG_NOLINK 0x40
 #define        OPENFLAG_CREATE 0x80
 #ifndef SEEK_CUR
index 36ed534..2705bca 100644 (file)
@@ -5,6 +5,10 @@
 #define O_WR   (OPENFLAG_WRITE)
 #define O_RD   (OPENFLAG_READ)
 #define O_CREAT        (OPENFLAG_CREATE)
+#define O_RDONLY       OPENFLAG_READ
+#define O_WRONLY       OPENFLAG_WRITE
+#define O_TRUNC        OPENFLAG_TRUNCATE
+#define O_APPEND       OPENFLAG_APPEND
 
 typedef intptr_t       ssize_t;
 

UCC git Repository :: git.ucc.asn.au