Add missing POSIX functionality.