summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-02-02 13:56:05 -0500
committerJakob Kaivo <jkk@ung.org>2024-02-02 13:56:05 -0500
commit3a9026cf8557c8efec34e652b6bf37ce49f12f86 (patch)
tree19b2cac928b8ce18cc83f1b7e6d7a41141608645
parent24f39222098253da4ad1a9cd8ddef5b9b0152ba1 (diff)
temporary hack
-rw-r--r--src/stdlib/realloc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/stdlib/realloc.c b/src/stdlib/realloc.c
index d375ad42..12729f87 100644
--- a/src/stdlib/realloc.c
+++ b/src/stdlib/realloc.c
@@ -18,11 +18,11 @@
#define open(_p, _a, _m) __scall3(open, _p, _a, _m)
#endif
-#define O_RDWR 0
-#define PROT_READ 0
-#define PROT_WRITE 0
-#define MAP_PRIVATE 0
-#define MAP_FAILED 0
+#define O_RDWR 02
+#define PROT_READ 0x1
+#define PROT_WRITE 0x2
+#define MAP_PRIVATE 0x02
+#define MAP_FAILED (void*)(-1)
/** change the amount of memory allocated **/