scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 24c5cc098a49a4e88276eab69742b7eafe595963
parent 6b93e6e4f39d38fe1f62d1a12eccd17e3b89c8df
Author: Roberto E. Vargas Caballero <roberto@clue.aero>
Date:   Fri, 19 Jun 2020 17:45:14 +0200

libc: Fix linux sys.h

These values were wrong and they affected to fopen.

Diffstat:
Minclude/bits/linux/sys.h | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/bits/linux/sys.h b/include/bits/linux/sys.h @@ -2,9 +2,9 @@ #define O_WRONLY 0x00000001 #define O_RDWR 0x00000002 -#define O_TRUNC 0x00000400 -#define O_APPEND 0x00000008 -#define O_CREAT 0x00000200 +#define O_TRUNC 0x00000200 +#define O_APPEND 0x00000400 +#define O_CREAT 0x00000040 typedef int pid_t;