Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)

ar(1) OSS Shell and Utilities Reference Manual
-q Quickly appends the named les to the end of the archive le. The ar command
does not check whether the appended les already exist in the archive. ar is use-
ful if you want to bypass the search process that is otherwise done when a large
archive is created piece by piece.
-r Replaces or adds les to an archive. If the archive named in the archive operand
does not exist, a new archive le is created and a diagnostic message is written
to the standard error le (unless the -c ag is specied). If no les are specied
and the archive exists, no changes are made to the archive. Files that replace
existing les do not change the order of the archive. Files that do not replace
existing les are appended to the end of the archive.
-s Forces the regeneration of the archive symbol table even if ar is not invoked
with a ag that modies the archive le contents.
-t Writes a table of contents for the library to the standard output le. The les
specied by the le operands are included in the written list. If no le operands
are specied, all les in the archive given by the archive operand are included in
the order of the archive.
-T Allows truncation of names of les whose archive names are longer than 255
characters. By default, extracting a le with a name that is too long is an error: a
diagnostic message is written, and the le is not extracted.
-u Updates older les by copying to the archive only those les that have changed
since they were last entered into the archive. When used with the -r ag, -u
allows les in the archive to be replaced only by les having more recent
modication times.
-v Writes to the standard output le a verbose description of a library. When the -v
ag is used with ags -d, -r,or-x, it writes a le-by-le description of the
archive operations as they are performed.
When -v is used with the -p ag, it writes the name of the le to the standard out-
put le before it writes the le to the standard output le.
When -v is used with the -t ag, it writes a detailed list of information about each
le, including access, ownership, size, and time, to the standard output le.
-Wfiletype Displays the le type. When specied with -tv ags, it displays [elf-non PIC]
for TNS/R native object les that are not position-independent code (non-PIC),
[elf PIC] for TNS/R PIC native linkles or native load les, [tnse] for TNS/E
native linkles or loadles, [tns] for TNS and accelerated object les, or nothing
for other le types such as text les. Use this ag when ar cannot generate the
symbol table because native linkles or loadles are mixed with TNS or
accelerated object les.
-Wobey obey_file
Indicates that a ag and a list of les to be processed should be read from the le
obey_le rather than from the command line. The -Wobey ag cannot be used
on the command line when any other ag is used on the command line. Use the
-Wobey ag to speed up execution of ar when more than one le must be pro-
cessed.
The le obey_le must be either a Guardian EDIT le or an OSS text le. In the
le obey_le, you must specify one and only one ag from the required-ag set
dmpqrtx. You can also specify any number of optional ags from the set abcil-
suvCT. If you select one of the positioning ags (a, b,ori), you must also
18 Hewlett-Packard Company 527188-004