helos1/cppruntime/perm.hpp
Edgaru089 98f92a9958 makefile: move pdlibc to extlib, add C++ stub standard headers
It now kind of compiles with x86_64-elf gcc (does not link though)
2021-11-04 20:15:58 +08:00

17 lines
385 B
C++

#pragma once
#include <stdint.h>
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