Missing error values in ftruncate and fallocate man pages?

Zeno Endemann
2026-04-10T16:52:33Z

Hello,

I noticed that the man page for truncate(2) does not list the error codes
ENOSPC and EDQUOT, but I would think those should be potentially possible
when actually expanding a file (may depend on file system?).

Similarly, fallocate(2) also does not list EDQUOT (ENOSPC is there however).
Finally, posix_fallocate(3) has no EDQUOT as well, and EIO also seems to be
missing for this one.

Or am I overlooking something?

Thanks,
Zeno Endemann