X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2Fcommon.h;h=92ba2daa13d65f27cdf97fe332c48c8ee3ef5108;hb=0472c6bc43d9d94eac966f2484169581641b2fca;hp=210f23ac4834baa516d8b707025ca956e93e3083;hpb=e78d72697e53d276737fae8519c921c70f0709f7;p=ypp-sc-tools.db-live.git diff --git a/pctb/common.h b/pctb/common.h index 210f23a..92ba2da 100644 --- a/pctb/common.h +++ b/pctb/common.h @@ -41,9 +41,12 @@ #include #include #include -#include #include +#include + +#include +#include #include #include @@ -133,7 +136,7 @@ void fatal(const char *fmt, ...) FMT(1,2) NORET; void sysassert_fail(const char *file, int line, const char *what) __attribute__((noreturn)); -void waitpid_check_exitstatus(pid_t pid, const char *what); +void waitpid_check_exitstatus(pid_t pid, const char *what, int sigpipeok); void *mmalloc(size_t sz); @@ -145,7 +148,8 @@ void dbfile_assertfail(const char *file, int line, const char *m) NORET; FILE *dbfile; void dbfile_getsline(char *lbuf, size_t lbufsz, const char *file, int line); -int dbfile_open(const char *tpath); /* 0: ENOENT; 1: worked */ +int dbfile_open(const char *tpath); /* 0: ENOENT; 1: worked */ +int dbfile_gzopen(const char *tpath); /* 0: ENOENT; 1: worked */ void dbfile_close(void); /* idempotent */ int dbfile_scanf(const char *fmt, ...) SCANFMT(1,2);