Symbol: zbuf
sbin/newfs_sysvbfs/newfs_sysvbfs.c
125
uint8_t zbuf[8192] = {0, };
sbin/newfs_sysvbfs/newfs_sysvbfs.c
142
size_t writenow = MIN(filesize, (off_t)sizeof(zbuf));
sbin/newfs_sysvbfs/newfs_sysvbfs.c
144
if ((size_t)write(fd, zbuf, writenow) != writenow) {
sbin/newfs_sysvbfs/newfs_sysvbfs.c
155
if (write(fd, zbuf, 1) != 1) {
sbin/newfs_v7fs/newfs_v7fs.c
158
uint8_t zbuf[8192] = {0, };
sbin/newfs_v7fs/newfs_v7fs.c
174
(off_t)sizeof(zbuf));
sbin/newfs_v7fs/newfs_v7fs.c
176
if ((size_t)write(fd, zbuf, writenow) !=
sbin/newfs_v7fs/newfs_v7fs.c
186
if (write(fd, zbuf, 1) != 1) {
sys/dev/stbi/stb_image.c
2282
__forceinline static int zget8(zbuf *z)
sys/dev/stbi/stb_image.c
2288
static void fill_bits(zbuf *z)
sys/dev/stbi/stb_image.c
2297
__forceinline static unsigned int zreceive(zbuf *z, int n)
sys/dev/stbi/stb_image.c
2307
__forceinline static int zhuffman_decode(zbuf *a, zhuffman *z)
sys/dev/stbi/stb_image.c
2334
static int expand(zbuf *z, int n) // need to make room for n bytes
sys/dev/stbi/stb_image.c
2365
static int parse_huffman_block(zbuf *a)
sys/dev/stbi/stb_image.c
2393
static int compute_huffman_codes(zbuf *a)
sys/dev/stbi/stb_image.c
2439
static int parse_uncompressed_block(zbuf *a)
sys/dev/stbi/stb_image.c
2468
static int parse_zlib_header(zbuf *a)
sys/dev/stbi/stb_image.c
2495
static int parse_zlib(zbuf *a, int parse_header)
sys/dev/stbi/stb_image.c
2526
static int do_zlib(zbuf *a, char *obuf, int olen, int exp, int parse_header)
sys/dev/stbi/stb_image.c
2538
zbuf *a;
sys/dev/stbi/stb_image.c
2566
zbuf *a;
sys/dev/stbi/stb_image.c
2589
zbuf *a;
sys/dev/stbi/stb_image.c
2606
zbuf *a;
sys/dev/stbi/stb_image.c
2628
zbuf *a;
sys/opencrypto/deflate.c
118
zbuf.next_out = buf[0].out;
sys/opencrypto/deflate.c
119
zbuf.avail_out = buf[0].size;
sys/opencrypto/deflate.c
121
error = decomp ? inflateInit2(&zbuf, window_inflate) :
sys/opencrypto/deflate.c
122
deflateInit2(&zbuf, Z_DEFAULT_COMPRESSION, Z_METHOD,
sys/opencrypto/deflate.c
128
error = decomp ? inflate(&zbuf, Z_SYNC_FLUSH) :
sys/opencrypto/deflate.c
129
deflate(&zbuf, Z_FINISH);
sys/opencrypto/deflate.c
142
&& zbuf.avail_in == 0 && zbuf.avail_out != 0)
sys/opencrypto/deflate.c
146
else if (zbuf.avail_out == 0) {
sys/opencrypto/deflate.c
154
zbuf.next_out = buf[i].out;
sys/opencrypto/deflate.c
155
zbuf.avail_out = buf[i].size = nextsize;
sys/opencrypto/deflate.c
160
result = count = zbuf.total_out;
sys/opencrypto/deflate.c
181
inflateEnd(&zbuf);
sys/opencrypto/deflate.c
183
deflateEnd(&zbuf);
sys/opencrypto/deflate.c
188
inflateEnd(&zbuf);
sys/opencrypto/deflate.c
190
deflateEnd(&zbuf);
sys/opencrypto/deflate.c
232
z_stream zbuf;
sys/opencrypto/deflate.c
242
memset(&zbuf, 0, sizeof(z_stream));
sys/opencrypto/deflate.c
243
zbuf.zalloc = ocf_zalloc;
sys/opencrypto/deflate.c
244
zbuf.zfree = ocf_zfree;
sys/opencrypto/deflate.c
245
zbuf.opaque = Z_NULL;
sys/opencrypto/deflate.c
256
zbuf.avail_in = size; /* Total length of data to be processed */
sys/opencrypto/deflate.c
257
zbuf.next_in = data; /* data that is going to be processed */
sys/opencrypto/deflate.c
298
zbuf.next_in = data + sizeof(gzip_header);
sys/opencrypto/deflate.c
301
zbuf.avail_in = size - sizeof(gzip_header) - GZIP_TAIL_SIZE;
sys/opencrypto/deflate.c
307
zbuf.next_out = buf[0].out;
sys/opencrypto/deflate.c
308
zbuf.avail_out = buf[0].size;
sys/opencrypto/deflate.c
310
zbuf.avail_in, zbuf.avail_out);
sys/opencrypto/deflate.c
313
error = decomp ? inflateInit2(&zbuf, window_inflate) :
sys/opencrypto/deflate.c
314
deflateInit2(&zbuf, Z_DEFAULT_COMPRESSION, Z_METHOD,
sys/opencrypto/deflate.c
323
zbuf.avail_in, zbuf.avail_out);
sys/opencrypto/deflate.c
324
error = decomp ? inflate(&zbuf, Z_SYNC_FLUSH) :
sys/opencrypto/deflate.c
325
deflate(&zbuf, Z_FINISH);
sys/opencrypto/deflate.c
327
zbuf.avail_in, zbuf.avail_out);
sys/opencrypto/deflate.c
336
&& zbuf.avail_in == 0 && zbuf.avail_out != 0)
sys/opencrypto/deflate.c
340
else if (zbuf.avail_out == 0) {
sys/opencrypto/deflate.c
348
zbuf.next_out = buf[i].out;
sys/opencrypto/deflate.c
349
zbuf.avail_out = buf[i].size = nextsize;
sys/opencrypto/deflate.c
355
count = result = zbuf.total_out;
sys/opencrypto/deflate.c
358
result = zbuf.total_out + sizeof(gzip_header) + GZIP_TAIL_SIZE;
sys/opencrypto/deflate.c
359
count = zbuf.total_out;
sys/opencrypto/deflate.c
369
inflateEnd(&zbuf);
sys/opencrypto/deflate.c
371
deflateEnd(&zbuf);
sys/opencrypto/deflate.c
422
inflateEnd(&zbuf);
sys/opencrypto/deflate.c
424
deflateEnd(&zbuf);
sys/opencrypto/deflate.c
86
z_stream zbuf;
sys/opencrypto/deflate.c
94
memset(&zbuf, 0, sizeof(z_stream));
sys/opencrypto/deflate.c
95
zbuf.next_in = data; /* data that is going to be processed */
sys/opencrypto/deflate.c
96
zbuf.zalloc = ocf_zalloc;
sys/opencrypto/deflate.c
97
zbuf.zfree = ocf_zfree;
sys/opencrypto/deflate.c
98
zbuf.opaque = Z_NULL;
sys/opencrypto/deflate.c
99
zbuf.avail_in = size; /* Total length of data to be processed */
usr.sbin/bad144/bad144.c
480
char *zbuf;
usr.sbin/bad144/bad144.c
482
zbuf = calloc(1, (unsigned int)dp->d_secsize);
usr.sbin/bad144/bad144.c
483
if (zbuf == NULL)
usr.sbin/bad144/bad144.c
486
free(zbuf);
usr.sbin/bad144/bad144.c
491
if (nflag == 0 && (size_t)write(f, zbuf, dp->d_secsize) != dp->d_secsize)
usr.sbin/bad144/bad144.c
494
free(zbuf);
usr.sbin/kgmon/kgmon.c
512
char *zbuf;
usr.sbin/kgmon/kgmon.c
535
if ((zbuf = malloc(biggest)) == NULL)
usr.sbin/kgmon/kgmon.c
537
(void)memset(zbuf, 0, biggest);
usr.sbin/kgmon/kgmon.c
539
if ((size_t)kvm_write(kvp->kd, (u_long)kvp->gpm.kcount, zbuf,
usr.sbin/kgmon/kgmon.c
543
if ((size_t)kvm_write(kvp->kd, (u_long)kvp->gpm.froms, zbuf,
usr.sbin/kgmon/kgmon.c
547
if ((size_t)kvm_write(kvp->kd, (u_long)kvp->gpm.tos, zbuf,
usr.sbin/kgmon/kgmon.c
550
free(zbuf);
usr.sbin/kgmon/kgmon.c
555
if (sysctl(mib, miblen, NULL, NULL, zbuf, (size_t)kvp->gpm.kcountsize) < 0)
usr.sbin/kgmon/kgmon.c
558
if (sysctl(mib, miblen, NULL, NULL, zbuf, (size_t)kvp->gpm.fromssize) < 0)
usr.sbin/kgmon/kgmon.c
561
if (sysctl(mib, miblen, NULL, NULL, zbuf, (size_t)kvp->gpm.tossize) < 0)
usr.sbin/kgmon/kgmon.c
564
free(zbuf);