la_int64_t /* offset */, la_int64_t /* length */);
/*
- * To retrieve the xattr list, first "reset", then repeatedly ask for the
+ * To retrieve the sparse list, first "reset", then repeatedly ask for the
* "next" entry.
*/
/*
* Returns 1 if the archive contains at least one encrypted entry.
- * If the archive format not support encryption at all
+ * If the archive format does not support encryption at all,
* ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED is returned.
* If for any other reason (e.g. not enough data read so far)
* we cannot say whether there are encrypted entries, then
next_header_crc = archive_le32dec(p + 28);
if (next_header_size == 0)
- /* There is no entry in an archive file. */
+ /* There is no entry in the archive file. */
return (ARCHIVE_EOF);
__archive_read_consume(a, 32);
/* Note: We always return ARCHIVE_OK here, even if some of the
* above return ARCHIVE_WARN. The intent here is to enable
* "as much as possible." Clients who need specific
- * compression should enable those individually so they can
+ * formats should enable those individually so they can
* verify the level of support. */
/* Clear any warning messages set by the above functions. */
archive_clear_error(a);
#define ST_COPY 22
/*
- * Window to see last decoded data, from 32KBi to 2MBi.
+ * Window to see last decoded data, from 32 KiB to 2 MiB.
*/
size_t w_size;
size_t w_mask;
}
}
/* If CFDATA is not last in a folder, an uncompressed
- * size must be 0x8000(32KBi) */
+ * size must be 0x8000 (32 KiB) */
if ((cab->entry_cffolder->cfdata_index <
cab->entry_cffolder->cfdata_count) &&
cfdata->uncompressed_size != MAX_UNCOMPRESS_SIZE)
ds = strm->ds;
ds->error = ARCHIVE_FAILED;
- /* Allow bits from 15(32KBi) up to 21(2MBi) */
+ /* Allow bits from 15 (32 KiB) up to 21 (2 MiB) */
if (w_bits < SLOT_BASE || w_bits > SLOT_MAX)
return (ARCHIVE_FAILED);
/* FALL THROUGH */
case ST_COPY_UNCOMP1:
/*
- * Copy bytes form next_in to next_out directly.
+ * Copy bytes from next_in to next_out directly.
*/
while (ds->block_bytes_avail) {
size_t l;
header_crc = lha_crc16(0, p, H3_FIXED_SIZE);
__archive_read_consume(a, H3_FIXED_SIZE);
- /* Reject rediculously large header */
+ /* Reject ridiculously large header */
if (lha->header_size > 65536) {
archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,
"LHa header size too large");
/*
* Create the specified directory with the specified mode, taking certain
- * precautions on they way.
+ * precautions on the way.
*/
static void
make_dir(const char *path, int mode)