From e635aaa99ed3458db4a9369811886bb010d86b72 Mon Sep 17 00:00:00 2001 From: edef Date: Fri, 29 Jul 2022 12:52:37 +0000 Subject: ripple/minitrace: convert OpenFlags to bitshifts Change-Id: I12392d386027542815e2a4b96372121ece3adfeb --- ripple/minitrace/src/main.rs | 10 +++++----- 1 file 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 { -- cgit 1.4.1