ref: 0bfb0f682b4e790c8283f2f67600a358598fdc80
parent: b168599e9c095edab9548060d5541881356869f1
author: Naveen Narayanan <[email protected]>
date: Mon Jun 15 10:51:26 EDT 2020
libc: Fix function prototype (arm64) - 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 <[email protected]>
--- 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);
}