]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
posix: standardize -errno in VFS/tmpfs/initrd
authorTulio A M Mendes <[email protected]>
Sun, 8 Feb 2026 03:12:50 +0000 (00:12 -0300)
committerTulio A M Mendes <[email protected]>
Sun, 8 Feb 2026 03:12:50 +0000 (00:12 -0300)
commit4b61a041816d6759600de090ec5e19b741ef2163
treed887b39229593c348751feef6fbbb01db64a9e4f
parent580e2bb1a7893374ecf18b12d97a5dbdea5dad1d
posix: standardize -errno in VFS/tmpfs/initrd

Replace remaining -1 style returns in core helpers used by syscalls and early init with negative errno codes (vfs_mount, tmpfs_add_file/mkdir_p, initrd alloc/path helpers). Add missing errno constants (EEXIST/ENOTDIR/ENOSPC).
include/errno.h
src/drivers/initrd.c
src/kernel/fs.c
src/kernel/tmpfs.c