Since putc() doesn't automatically print '\r' when '\n' is printed,
we must manually do this conversion ourselves.
Signed-off-by: Sean Cross <xobs@kosagi.com>
The memset() prototype from glibc includes __THROW and __nonnull as
decorators, which are nonstandard. Remove these for additional
compatibility with gcc.
Additionally, remove linux/types.h and linux/string.h, and replace them
with sys/types.h and sys/string.h.
This function is a wrapper around simple_strtoul, and allows us to expose
it, replacing the one in bionic.c.
Signed-off-by: Sean Cross <xobs@kosagi.com>