From 250c44635b07a6d5dcacc9bff795482679472e5d Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 21 Apr 2026 18:57:18 -0400 Subject: [PATCH] head: sys: Add sys/mman.h Signed-off-by: Ian Moffett --- usr/src/head/sys/mman.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 usr/src/head/sys/mman.h diff --git a/usr/src/head/sys/mman.h b/usr/src/head/sys/mman.h new file mode 100644 index 0000000..db311d3 --- /dev/null +++ b/usr/src/head/sys/mman.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2026, Mirocom Laboratories + * All rights reserved. + * + * The following sources are CONFIDENTIAL and PROPRIETARY + * property of Mirocom Laboratories. Unauthorized copying, + * use, distribution or modification of this file, in whole + * and in part, is strictly prohibited without the prior written + * consent from Mirocom Laboratories. + */ + +#ifndef _SYS_MMAN_H_ +#define _SYS_MMAN_H_ 1 + +#include + +/* Protection flags */ +#define PROT_READ 0x00 /* Mapping is readable */ +#define PROT_WRITE BIT(0) /* Mapping is writable */ +#define PROT_EXEC BIT(1) /* Mapping is executable */ + +#endif /* !_SYS_MMAN_H_ */