Lines Matching refs:fullpath
36 int follow_symlink(int dirfd, const char *path, struct Vnode **vnode, char **fullpath)
49 if (*fullpath)
51 free(*fullpath);
52 *fullpath = NULL;
55 ret = vfs_normalize_pathat(dirfd, pathname, fullpath);
61 ret = VnodeLookupFullpath(*fullpath, &newvnode, 0);
64 /* The object of fullpath is not exist. Return its parent's vnode. */
70 /* The object of fullpath is exist, and is not a symbol link. Return its vnode. */
80 /* The object of fullpath is a symbol link. Read its target and find the source file successively. */
97 char *fullpath = NULL;
120 ret = vfs_normalize_pathat(newfd, path, &fullpath);
126 newname = strrchr(fullpath, '/') + 1;
129 ret = VnodeLookup(fullpath, &parent_vnode, 0);
159 free(fullpath);
165 free(fullpath);