


      AAAARRRR((((1111))))                       ((((bbbbssssdddd 4444....2222))))                       AAAARRRR((((1111))))



      NNNNAAAAMMMMEEEE
           ar - archive and library maintainer

      SSSSYYYYNNNNTTTTAAAAXXXX
           aaaarrrr key [ posname ] _a_f_i_l_e _n_a_m_e ...

      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
           _A_r maintains an archive file that consists of groups of
           files.  Its main use is to create and update library files
           as used by the loader.  It can be used, though, for any
           similar purpose.

           _A_f_i_l_e is the archive file.  The _n_a_m_e_s are constituent files
           in the archive file.  _K_e_y is one of the following: (Keys d,
           r, m, q, and s automatically invoke ranlib to add a table of
           contents named ____....ssssyyyymmmmddddeeeeffff to the beginning of the archive,
           making the use of ranlib on each archive unnecessary.)

           dddd    Delete the named files from the archive file.

           rrrr    Replace the named files in the archive file.  If the
                optional character uuuu is used with rrrr,,,, then only those
                files with `last-modified' dates later than the archive
                files are replaced.  If an optional positioning
                character from the set aaaabbbbiiii is used, then the _p_o_s_n_a_m_e
                argument must be present and specifies that new files
                are to be placed after (aaaa) or before (bbbb or iiii) _p_o_s_n_a_m_e.
                Otherwise new files are placed at the end.

           qqqq    Quickly append the named files to the end of the
                archive file.  Optional positioning characters are
                invalid.  The command does not check whether the added
                members are already in the archive.  Useful only to
                avoid quadratic behavior when creating a large archive
                piece-by-piece.

           tttt    Print a table of contents of the archive file.  If no
                names are given, all files in the archive are tabled.
                If names are given, only those files are tabled.

           pppp    Print the named files in the archive.

           mmmm    Move the named files to the end of the archive.  If a
                positioning character is present, then the _p_o_s_n_a_m_e
                argument must be present and, as in rrrr,,,, specifies where
                the files are to be moved.

           xxxx    Extract the named files.  If no names are given, all
                files in the archive are extracted.  In neither case
                does xxxx alter the archive file. Normally the `last-
                modified' date of each extracted file is the date when
                it is extracted. However, if oooo is used, the `last-



      Page 1                                                   (9010-E)






      AAAARRRR((((1111))))                       ((((bbbbssssdddd 4444....2222))))                       AAAARRRR((((1111))))



                modified' date is reset to the date recorded in the
                archive.

           vvvv    Verbose.  Under the verbose option, _a_r gives a file-
                by-file description of the making of a new archive file
                from the old archive and the constituent files.  When
                used with tttt,,,, it gives a long listing of all information
                about the files.  When used with pppp, it precedes each
                file with a name.

           cccc    Create.  Normally _a_r will create _a_f_i_l_e when it needs
                to.  The create option suppresses the normal message
                that is produced when _a_f_i_l_e is created.

           llll    Local.  Normally _a_r places its temporary files in the
                directory /tmp.  This option causes them to be placed
                in the local directory.

           ssss    Symbol table.  Regenerate the archive symbol table even
                if ar(1) is not invoked with a command which will
                modify the archive contents.  This is useful after
                strip(1) has been used on the archive.

      FFFFIIIILLLLEEEESSSS
           /tmp/v*   temporaries

      SSSSEEEEEEEE AAAALLLLSSSSOOOO
           lorder(1), ld(1), ranlib(1), ar(4)

      BBBBUUUUGGGGSSSS
           If the same file is mentioned twice in an argument list, it
           may be put in the archive twice.

           The `last-modified' date of a file will not be altered by
           the oooo option if the user is not the owner of the extracted
           file, or the super-user.



















      Page 2                                                   (9010-E)



