scc

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

commit 58d70bdbf77c676eaa9806a80c2208d81715c065
parent da711bb5085ebe555587e37dfa8eff2148959217
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 28 Jun 2020 19:39:36 +0200

Merge remote-tracking branch 'origin/master'

Diffstat:
Minclude/bits/linux/sys.h | 6+++---
Ainclude/bits/ppc/arch/setjmp.h | 1+
Msrc/libc/arch/arm/linux/_open.c | 2+-
3 files changed, 5 insertions(+), 4 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; diff --git a/include/bits/ppc/arch/setjmp.h b/include/bits/ppc/arch/setjmp.h @@ -0,0 +1 @@ +typedef unsigned long long jmp_buf[56]; diff --git a/src/libc/arch/arm/linux/_open.c b/src/libc/arch/arm/linux/_open.c @@ -7,7 +7,7 @@ extern int _openat(int fd, const char *fname, int flags, int mode); int -_open(const char *fname, int flags) +_open(const char *fname, int flags, int mode) { return _openat(AT_FDCWD, fname, flags, mode); }