Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

ar(1) OSS Shell and Utilities Reference Manual
archive le is made up of target-independent object
les.
Text les are always target-environment independent.
If ar detects mixing of OSS and Guardian environment object les, it issues a warning message
but does not prevent you from creating an archive le of mixed environments. It is your respon-
sibility to ensure that procedures used for resolving references work in the target environment;
otherwise, program execution results in runtime errors.
The le structure of archive les is dened in the ar.h header le.
Operands
ar supports the following operands:
archive The pathname of the archive le to be created or modied.
The maximum size of an archive le is 1,024,491,520 bytes. If operations on the |
archive le cause the le to exceed that size limit, the ar command returns an
error message and the archive le becomes corrupted because ar cannot create
the symbol table information.
file The pathname of a le to be processed. Only the last component of a pathname
is used in comparing the lename with names of les in the archive le. If two
or more le operands have the same last component in their pathname
(basename), they are all archived as separate members with the same name. ar
does not truncate valid lenames of les added to or replaced in the archive le.
position_name The name of a le within the archive le; used for relative positioning. See ags
-m and -r.
Environment Variables
The following environment variable affects the execution of ar.
TMPDIR Determines the pathname that overrides the default directory for temporary les,
if any.
This utility supports the use of the LANG, LC_ALL, LC_CTYPE, LC_MESSAGES, and
NLSPATH environment variables.
Input Files
The input le identied in the archive operand must be a le in the format created by the com-
mand ar -r.
Standard Output
Standard output depends on the ags used with ar.
If the -d ag is used with the -v ag, the standard output format is:
"d - %s \n", le
where le is the le operand specied on the command line.
If the -p ag is used with the -v ag, ar precedes the contents of each le with:
"\n%s\n\n", le
where le is the le operand specied on the command line if le operands were
specied, or the name of the le in the archive if the le operands were not specied.
110 Hewlett-Packard Company 527188-007