From: John Hodge Date: Wed, 12 Sep 2012 02:59:21 +0000 (+0800) Subject: Libraries/ld-acess - APPEND and TRUNCATE flags (unimplimented) X-Git-Tag: rel0.15~706^2~3^2~1 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=387e966202b31b3f33440967c0e086c4911b5ed7;p=tpg%2Facess2.git Libraries/ld-acess - APPEND and TRUNCATE flags (unimplimented) --- diff --git a/Usermode/Libraries/ld-acess.so_src/include_exp/acess/sys.h b/Usermode/Libraries/ld-acess.so_src/include_exp/acess/sys.h index 1494c99b..1a954d33 100644 --- a/Usermode/Libraries/ld-acess.so_src/include_exp/acess/sys.h +++ b/Usermode/Libraries/ld-acess.so_src/include_exp/acess/sys.h @@ -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 diff --git a/Usermode/Libraries/ld-acess.so_src/include_exp/unistd.h b/Usermode/Libraries/ld-acess.so_src/include_exp/unistd.h index 36ed5345..2705bca1 100644 --- a/Usermode/Libraries/ld-acess.so_src/include_exp/unistd.h +++ b/Usermode/Libraries/ld-acess.so_src/include_exp/unistd.h @@ -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;