MPE/iX Shell and Utilities Reference Manual, Vol 2

tags(2) MPE/iX Shell and Utilities tags(2)
NAME
tags — format of tags file
DESCRIPTION
When you use the vi or ex :tag command, the more :t command, or the ex, more,orvi –t
option, that utility looks for a file called tags in the current directory. This lets you quickly
locate various points of interest in a
C
program which may span more than one source file.
These points of interest are tags. Typically, you use the ctags command to construct a tags
file.
The tags file may contain tags for C function definitions, pre-processor macro definitions,
and typedef definitions.
For each tag, the tags file contains one line in the following form:
tagname sourcefile address
The tagname field is the name of the
C function, macro, or typedef. The sourcefile has the
name of the C source file containing the tag named tagname. The address field is an editor ad-
dress within sourcefile to reach the tag definition. This is either a line number in the file or a
regular expression (enclosed in ? or / characters) that uniquely matches the line of
C source
code where the tag appears. A tab character separates each field.
For vi(1) or more(1) to use the tags file correctly, it must be sorted by tagname using the
POSIX locale’s collation sequence.
SEE ALSO
ctags(1), more(1), sort(1), vi(1)
File Formats 2-7