shithub: scc

Download patch

ref: 9ce516646c110093add983caff3fb939b431fd3e
parent: e3681c9739152eb69f934a68b02885eaaaec0aaa
parent: ad78b7323c3d0bbd562730c6e17814cec9c2d68a
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Jun 28 15:39:36 EDT 2020

Merge remote-tracking branch 'origin/master'

--- 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;
 
--- /dev/null
+++ b/include/bits/ppc/arch/setjmp.h
@@ -1,0 +1,1 @@
+typedef unsigned long long jmp_buf[56];
--- 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);
 }