Miscellaneous functions to extend libc
