Skip to content

Commit

Permalink
using hexadecimal numbers instead decimal numbers
Browse files Browse the repository at this point in the history
- improves the readability
  • Loading branch information
stlankes committed Jan 17, 2024
1 parent 355cd62 commit 934f7b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hermit-abi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 934f7b0

Please sign in to comment.