ref: 3c43e88a5a33a27365f381d82af451fa997d682a
parent: 34fbebfbdb9eefea9c87a4065b95aee8c454cdbb
parent: 43316bbc84903bb97857748cad3125e20cdf0955
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Jun 16 12:12:30 EDT 2020
Merge branch 'master' of ssh://simple-cc.org:/var/gitrepos/scc
--- 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);
}
--- a/src/libc/arch/arm64/linux/Makefile
+++ b/src/libc/arch/arm64/linux/Makefile
@@ -36,7 +36,7 @@
crt.$O: ../crt-posix.s
-%(GENSRC): syscall.lst
+$(GENSRC): syscall.lst
gensys.sh $(@:.s=)
clean:
--- 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);
}
--- a/src/libc/arch/arm64/linux/crt.s
+++ b/src/libc/arch/arm64/linux/crt.s
@@ -1,1 +1,1 @@
- .include "../crt-posix.c"
+ .include "../crt-posix.s"