runtime: add cppruntime/perm
This commit is contained in:
parent
71377dcc47
commit
69f50aa3e8
16
cppruntime/perm.hpp
Normal file
16
cppruntime/perm.hpp
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
|
|
||||||
|
namespace helos {
|
||||||
|
|
||||||
|
// Permission on block devices and files, in all-right Unix fashion.
|
||||||
|
// This must be in-line with MAP_PROT_EXEC/WRITE/READ and other Unix perms.
|
||||||
|
typedef uint16_t Permission;
|
||||||
|
constexpr Permission PermExecute = 1 << 0;
|
||||||
|
constexpr Permission PermWrite = 1 << 1;
|
||||||
|
constexpr Permission PermRead = 1 << 2;
|
||||||
|
|
||||||
|
|
||||||
|
} // namespace helos
|
5
cppruntime/runtime.hpp
Normal file
5
cppruntime/runtime.hpp
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "../memory/memory.hpp"
|
||||||
|
|
||||||
|
#include "perm.hpp"
|
Loading…
Reference in New Issue
Block a user