pub fn statmodeprint(mode: u32, flags: i32) -> StringExpand description
Port of statmodeprint(mode_t mode, char *outbuf, int flags) from Src/Modules/stat.c:47. Renders
a Unix mode word per the STF_RAW / STF_OCTAL / STF_STRING flag
combination — raw octal/decimal, “ls -l”-style permission
string, or both with the raw form parenthesised.
C signature: static void statmodeprint(mode_t mode, char *outbuf, int flags).
Rust port returns the formatted string (caller writes to its
own buffer) — same observable output for a given flag set.
WARNING: param names don’t match C — Rust=(mode, flags) vs C=(mode, outbuf, flags)