Lines Matching defs:source
1068 char source[MAXPATHLEN];
1079 strcpy(source, path);
1088 if (source[0] != '/') {
1098 if (source[0] == '.' && source[1] == '/') {
1099 strcpy(scratch, source+2);
1101 strcpy(scratch, source);
1103 strcpy(source, pwd);
1104 (void) strcat(source, "/");
1105 (void) strcat(source, scratch);
1111 while (cleanup_dotdot_path(source));
1114 * source is now an absolute path to the link we're
1119 if (strstr(source, "/devices")) {
1120 return (g_alloc_string(source));
1123 if (lstat(source, &stbuf) == -1) {
1125 source, strerror(errno));
1138 return (g_alloc_string(source));
1140 cnt = readlink(source, scratch, sizeof (scratch));
1156 * which the source was in. (This is non trivial)
1159 tmp = strrchr(source, '/');
1167 (void) strcat(source, scratch);
1169 * Note: At this point, source should have "../"s
1175 strcpy(source, scratch);