9p: Add readdir and read function.