shithub: scc

Download patch

ref: 7b2947de49547c2585eea8378d07b015465d0d6b
parent: be66d622ccc413b1c67c102e88f6ad27ae925e26
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Jun 19 13:45:14 EDT 2020

libc: Fix linux sys.h

These values were wrong and they affected to fopen.

--- 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;