X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2Fcommon.h;h=1fb7e119992485ecc52cde711ff786850a82fcc0;hb=817c4b56d7b72dbb9dcce70d0e22f57d8f687ba0;hp=699d1619d0099962a48b7adc5161f46b4e5ef557;hpb=61e9f852b6991232730eee7b73798b3afcf321b2;p=ypp-sc-tools.main.git diff --git a/pctb/common.h b/pctb/common.h index 699d161..1fb7e11 100644 --- a/pctb/common.h +++ b/pctb/common.h @@ -156,6 +156,11 @@ void dbfile_close(void); /* idempotent */ int dbfile_scanf(const char *fmt, ...) SCANFMT(1,2); int dbfile_vscanf(const char *fmt, va_list al) SCANFMT(1,0); +int gzopen(const char *zpath, int oflags, FILE **f_r, pid_t *pid_r, + const char *gziplevel /* 0 for read; may be 0, or "-1" etc. */); + /* returns errno value from open */ +void gzclose(FILE **f, pid_t *p, const char *what); + /* also OK with f==0, or p==-1 */ char *masprintf(const char *fmt, ...) FMT(1,2);