This commit covers most of the ANSI library functions. Many others only need <sys/types.h> because they use u_xxx.