Refactor & Use `KernelError` Where Appropriate
Opened this issue · 2 comments
Kfeavel commented
errno.h
should be refactored such that it is no longer a long list of defines but a enum
instead. There's no reason why we have to follow the POSIX errno model either (though that is an issue for another time).
Additionally, the new enum
should be in an Error
namespace. This will help prevent name collisions and also provide a meaningful prefix when addressing this next update:
Errors should be refactored such that the names are not abbreviated in typical POSIX fashion but are readable English.
E2BIG
should become TooBig
, EACCES
should become Access
, etc. Common abbreviations such as Addr
for address and Msg
for message are acceptable.
mauryafunez commented
I got this