Expand description
stat mode-flag constants and predicates (Zig: std.posix.S).
Values are POSIX-standard octal; identical across linux/darwin/freebsd.
Constants are typed u32 (== bun_core::Mode); on Darwin/FreeBSD the
kernel mode_t is u16 so the upper 16 bits are always zero — every call
site already casts (as i32/as u32/as _) so the wider type is
harmless, and on Linux mode_t == u32 so it’s a drop-in re-export.
stat mode-flag constants and predicates (Zig: std.posix.S).
Values are POSIX-standard octal — frozen since 1988 and identical across
linux/darwin/freebsd. Typed against the cross-platform Mode (= u32)
rather than each platform’s native mode_t, so Mode-typed expressions
like S::IRUSR | S::IWUSR and (st_mode as u32) & S::IFMT compile
uniformly; the libc-boundary cast to native mode_t happens in bun_sys.
Canonical home for the per-OS bun_errno::posix::S re-exports (errno
depends on bun_core, not vice-versa).
Constants§
- IFBLK
- IFCHR
- IFDIR
- IFIFO
- IFLNK
- IFMT
- IFREG
- IFSOCK
- IFWHT
- IRGRP
- IROTH
- IRUSR
- IRWXG
- IRWXO
- IRWXU
- ISGID
- ISUID
- ISVTX
- IWGRP
- IWOTH
- IWUSR
- IXGRP
- IXOTH
- IXUSR