summaryrefslogtreecommitdiff
path: root/userland/libc/include
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-06-26 18:32:28 +0200
committerAnton Kling <anton@kling.gg>2024-06-26 18:36:22 +0200
commita9584c6b392c508e71f6452d7be1200a5914419d (patch)
tree8f0e856c5d84a47d7bab467766a52b067647e1aa /userland/libc/include
parent33e1b11555d3557a36bd69d63f5bf0c290b5d462 (diff)
Networking stuff
TCP is now in a somewhat good state
Diffstat (limited to 'userland/libc/include')
-rw-r--r--userland/libc/include/sys/mman.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/userland/libc/include/sys/mman.h b/userland/libc/include/sys/mman.h
index 7cba68f..d60997d 100644
--- a/userland/libc/include/sys/mman.h
+++ b/userland/libc/include/sys/mman.h
@@ -1,14 +1,16 @@
#ifndef MMAP_H
#define MMAP_H
-#include <stdint.h>
#include <stddef.h>
+#include <stdint.h>
+
+#define MAP_FAILED ((void *)-1)
#define PROT_READ (1 << 0)
#define PROT_WRITE (1 << 1)
-#define MAP_PRIVATE (1 << 0)
-#define MAP_ANONYMOUS (1<< 1)
-#define MAP_SHARED (1<< 2)
+#define MAP_PRIVATE (1 << 0)
+#define MAP_ANONYMOUS (1 << 1)
+#define MAP_SHARED (1 << 2)
void *mmap(void *addr, size_t length, int prot, int flags, int fd,
size_t offset);