3 fd2path \- return file name associated with file descriptor
10 int fd2path(int fd, char *buf, int nbuf)
14 the kernel stores a rooted path name with every open file or directory;
15 typically, it is the name used in the original access of the file.
17 returns the path name associated with open file descriptor
21 bytes of the name are stored in
23 if the name is too long, it will be silently truncated at a UTF-8
25 The name is always null-terminated.
28 will be zero unless an error occurs.
30 Changes to the underlying name space do not update the path name
31 stored with the file descriptor.
35 may no longer refer to the same file (or indeed any file)
36 after some component directory or file in the path has been removed, renamed
41 is implemented by opening
45 on the resulting file descriptor.
47 .B /sys/src/libc/9syscall