Lines Matching defs:source
1182 char source[MAXPATHLEN];
1194 strcpy(source, osDevName);
1203 if (source[0] != '/') {
1211 if (source[0] == '.' && source[1] == '/') {
1212 strcpy(scratch, source+2);
1214 strcpy(scratch, source);
1216 strcpy(source, pwd);
1217 (void) strcat(source, "/");
1218 (void) strcat(source, scratch);
1224 while (cleanup_dotdot_path(source))
1228 * source is now an absolute path to the link we're
1240 if (stat(source, &stbuf) == -1) {
1242 strstr(source, "/devices")) {
1244 * lstat succeeded previously and source
1249 strlen(source) + 1);
1252 source, strlen(source) + 1);
1257 if (lstat(source, &stbuf) == -1) {
1272 if (lstat(source, &stbuf) == -1) {
1286 if (stat(source, &stbuf) == -1) {
1289 if (lstat(source, &stbuf) == -1) {
1307 phys_path = (char *)calloc(1, strlen(source) + 1);
1309 (void) strncpy(phys_path, source,
1310 strlen(source) + 1);
1314 cnt = readlink(source, scratch, sizeof (scratch));
1328 * which the source was in. (This is non trivial)
1331 tmp = strrchr(source, '/');
1339 (void) strcat(source, scratch);
1341 * Note: At this point, source should have "../"s
1347 strcpy(source, scratch);