Home
last modified time | relevance | path

Searched refs:gzf (Results 1 – 3 of 3) sorted by relevance

/openbsd/src/usr.sbin/smtpd/
Dcompress_gzip.c112 gzFile gzf; in compress_gzip_file() local
120 gzf = gzdopen(fileno(out), "wb"); in compress_gzip_file()
121 if (gzf == NULL) in compress_gzip_file()
125 if (gzwrite(gzf, ibuf, r) != r) in compress_gzip_file()
134 gzclose(gzf); in compress_gzip_file()
142 gzFile gzf; in uncompress_gzip_file() local
150 gzf = gzdopen(fileno(in), "r"); in uncompress_gzip_file()
151 if (gzf == NULL) in uncompress_gzip_file()
154 while ((r = gzread(gzf, obuf, sizeof(obuf))) > 0) { in uncompress_gzip_file()
158 if (!gzeof(gzf)) in uncompress_gzip_file()
[all …]
/openbsd/src/usr.bin/grep/
Dfile.c54 gzFile gzf; member
119 if ((f->gzf = gzdopen(fd, "r")) != NULL) in grep_fdopen()
171 return gzbin_file(f->gzf); in grep_bin_file()
197 return gzfgetln(f->gzf, l); in grep_fgetln()
219 gzclose(f->gzf); in grep_close()
/openbsd/src/libexec/spamd-setup/
Dspamd-setup.c468 add_blacklist(struct bl *bl, size_t *blc, size_t *bls, gzFile gzf, int white) in add_blacklist() argument
489 n = gzread(gzf, buf + bu, bs - bu); in add_blacklist()
698 gzFile gzf; in getlist() local
748 gzf = gzdopen(fd, "r"); in getlist()
749 if (gzf == NULL) in getlist()
753 bl = add_blacklist(bl, &blc, &bls, gzf, !black); in getlist()
755 gzclose(gzf); in getlist()