Lines Matching refs:sep
174 char *sep, *base, *ptr, **dirs, **matches,
265 sep = directory;
266 for (sep = strstr(sep, dotdot); sep; sep = strstr(sep, dotdot)) {
267 if (sep <= directory + 1)
268 strcpy(directory, sep + 2);
269 else if (sep[-1] == PATH_SEP) {
270 for (base = sep - 2; base > directory; base--)
273 strcpy(base, sep + 2);
274 sep = base;
277 ++sep;
281 sep = directory;
282 for (sep = strstr(sep, dot); sep; sep = strstr(sep, dot)) {
283 if (sep == directory || sep[-1] == PATH_SEP)
284 strcpy(sep, sep + 2);
286 ++sep;
296 sep = strchr(base + 1, PATH_SEP);
301 for (base = directory + 1, sep = strchr(base, PATH_SEP); ;
302 base = sep + 1, sep = strchr(base, PATH_SEP)) {
303 *sep = '\0';
304 if (sep[1] == '\0')
305 sep = NULL;
308 if (sep)
309 *sep = PATH_SEP;
346 if (all != UNSPEC || ((isdir && (listdirs || sep)) ||
347 (!listdirs && !sep && !isdir))) {
364 if (sep || !listdirs || *base) {
416 if (sep)
417 *sep = PATH_SEP;