Hello,
tl;dr -- is there any policy on error codes definition location and
value ranges?

I've got API that is based on coarse return values and logging (where
appropriate). This can be used both for propagation of
libraries/syscalls errors or using general values for custom errors
(e.g. ENOENT). However, there are some situations when standard error
codes are not sufficient for the domain. I guess only consistent
location is to put these codes to 'uspace/lib/c/include/errno.h' as
the return value codes are basically single global namespace and must
be "managed" centrally (since per domain custom codes could lead to
collisions). Hence my second question, is there any policy on error
codes value ranges?

Thank you,
Michal

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel

Reply via email to