scc

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

commit bb6fdedd6627a773e285cdd9b7bc7e788c94a736
parent 4cc4df3043b7a24d3f9b100057cf906039e79296
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 16 Jun 2020 16:12:30 +0200

Merge branch 'master' of ssh://simple-cc.org:/var/gitrepos/scc

Diffstat:
Msrc/libc/arch/arm32/linux/_open.c | 4++--
Msrc/libc/arch/arm64/linux/Makefile | 2+-
Msrc/libc/arch/arm64/linux/_open.c | 6+++---
Msrc/libc/arch/arm64/linux/crt.s | 2+-
4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/libc/arch/arm32/linux/_open.c b/src/libc/arch/arm32/linux/_open.c @@ -4,10 +4,10 @@ #define AT_FDCWD -100 -extern int _openat(int fd, const char *fname, int flags); +extern int _openat(int fd, const char *fname, int flags, int mode); int _open(const char *fname, int flags) { - return _openat(AT_FDCWD, fname, flags); + return _openat(AT_FDCWD, fname, flags, mode); } diff --git a/src/libc/arch/arm64/linux/Makefile b/src/libc/arch/arm64/linux/Makefile @@ -36,7 +36,7 @@ $(LIBC): $(OBJS) crt.$O: ../crt-posix.s -%(GENSRC): syscall.lst +$(GENSRC): syscall.lst gensys.sh $(@:.s=) clean: diff --git a/src/libc/arch/arm64/linux/_open.c b/src/libc/arch/arm64/linux/_open.c @@ -4,10 +4,10 @@ #define AT_FDCWD -100 -extern int _openat(int fd, const char *fname, int flags); +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); + return _openat(AT_FDCWD, fname, flags, mode); } diff --git a/src/libc/arch/arm64/linux/crt.s b/src/libc/arch/arm64/linux/crt.s @@ -1 +1 @@ - .include "../crt-posix.c" + .include "../crt-posix.s"