/freebsd/usr.bin/gzip/ |
H A D | unpack.c | 149 unpack_parse_header(int in, int out, char *pre, size_t prelen, off_t *bytes_in, in unpack_parse_header() argument 157 if (prelen != 0) in unpack_parse_header() 158 memcpy(hdr, pre, prelen); in unpack_parse_header() 161 bytesread = read(in, hdr + prelen, PACK_HEADER_LENGTH - prelen); in unpack_parse_header() 317 unpack(int in, int out, char *pre, size_t prelen, off_t *bytes_in) in unpack() argument 328 unpack_parse_header(in, out, pre, prelen, bytes_in, &unpackd); in unpack()
|
H A D | unzstd.c | 31 unzstd(int in, int out, char *pre, size_t prelen, off_t *bytes_in) in unzstd() argument 53 zib.size = prelen; in unzstd() 56 *bytes_in = prelen; in unzstd()
|
H A D | unbzip2.c | 37 unbzip2(int in, int out, char *pre, size_t prelen, off_t *bytes_in) in unbzip2() argument 61 bzs.avail_in = prelen; in unbzip2() 65 *bytes_in = prelen; in unbzip2()
|
H A D | unxz.c | 41 unxz(int i, int o, char *pre, size_t prelen, off_t *bytes_in) in unxz() argument 55 memcpy(ibuf, pre, prelen); in unxz() 56 strm.avail_in = read(i, ibuf + prelen, sizeof(ibuf) - prelen); in unxz() 60 strm.avail_in += prelen; in unxz()
|
H A D | unlz.c | 612 unlz(int fin, int fout, char *pre, size_t prelen, off_t *bytes_in) in unlz() argument 619 if (pre && prelen) in unlz() 620 memcpy(header, pre, prelen); in unlz() 622 ssize_t nr = read(fin, header + prelen, sizeof(header) - prelen); in unlz() 627 return prelen ? -1 : 0; in unlz() 629 if ((size_t)nr != sizeof(header) - prelen) in unlz()
|
H A D | zuncompress.c | 132 zuncompress(FILE *in, FILE *out, char *pre, size_t prelen, in zuncompress() argument 143 compressed_prelen = prelen; in zuncompress() 144 if (prelen != 0) in zuncompress()
|
H A D | gzip.c | 719 gz_uncompress(int in, int out, char *pre, size_t prelen, off_t *gsizep, in gz_uncompress() argument 762 z.avail_in = prelen; in gz_uncompress() 770 in_tot = prelen; in gz_uncompress()
|
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | mt792x_acpi_sar.c | 82 int len, ret, sarlen, prelen, tblcnt; in mt792x_asar_acpi_read_mtds() local 94 prelen = sizeof(struct mt792x_asar_dyn); in mt792x_asar_acpi_read_mtds() 99 prelen = sizeof(struct mt792x_asar_dyn_v2); in mt792x_asar_acpi_read_mtds() 105 tblcnt = (len - prelen) / sarlen; in mt792x_asar_acpi_read_mtds() 117 int len, ret, sarlen, prelen, tblcnt; in mt792x_asar_acpi_read_mtgs() local 127 prelen = sizeof(struct mt792x_asar_geo); in mt792x_asar_acpi_read_mtgs() 131 prelen = sizeof(struct mt792x_asar_geo_v2); in mt792x_asar_acpi_read_mtgs() 137 tblcnt = (len - prelen) / sarlen; in mt792x_asar_acpi_read_mtgs()
|
/freebsd/contrib/libarchive/unzip/ |
H A D | bsdunzip.c | 249 size_t prelen, len; in pathcat() local 251 prelen = prefix ? strlen(prefix) + 1 : 0; in pathcat() 253 if ((str = malloc(prelen + len)) == NULL) { in pathcat() 258 memcpy(str, prefix, prelen); /* includes zero */ in pathcat() 259 str[prelen - 1] = '/'; /* splat zero */ in pathcat() 261 memcpy(str + prelen, path, len); /* includes zero */ in pathcat()
|
/freebsd/sys/contrib/openzfs/etc/systemd/system-generators/ |
H A D | zfs-mount-generator.c | 83 size_t prelen = strlen(prepend); in systemd_escape() local 84 char *ret = malloc(4 * len + prelen + applen + 1); in systemd_escape() 92 memcpy(ret, prepend, prelen); in systemd_escape() 93 char *out = ret + prelen; in systemd_escape()
|