xtd 0.2.0
Loading...
Searching...
No Matches
file_permission.h
Go to the documentation of this file.
1
5#pragma once
7#if !defined(__XTD_CORE_NATIVE_LIBRARY__)
8#error "Do not include this file: Internal use only"
9#endif
11
12#include <cstdint>
13
20constexpr int32_t FILE_PERMISSIONS_NONE = 0;
21
22constexpr int32_t FILE_PERMISSIONS_OWNER_READ = 0400;
23constexpr int32_t FILE_PERMISSIONS_OWNER_WRITE = 0200;
24constexpr int32_t FILE_PERMISSIONS_OWNER_EXECUTE = 0100;
25constexpr int32_t FILE_PERMISSIONS_OWNER_ALL = FILE_PERMISSIONS_OWNER_READ | FILE_PERMISSIONS_OWNER_WRITE | FILE_PERMISSIONS_OWNER_EXECUTE;
26
27constexpr int32_t FILE_PERMISSIONS_GROUP_READ = 040;
28constexpr int32_t FILE_PERMISSIONS_GROUP_WRITE = 020;
29constexpr int32_t FILE_PERMISSIONS_GROUP_EXECUTE = 010;
30constexpr int32_t FILE_PERMISSIONS_GROUP_ALL = FILE_PERMISSIONS_GROUP_READ | FILE_PERMISSIONS_GROUP_WRITE | FILE_PERMISSIONS_GROUP_EXECUTE;
31
32constexpr int32_t FILE_PERMISSIONS_OTHERS_READ = 04;
33constexpr int32_t FILE_PERMISSIONS_OTHERS_WRITE = 02;
34constexpr int32_t FILE_PERMISSIONS_OTHERS_EXECUTE = 01;
35constexpr int32_t FILE_PERMISSIONS_OTHERS_ALL = FILE_PERMISSIONS_OTHERS_READ | FILE_PERMISSIONS_OTHERS_WRITE | FILE_PERMISSIONS_OTHERS_EXECUTE;
36
37constexpr int32_t FILE_PERMISSIONS_ALL = FILE_PERMISSIONS_OWNER_ALL | FILE_PERMISSIONS_GROUP_ALL | FILE_PERMISSIONS_OTHERS_ALL;
38
39constexpr int32_t FILE_PERMISSIONS_SET_UID = 04000;
40constexpr int32_t FILE_PERMISSIONS_SET_GID = 02000;
41constexpr int32_t FILE_PERMISSIONS_STICKY_BIT = 01000;
42
43constexpr int32_t FILE_PERMISSIONS_MASK = 07777;
44
45
46constexpr int32_t FILE_PERMISSIONS_UNKNOWN = 0xFFFF;
constexpr int32_t FILE_PERMISSIONS_NONE
Console color black.
Definition file_permission.h:20