]> 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)
commit71a8ba126fac7c327b0944a94fb22be2238ae0ff
tree16614aa99221bed1477f856aed8c2b3ccefacd84
parente21b3445fae990720d9947967c7393113a7fddfa
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