Lines Matching refs:file

4  * The contents of this file are subject to the terms of the
6 * (the "License"). You may not use this file except in compliance
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
59 char lastfilepath[PATHLEN + 1]; /* last file that full path was */
72 static void putref(char *file, char *function);
73 static void findcalledbysub(char *file);
79 static char *filepath(char *file);
86 char file[PATHLEN + 1]; /* source file name */
108 skiprefchar(); /* skip the file marker */
109 getstring(file); /* save the file name */
134 /* look for a source file or function name */
139 case NEWFILE: /* file name */
143 getstring(file);
146 if (*file == '\0') {
172 case INCLUDE: /* #include file */
226 * output the file, calling function or macro,
230 putref(file, macro);
232 putref(file, function);
234 putref(file, "");
252 char file[PATHLEN + 1]; /* source file name */
280 /* find the next file name or definition */
289 skiprefchar(); /* save file name */
290 getstring(file);
291 if (*file == '\0') { /* if end of symbols */
344 * output the file, calling function or macro,
348 putref(file, macro);
350 putref(file, function);
352 putref(file, "");
364 char file[PATHLEN + 1]; /* source file name */
367 /* find the next file name or definition */
371 skiprefchar(); /* save file name */
372 getstring(file);
373 if (*file == '\0') { /* if end of symbols */
384 /* output the file, function and source line */
385 putref(file, function);
396 char file[PATHLEN + 1]; /* source file name */
418 skiprefchar(); /* save file name */
419 getstring(file);
420 if (*file == '\0') { /* if end of symbols */
435 findcalledbysub(file);
443 findcalledbysub(char *file)
457 /* output the file name */
458 (void) fprintf(refsfound, "%s ", filepath(file));
472 case NEWFILE: /* file end */
483 char file[PATHLEN + 1]; /* source file name */
498 /* find the next file name or function definition */
504 case NEWFILE: /* save file name */
506 getstring(file);
507 if (*file == '\0') { /* if end of symbols */
533 /* output the file, calling function or */
536 putref(file, macro);
538 putref(file, function);
550 char file[PATHLEN + 1]; /* source file name */
578 /* find the next file name or function definition */
584 case NEWFILE: /* save file name */
586 getstring(file);
587 if (*file == '\0') { /* if end of symbols */
616 /* output the file, calling function or */
619 putref(file, macro);
621 putref(file, function);
664 char *file = filepath(srcfiles[i]);
666 if (egrep(file, refsfound, "%s <unknown> %ld ") < 0) {
667 (void) sprintf(msg, "Cannot open file %s",
668 file);
676 /* find matching file names */
696 /* find files #including this file */
701 char file[PATHLEN + 1]; /* source file name */
714 /* find the next file name or function definition */
718 case NEWFILE: /* save file name */
720 getstring(file);
721 if (*file == '\0') { /* if end of symbols */
732 /* output the file and source line */
733 putref(file, "");
754 /* allow a partial match for a file name */
935 /* display the file search progress about every three seconds */
1032 /* put the posting reference into the file */
1052 /* put the reference into the file */
1055 putref(char *file, char *function)
1066 if (fprintf(output, "%s %s ", filepath(file), function) == EOF) {
1073 /* put the source line into the file */
1117 /* put the rest of the cross-reference line into the file */
1212 /* return NULL on end-of-file */
1265 filepath(char *file)
1270 if (*file != '/') {
1272 /* if same file as last time, return the same path */
1273 if (strequal(file, lastfilepath)) {
1276 (void) strcpy(lastfilepath, file);
1278 /* if requested, prepend a path to a relative file path */
1280 (void) sprintf(path, "%s/%s", prependpath, file);
1291 "%s/%s", dbvpdirs[i], file);
1297 (void) strcpy(path, file); /* for lastfilepath check */
1299 return (file);