16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ar<br />

Operands<br />

Examples<br />

archive<br />

Specifies the pathname of the archive file.<br />

member<br />

Specifies the pathname of the file that is to be acted upon (placed, deleted,<br />

searched for, and so on) in the archive library.<br />

1. To add a member fioacc.o to the archive file /u/turner/bin/cliserpgm.a, specify:<br />

ar –rc /u/turner/bin/cliserpgm.a fioacc.o<br />

2. To display the members of the archive file /u/turner/bin/cliserpgm.a, specify:<br />

ar –tv /u/turner/bin/cliserpgm.a<br />

3. To delete the member repgen.o from the archive file /u/turner/bin/cliserpgm.a<br />

and regenerate the external symbol table for the archive, specify:<br />

ar –ds /u/turner/bin/cliserpgm.a repgen.o<br />

Environment variables<br />

ar uses the following environment variable:<br />

Localization<br />

Files<br />

Usage note<br />

TMPDIR<br />

The pathname of the directory being used for temporary files. If it is not set,<br />

z/<strong>OS</strong> <strong>UNIX</strong> uses /tmp.<br />

ar uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v LC_TIME<br />

v NLSPATH<br />

See Appendix F, “Localization” for more information.<br />

ar creates temporary files in the archive file’s directory and in the directory named<br />

by the TMPDIR environment variable. These files are intermediate versions of the<br />

archive file being created or updated. Consequently, they require approximately the<br />

same file size as the archive file being manipulated.<br />

ar may be used to store multiple versions of the same object file within one archive<br />

library. This is useful if you are providing an archive library which may be used to<br />

resolve references from code compiled with various compiler options. These options<br />

cause differences in the object files which must be matched with the archive library<br />

member attributes. Attributes for ar are: AMODE, XPLINK, and IPA.<br />

ar will store the attribute information for every entry in the symbol table. The linkage<br />

editor will use the attribute information to resolve external references with the<br />

appropriate archive library member. Because archive library member names are<br />

only the final component of the pathname, these member names must be unique<br />

for the different object file versions.<br />

16 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!