helos1/cppruntime/perm.hpp

17 lines
384 B
C++
Raw Normal View History

2021-10-23 19:40:11 +08:00
#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