Lines Matching refs:archive
1 /* Library function for scanning an archive file.
108 /* Takes three arguments ARCHIVE, FUNCTION and ARG.
110 Open the archive named ARCHIVE, find its members one by one,
112 archive file descriptor for reading the data,
133 Returns -1 if archive does not exist,
134 Returns -2 if archive has invalid format.
138 ar_scan (char *archive, long int (*function) PARAMS ((void)), intptr_t arg)
159 libdesc.dsc$a_pointer = archive;
160 libdesc.dsc$w_length = strlen (archive);
167 archive, (char *)arg);
200 /* On the sun386i and in System V rel 3, ar.h defines two different archive
209 PORTAR to 1 gets the wrong archive format, and defining it to 0 gets the
217 /* On AIX, define these symbols to be sure to get both archive formats.
218 AIX 4.3 introduced the "big" archive format to support 64-bit object
220 "big" archive formats. An archive's format is indicated in the
221 "fl_magic" field of the "FL_HDR" structure. For a normal archive,
223 "big" archive, it will be the string defined by the AIAMAGBIG symbol
241 # define ARMAG "!<arch>\n" /* String that begins an archive file. */
278 /* Takes three arguments ARCHIVE, FUNCTION and ARG.
280 Open the archive named ARCHIVE, find its members one by one,
282 archive file descriptor for reading the data,
301 Returns -1 if archive does not exist,
302 Returns -2 if archive has invalid format.
306 ar_scan (char *archive, long int (*function)(), intptr_t arg)
318 register int desc = open (archive, O_RDONLY, 0);
342 /* If this is a "big" archive, then set the flag and
348 /* seek back to beginning of archive */
365 /* Check to make sure this is a "normal" archive. */
413 /* Empty archive. */
568 length supported by the standard archive format is 14
570 first or second entry in the archive, but we don't check
661 /* If this member maps archive names, we must read it in. The
754 /* Set date of member MEMNAME in archive ARNAME to current time.
757 -2 if not a valid archive,
784 /* Write back the header, thus touching the archive file. */