+ struct dirent *ent;\r
+ DIR *dp = (void*)(tVAddr)Node->Inode;\r
+ char *ret;\r
+\r
+ ENTER("pNode iPosition", Node, Position);\r
+\r
+ // TODO: Keep track of current position in the directory\r
+ // TODO: Lock node during this\r
+ rewinddir(dp);\r
+ do {\r
+ ent = readdir(dp);\r
+ } while(Position-- && ent);\r
+\r
+ if( !ent ) {\r
+ LEAVE('n');\r
+ return NULL;\r
+ }\r
+ \r
+ ret = strdup(ent->d_name);\r
+\r
+ // TODO: Unlock node \r
+\r
+ LEAVE('s', ret);\r
+ return ret;\r