Handle open/openat flags, readlink result, and correct args
Implement lseek in node