Time To Get Rid Of errno
Time To Get Rid Of errno
Posted Sep 2, 2015 9:12 UTC (Wed) by mirabilos (subscriber, #84359)In reply to: Time To Get Rid Of errno by ldo
Parent article: Glibc wrappers for (nearly all) Linux system calls
That’s not possible because C has no Carry Flag, and thus no means to signal an error to be different from the return value (BSD uses this: syscalls return positive errnos and CF set; Linux uses negative errnos, but that means that UINT_MAX-4096 is the highest possible return value of a syscall, e.g. limiting file sizes further).