ref: 43316bbc84903bb97857748cad3125e20cdf0955
parent: 0bfb0f682b4e790c8283f2f67600a358598fdc80
author: Naveen Narayanan <zerous@simple-cc.org>
date: Mon Jun 15 10:51:26 EDT 2020
libc: Fix function prototype (arm32) - open, openat The change was introduced in commit 687ff1f6 but went uncaught since we didn't build scc for arm until now. Signed-off-by: Naveen Narayanan <zerous@simple-cc.org>
--- 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);
}