style(9), remove hardcoded errnos, and use C-89 compatible idioms

style(9):

- Remove trailing whitespace
- Compress if-else statements into one line wherever possible
- Insert whitespace between if/for loop and opening parentheses.
- Use C comments instead of C++ comments
Cleanup trailing whitespace
Clean up trailing whitespace
Simplify the KERNCONF by including GENERIC