matos/userspace/sys/mman.h
Mathieu Maret c3f3eb435e implement munmap
Also add basic errno.h
2024-02-11 00:22:41 +01:00

14 lines
249 B
C

#pragma once
/* To keep in sync with PAGING_MEM_* */
#define PROT_EXEC (1<<3)
#define PROT_READ (1<<1)
#define PROT_WRITE (1<<2)
#define MAP_SHARED (1 << 0)
#define MAP_PRIVATE (1 << 1)
#define MAP_FIXED (1 << 2)
#define MAP_FAILED (void *)-1