Making EPERM friendlier
Posted Jan 22, 2013 11:51 UTC (Tue) by vonbrand
Parent article: Making EPERM friendlier
If errno is an integer, why not just use the full range? I.e., low 8 bits contain "traditional" errno, high 24 bits (uint32_t should be plenty... famous last words) contain details for whoever is groping for them. Frob perror(3) to use the full range on some feature macro, i.e., LINUX_VERSION >= 0x030900. Or am I missing something critical here?
to post comments)