add some posix fun