Операционная система UNIX. Руководство программиста

       

Cxref(1)


Команда cxref(1) анализирует группу .c-файлов и строит для каждого файла таблицу перекрестных ссылок на автоматические, статические и глобальные имена.

Ниже приводится результат выполнения команды

cxref -c -o cx.op restate.c oppty.c pft.c rfe.c

Этот результат помещается в файл, в нашем примере это cx.op. Опция -c приводит к тому, что результат выполнения команды для четырех указанных файлов сливается в одну общую таблицу перекрестных ссылок.

restate.c:

oppty.c:

pft.c:

rfe.c:

SYMBOL FILE FUNCTION LINE

BUFSIZ /usr/include/stdio.h -- *12 EOF /usr/include/stdio.h -- 43 *44 restate.c -- 34 FALSE restate.c -- *7 16 17 18 32 FILE /usr/include/stdio.h -- *23 L_ctermid /usr/include/stdio.h -- *79 L_cuserid /usr/include/stdio.h -- *80 L_tmpnam /usr/include/stdio.h -- *82 NULL /usr/include/stdio.h -- 40 *41 restate.c -- 52 P_tmpdir /usr/include/stdio.h -- *81 TRUE restate.c -- *6 37 40 43

_IOEOF /usr/include/stdio.h -- *35 _IOERR /usr/include/stdio.h -- *36 _IOFBF /usr/include/stdio.h -- *30 _IOLBF /usr/include/stdio.h -- *37 _IOMYBUF /usr/include/stdio.h -- *34 _IONBF /usr/include/stdio.h -- *33 _IOREAD /usr/include/stdio.h -- *31 _IORW /usr/include/stdio.h -- *38 _IOWRT /usr/include/stdio.h -- *32 _NFILE /usr/include/stdio.h -- 9 *10 67

_SBFSIZ /usr/include/stdio.h -- *15 _base /usr/include/stdio.h -- *20 _bufend() /usr/include/stdio.h -- *51 _bufendtab /usr/include/stdio.h -- *77 _bufsiz() /usr/include/stdio.h -- *52 _cnt /usr/include/stdio.h -- *18 _file /usr/include/stdio.h -- *22 _flag /usr/include/stdio.h -- *21 _iob /usr/include/stdio.h -- *67 restate.c main 25 27 46 53 62

_ptr /usr/include/stdio.h -- *19 argc restate.c -- 9 restate.c main *10 24 34 argv restate.c -- 9 restate.c main *11 26 28 34 47 55 64



c ./recdef.h -- *8 pft.c pft 8 restate.c main 60 rfe.c rfe 8 ch restate.c main *19 34 35

clearerr() /usr/include/stdio.h -- *61 ctermid() /usr/include/stdio.h -- *71 cuserid() /usr/include/stdio.h -- *71 dp ./recdef.h -- *6 oppty.c oppty 8 restate.c main 60 exit() restate.c main *14 29 48 56 65


fclose() /usr/include/stdio.h -- *72 fdopen() /usr/include/stdio.h -- *68 feof() /usr/include/stdio.h -- *62 ferror() /usr/include/stdio.h -- *63 fflush() /usr/include/stdio.h -- *72 fgetc() /usr/include/stdio.h -- *72 fgets() /usr/include/stdio.h -- *71 fileno() /usr/include/stdio.h -- *64 fin restate.c main *13 52 59

first restate.c main * 20 59 60 61 68 71 75 78

fopen() /usr/include/stdio.h -- *68 restate.c main 13 52 fprintf() /usr/include/stdio.h -- *73 restate.c main 25 27 46 53 62

fputc() /usr/include/stdio.h -- *74 fputs() /usr/include/stdio.h -- *75 fread() /usr/include/stdio.h -- *72 freopen() /usr/include/stdio.h -- *68 fscanf() /usr/include/stdio.h -- *75 restate.c main 59 fseek() /usr/include/stdio.h -- *72 ftell() /usr/include/stdio.h -- *69 fwrite() /usr/include/stdio.h -- *72 getc() /usr/include/stdio.h -- *55 getchar() /usr/include/stdio.h -- *59 getopt() restate.c main *15 34 gets() /usr/include/stdio.h -- *71 getw() /usr/include/stdio.h -- *73 i ./recdef.h -- *7 oppty.c oppty 8 restate.c main 60 lint /usr/include/stdio.h -- 54 main() restate.c -- *9 oflag restate.c main *16 37 70

oppty() oppty.c -- *5 restate.c main *22 71 opterr restate.c main *21 32 p /usr/include/stdio.h -- 51 *51 52 *52 55 *55 56 *56 57 58 61 *61 62 *62 63 *63 64 *64

pclose() /usr/include/stdio.h -- *73 pflag restate.c main *17 40 73

pft() pft.c -- *5 restate.c main *22 75 pname ./recdef.h -- *4 restate.c main 59 68 popen() /usr/include/stdio.h -- *68 ppx ./recdef.h -- *5 pft.c pft 8 restate.c main 60 printf() /usr/include/stdio.h -- *73 restate.c main 68 71 74 78

ps oppty.c -- 5 oppty.c oppty *6 8 pft.c -- 5 pft.c pft *6 8 rfe.c -- 5 rfe.c rfe *6 8 putc() /usr/include/stdio.h -- *56 putchar() /usr/include/stdio.h -- *60 puts() /usr/include/stdio.h -- *75 putw() /usr/include/stdio.h -- *74 rec ./recdef.h -- *3 oppty.c oppty 6 pft.c pft 6 restate.c main 20 rfe.c rfe 6 rewind() /usr/include/stdio.h -- *70 rfe() restate.c main *22 78 rfe.c -- *5 rflag restate.c main *18 43 77



scanf() /usr/include/stdio.h -- *75 setbuf() /usr/include/stdio.h -- *70 setvbuf() /usr/include/stdio.h -- *76 sprintf() /usr/include/stdio.h -- *73 spx ./recdef.h -- *10 pft.c pft 8 restate.c main 61 rfe.c rfe 8 sscanf() /usr/include/stdio.h -- *75 stderr /usr/include/stdio.h -- *49 restate.c -- 25 27 46 53 62

stdin /usr/include/stdio.h -- *47 stdout /usr/include/stdio.h -- *48 system() /usr/include/stdio.h -- *76 t ./recdef.h -- *9 oppty.c oppty 8 restate.c main 61 tempnam() /usr/include/stdio.h -- *71 tmpfile() /usr/include/stdio.h -- *68 tmpnam() /usr/include/stdio.h -- *71 ungetc() /usr/include/stdio.h -- *76 vfprintf() /usr/include/stdio.h -- *74 vprintf() /usr/include/stdio.h -- *74 vsprintf() /usr/include/stdio.h -- *74 x /usr/include/stdio.h -- *56 57 58 60 *60




Содержание раздела