diff options
| author | Ada Christine <adachristine18@gmail.com> | 2026-05-26 21:32:27 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2026-05-26 21:32:27 +0000 |
| commit | a10aabfcd52f702057316018cd7847ab2bfe4aa1 (patch) | |
| tree | cc4652d2b602798934e8a48b4939cfb20eda1989 /api/posix/sys | |
| parent | 90c29fdde317c39384011a6ba97077c138f13ad6 (diff) | |
we're bringing kjarna back and not doing the crazy stuff with trying to have task management during efi. that was a bit extra.kjarna
Diffstat (limited to 'api/posix/sys')
| -rw-r--r-- | api/posix/sys/mman.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/api/posix/sys/mman.h b/api/posix/sys/mman.h index dd8d6f5..d347c76 100644 --- a/api/posix/sys/mman.h +++ b/api/posix/sys/mman.h @@ -1,6 +1,12 @@ #pragma once -#define MAP_FAILED ((void *) 1) +#include <stddef.h> + +#include "types.h" + +#define MAP_FAILED ((void *) -1) + +#define MAP_ANONYMOUS (1 >> 0) void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); int munmap(void *addr, size_t length); |
