Lines Matching defs:path
39 * char *realpath(const char *path, char resolved[PATH_MAX]);
41 * Find the real name of path, by removing all ".", ".." and symlink
43 * in which case the path which caused trouble is left in (resolved).
46 realpath(const char *path, char *resolved)
55 if (path[0] == '\0') {
71 if (path[0] == '/') {
74 if (path[1] == '\0')
77 left_len = strlcpy(left, path + 1, sizeof(left));
87 left_len = strlcpy(left, path, sizeof(left));
95 * Iterate over path components in `left'.
99 * Extract the next path component and adjust `left'
127 * Strip the last path component except when we have
140 * Append the next path component and lstat() it. If
142 * there are no more path components left.
169 /* Strip the last path component. */
177 * If there are any path components left, then