POSIX implementation of file level stuffs (sloppy)