xtd 0.2.0
Loading...
Searching...
No Matches
file_permissions.h
Go to the documentation of this file.
1
4#pragma once
5#include "../enum.h"
6
8namespace xtd {
10 namespace io {
24 enum class file_permissions {
26 none = 0,
28 owner_read = 0400,
30 owner_write = 0200,
32 owner_execute = 0100,
36 group_read = 040,
38 group_write = 020,
40 group_execute = 010,
44 others_read = 04,
46 others_write = 02,
48 others_execute = 01,
54 set_uid = 04000,
56 set_gid = 02000,
58 sticky_bit = 01000,
62 unknown = 0xFFF,
63 };
64 }
65}
66
68flags_attribute_(xtd::io, file_permissions);
69
72};
@ unknown
The type of drive is unknown.
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition flags_attribute.h:34
file_permissions
Provides permissions for files and directories.
Definition file_permissions.h:24
std::vector< xtd::collections::generic::key_value_pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.h:22
@ owner_write
File owner has write permission.
@ owner_read
File owner has read permission.
@ set_uid
Set user ID to file owner user ID on execution.
@ group_read
The file's ueer group has read permission.
@ others_execute
Other ueers has execute/search permission.
@ none
No permission bits are set.
@ sticky_bit
Implementation-defined meaning, but POSIX XSI specifies that when set on a directory,...
@ owner_all
File owner has read, write and execute/search permission. Equivalent to xtd::io::file_permissions::ow...
@ others_all
Other ueers has read, write and execute/search permission. Equivalent to xtd::io::file_permissions::o...
@ group_execute
The file's ueer group has execute/search permission.
@ owner_execute
File owner has execute/search permission.
@ all
All users have read, write, and execute/search permissions. Equivalent to xtd::io::file_permissions::...
@ unknown
Unknown permissions (e.g. when file or directory is created without permissions).
@ group_write
The file's ueer group has write permission.
@ group_all
The file's ueer group has read, write and execute/search permission. Equivalent to xtd::io::file_perm...
@ others_read
Other ueers has read permission.
@ set_gid
Set group ID to file's user group ID on execution.
@ mask
All valid permission bits. Equivalent to xtd::io::file_permissions::all | xtd::io::file_permissions::...
@ others_write
Other ueers has write permission.
The xtd::io namespace contains types that allow reading and writing to files and data streams,...
Definition binary_reader.h:16
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Provides the registration struct for enumerations.
Definition enum_register.h:38