Lines Matching refs:format
176 /* Support any format that the library supports. */
184 fprintf(stderr, "Can't use format %s: %s\n",
252 int format;
260 format = ARCHIVE_FORMAT_TAR_PAX_RESTRICTED;
288 format = archive_format(a);
298 * Set the format to be used for writing. To allow people to
299 * extend empty files, we need to allow them to specify the format,
300 * which opens the possibility that they will specify a format that
301 * doesn't match the existing format. Hence, the following bit
306 /* If the user requested a format, use that, but ... */
310 format &= ARCHIVE_FORMAT_BASE_MASK;
311 if (format != (int)(archive_format(a) & ARCHIVE_FORMAT_BASE_MASK)
312 && format != ARCHIVE_FORMAT_EMPTY) {
319 * Just preserve the current format, with a little care
322 if (format == ARCHIVE_FORMAT_TAR_GNUTAR)
324 format = ARCHIVE_FORMAT_TAR_USTAR;
325 if (format == ARCHIVE_FORMAT_EMPTY)
326 format = ARCHIVE_FORMAT_TAR_PAX_RESTRICTED;
327 archive_write_set_format(a, format);
348 int format;
355 format = ARCHIVE_FORMAT_TAR_PAX_RESTRICTED;
388 /* Record the last format determination we see */
389 format = archive_format(a);
400 * Set format to same one auto-detected above, except that
401 * we don't write GNU tar format, so use ustar instead.
403 if (format == ARCHIVE_FORMAT_TAR_GNUTAR)
404 format = ARCHIVE_FORMAT_TAR_USTAR;
405 archive_write_set_format(a, format);
908 * This format is required by SUSv2. */
972 * the format handler might have reset the size field to zero