summary refs log tree commit diff
path: root/ripple
diff options
context:
space:
mode:
authoredef <edef@unfathomable.blue>2022-07-29 12:52:37 +0000
committeredef <edef@unfathomable.blue>2022-07-29 12:52:37 +0000
commite635aaa99ed3458db4a9369811886bb010d86b72 (patch)
tree8ed81d9140fc0b4b9deeafeaa56bd666596d5758 /ripple
parente2fd0668e5a54154fe6c5a8b57eb84356b6b31be (diff)
downloadunf-legacy-e635aaa99ed3458db4a9369811886bb010d86b72.tar.zst
ripple/minitrace: convert OpenFlags to bitshifts
Change-Id: I12392d386027542815e2a4b96372121ece3adfeb
Diffstat (limited to 'ripple')
-rw-r--r--ripple/minitrace/src/main.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/ripple/minitrace/src/main.rs b/ripple/minitrace/src/main.rs
index cca16ec..01564d4 100644
--- a/ripple/minitrace/src/main.rs
+++ b/ripple/minitrace/src/main.rs
@@ -478,11 +478,11 @@ fn check_syscall(process: &Process, entry: SyscallEntry) -> bool {
 
 syscall_bitflags! {
 	struct OpenFlags: i32 {
-		const WRONLY  = 0o00000001 => O_WRONLY;
-		const CREAT   = 0o00000100 => O_CREAT;
-		const NOCTTY  = 0o00000400 => O_NOCTTY;
-		const TRUNC   = 0o00001000 => O_TRUNC;
-		const CLOEXEC = 0o02000000 => O_CLOEXEC;
+		const WRONLY  = 1 <<  0 => O_WRONLY;
+		const CREAT   = 1 <<  6 => O_CREAT;
+		const NOCTTY  = 1 <<  8 => O_NOCTTY;
+		const TRUNC   = 1 <<  9 => O_TRUNC;
+		const CLOEXEC = 1 << 19 => O_CLOEXEC;
 	}
 
 	struct GrndFlags: u32 {