From 934f7b0b70e3d2e327edf1aef0a857a2509d10b2 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Wed, 17 Jan 2024 16:56:58 +0100 Subject: [PATCH] using hexadecimal numbers instead decimal numbers - improves the readability --- hermit-abi/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hermit-abi/src/lib.rs b/hermit-abi/src/lib.rs index 740bada90..0c2664dc4 100644 --- a/hermit-abi/src/lib.rs +++ b/hermit-abi/src/lib.rs @@ -317,10 +317,10 @@ pub const DT_LNK: u32 = 10; pub const DT_SOCK: u32 = 12; pub const DT_WHT: u32 = 14; -pub const S_IFDIR: u32 = 16384; -pub const S_IFREG: u32 = 32768; -pub const S_IFLNK: u32 = 40960; -pub const S_IFMT: u32 = 61440; +pub const S_IFDIR: u32 = 0x4000; +pub const S_IFREG: u32 = 0x8000; +pub const S_IFLNK: u32 = 0xA000; +pub const S_IFMT: u32 = 0xF000; // sysmbols, which are part of the library operating system extern "C" {