very bare C library loosely following POSIX