The getchar() Of Today Is:
klibc! it's a tiny libc that only implements a small subset of the standard c library, designed to be used during the bootup of a linux system when the "real" libc is not yet loaded. as you can see it takes a very simplistic approach to implementing getchar() - there's no support for locking at all, so it can't be used in threaded software
however it's great for anything with tight resource constraints! klibc is not only suitable for booting the linux kernel but for various embedded software that needs a small and reliable libc rather than a complete one. very nice!













