Pre-#33 workaround widened kstat.mode to a typed alias to dodge an MOVL emit issue. With #33 (session 3) landed, plain u32 works and matches both the kernel SYS_newfstatat struct layout (st_mode is unsigned int) and Hare's sys/+linux/types.ha:120 st.mode width. The cast-to-mode at fillfilestat is retained (kstat.mode is a u32 holding mode-typed bits, and the cast carries that intent). Keeps the kstat surface internally consistent with its other raw- primitive fields (uid: u32, gid: u32, ino: u64, …). A future Hare-fidelity pass can graduate kstat to the t-suffixed aliases ({uid,gid,mode,…}_t) but that's a separate consolidation.
23 KiB
23 KiB