[klibc] Deal with select() and kernel include files; select() test

The kernel include files are hideously messed up across architectures
when it comes to the macros for select().  Just use a generic
implementation across all architectures.

Add a test for select().

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
3 files changed