From a9584c6b392c508e71f6452d7be1200a5914419d Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Wed, 26 Jun 2024 18:32:28 +0200 Subject: Networking stuff TCP is now in a somewhat good state --- userland/libc/include/sys/mman.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'userland/libc/include') 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 #include +#include + +#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); -- cgit v1.2.3