Lines Matching defs:path
54 * char *realpath(const char *path, char resolved[PATH_MAX]);
56 * Find the real name of path, by removing all ".", ".." and symlink
58 * in which case the path which caused trouble is left in (resolved).
61 realpath(const char *path, char *resolved)
70 if (path[0] == '\0') {
86 if (path[0] == '/') {
89 if (path[1] == '\0')
92 left_len = strlcpy(left, path + 1, sizeof(left));
102 left_len = strlcpy(left, path, sizeof(left));
110 * Iterate over path components in `left'.
114 * Extract the next path component and adjust `left'
142 * Strip the last path component except when we have
155 * Append the next path component and lstat() it. If
157 * there are no more path components left.
184 /* Strip the last path component. */
192 * If there are any path components left, then