ref: 97e0fc1740bc215a13db2cfd11614a3cc2096800
parent: a2b6dcce1c7971f31ffe10c2029d26ed72e32dc8
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Apr 16 06:52:53 EDT 2019
[libc] Use the common values for seek constants These values can take any value, but traditionally they had specific values, and bad written code can depend of them.
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -12,9 +12,9 @@
#endif
#define EOF -1
-#define SEEK_CUR 0
-#define SEEK_END 1
-#define SEEK_SET 2
+#define SEEK_SET 0
+#define SEEK_CUR 1
+#define SEEK_END 2
#define _IOWRITE (1 << 0)