mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
python: Improve decoding of file flags
Signed-off-by: Nicolas Viennot <Nicolas.Viennot@twosigma.com>
This commit is contained in:
committed by
Andrei Vagin
parent
7622b7a70e
commit
2ac43cd426
@@ -105,11 +105,22 @@ mmap_status_map = [
|
||||
]
|
||||
|
||||
rfile_flags_map = [
|
||||
('O_WRONLY', 0o1),
|
||||
('O_RDWR', 0o2),
|
||||
('O_APPEND', 0o2000),
|
||||
('O_DIRECT', 0o40000),
|
||||
('O_LARGEFILE', 0o100000),
|
||||
('O_WRONLY', 0o00000001),
|
||||
('O_RDWR', 0o00000002),
|
||||
('O_CREAT', 0o00000100),
|
||||
('O_EXCL', 0o00000200),
|
||||
('O_NOCTTY', 0o00000400),
|
||||
('O_TRUNC', 0o00001000),
|
||||
('O_APPEND', 0o00002000),
|
||||
('O_NONBLOCK', 0o00004000),
|
||||
('O_DSYNC', 0o00010000),
|
||||
('FASYNC', 0o00020000),
|
||||
('O_DIRECT', 0o00040000),
|
||||
('O_LARGEFILE', 0o00100000),
|
||||
('O_DIRECTORY', 0o00200000),
|
||||
('O_NOFOLLOW', 0o00400000),
|
||||
('O_NOATIME', 0o01000000),
|
||||
('O_CLOEXEC', 0o02000000),
|
||||
]
|
||||
|
||||
pmap_flags_map = [
|
||||
|
Reference in New Issue
Block a user