interface the kernel provides to libc (and the rest of userland) is an
"int". Therefore, stop pretending that it's a long, since that can
incur bizarre failure modes if the types also don't have the same size
(sparc64, alpha, etc).
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.
This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.