Lines Matching defs:source
296 char source[MAXPATHLEN];
307 strcpy(source, path);
316 if (source[0] != '/') {
326 if (source[0] == '.' && source[1] == '/') {
327 strcpy(scratch, source+2);
329 strcpy(scratch, source);
331 strcpy(source, pwd);
332 strcat(source, "/");
333 strcat(source, scratch);
339 while (cleanup_dotdot_path(source));
342 * source is now an absolute path to the link we're
349 if (stat(source, &stbuf) == -1) {
351 source, strerror(errno));
354 if (lstat(source, &stbuf) == -1) {
356 source, strerror(errno));
369 return (g_alloc_string(source));
371 cnt = readlink(source, scratch, sizeof (scratch));
387 * which the source was in. (This is non trivial)
390 tmp = strrchr(source, '/');
398 strcat(source, scratch);
400 * Note: At this point, source should have "../"s
406 strcpy(source, scratch);