7 ssize_t
write_all(int fd
, const void* buf
, size_t count
);
9 /* Close fd and _try_ to get a /dev/null for it instead.
10 * Returns 0 on success and -1 on failure (fd gets closed in all cases)
12 int openDevNull(int fd
);
14 int open_logfile_or_pipe(server
*srv
, const char* logfile
);
16 int log_error_open(server
*srv
);
17 int log_error_close(server
*srv
);
18 int log_error_write(server
*srv
, const char *filename
, unsigned int line
, const char *fmt
, ...);
19 int log_error_write_multiline_buffer(server
*srv
, const char *filename
, unsigned int line
, buffer
*multiline
, const char *fmt
, ...);
20 int log_error_cycle(server
*srv
);