Lines Matching defs:path
44 * Find the real name of path, by removing all ".", ".." and symlink
46 * in which case the path which caused trouble is left in (resolved).
49 realpath(const char * __restrict path, char * __restrict resolved)
58 if (path == NULL) {
62 if (path[0] == '\0') {
75 if (path[0] == '/') {
78 if (path[1] == '\0')
81 left_len = strlcpy(left, path + 1, sizeof(left));
93 left_len = strlcpy(left, path, sizeof(left));
103 * Iterate over path components in `left'.
107 * Extract the next path component and adjust `left'
139 * Strip the last path component except when we have
152 * Append the next path component and lstat() it. If
154 * there are no more path components left.
190 /* Strip the last path component. */
198 * If there are any path components left, then