Safeheron-SGX-Native-Development-Framework v1.2.0
Loading...
Searching...
No Matches
ssgx_filesystem_t_enum.h
Go to the documentation of this file.
1#ifndef SSGXLIB_SSGX_TFILESYSTEM_ENUM_H
2#define SSGXLIB_SSGX_TFILESYSTEM_ENUM_H
3
4namespace ssgx {
5namespace filesystem_t {
6
10enum class FileType {
11 None = 0,
12 NotFound,
13 Regular,
14 Directory,
15 Symlink,
16 Block,
17 Character,
18 Fifo,
19 Socket,
20 Unknown,
21};
22
26enum class Perms : unsigned {
27 None = 0,
28
29 OwnerRead = 0400,
30 OwnerWrite = 0200,
31 OwnerExec = 0100,
32 OwnerAll = 0700,
33
34 GroupRead = 040,
35 GroupWrite = 020,
36 GroupExec = 010,
37 GroupAll = 070,
39
40 OthersRead = 04,
41 OthersWrite = 02,
42 OthersExec = 01,
43 OthersAll = 07,
44
45 All = 0777,
46
47 SetUid = 04000,
49 SetGid = 02000,
51 StickyBit = 01000,
53 Mask = 07777,
54 Unknown = 0xFFFF,
55};
56
60enum class FileMode {
61 CreateNew = 1,
62 OpenOrCreate = 2,
63 Append = 3
64};
65
66} // namespace filesystem_t
67} // namespace ssgx
68#endif // SSGXLIB_SSGX_TFILESYSTEM_ENUM_H
FileMode
The mode for file writing operation.
Definition ssgx_filesystem_t_enum.h:60
@ CreateNew
Specifies that the operating system should create a new file. If the file already exists,...
@ OpenOrCreate
Specifies that the operating system should open a file if it exists; otherwise, a new file will be cr...
@ Append
Opens the file if it exists and seeks to the end of the file, or creates a new file.
FileType
File type enum.
Definition ssgx_filesystem_t_enum.h:10
@ Symlink
the file is a symlink file
@ NotFound
the file is not exist
@ Socket
the file is a socket file
@ Character
the file is a character file
@ Unknown
the type of file is unknown
@ Fifo
the file is a fifo file
@ Regular
the file is a regular file
@ Block
the file is a block file
@ Directory
the file is a directory file
Perms
File permissions (Octal)
Definition ssgx_filesystem_t_enum.h:26
@ OwnerWrite
The file owner has write permission.
@ GroupRead
The file owner's user group has read permissions.
@ OwnerRead
The file owner has read permission.
@ Mask
The file permissions represent the bits.
@ OthersAll
Others have read, write and execute permission.
@ OwnerAll
The file owner has read, write and execute permission.
@ GroupExec
The file owner's user group has execute permissions.
@ OthersExec
Others have execute permission.
@ GroupWrite
The file owner's user group has write permissions.
@ OthersRead
Others have read permission.
@ All
All users have read, write and execute permission.
@ OthersWrite
Others have write permission.
@ OwnerExec
The file owner has execute permission.
Definition ssgx_attestation_t.h:6