Lines Matching refs:symlink
72 * Find the real name of path, by removing all ".", ".." and symlink
88 char left[PATH_MAX], next_token[PATH_MAX], symlink[PATH_MAX];
193 slen = readlink(resolved, symlink,
194 sizeof (symlink) - 1);
197 symlink[slen] = '\0';
199 if (symlink[0] == '/') {
212 * append them to symlink. The result is placed
216 if (symlink[slen - 1] != '/') {
217 if (slen + 1 >= sizeof (symlink)) {
221 symlink[slen] = '/';
222 symlink[slen + 1] = 0;
224 left_len = strlcat(symlink, left,
231 left_len = strlcpy(left, symlink, sizeof (left));