POSIX writing functionality