LWN.net Logo

Making EPERM friendlier

Making EPERM friendlier

Posted Jan 20, 2013 19:03 UTC (Sun) by jreiser (subscriber, #11027)
In reply to: Making EPERM friendlier by justincormack
Parent article: Making EPERM friendlier

The current scheme used by the linux kernel for error return codes from a syscall allows only 4095 error codes (0xFFF...F001 through 0xFFF...FFFF) because any other bit pattern could be a legitimate non-error return value.


(Log in to post comments)

Making EPERM friendlier

Posted Jan 20, 2013 20:02 UTC (Sun) by justincormack (subscriber, #70439) [Link]

Good point. Thats probably still enough to distinguish all the error points for a particular syscall, but it is more of a squeeze.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds