--- embedaddon/lighttpd/src/log.h 2013/10/14 10:32:47 1.1.1.1 +++ embedaddon/lighttpd/src/log.h 2016/11/02 10:35:00 1.1.1.3 @@ -1,14 +1,18 @@ #ifndef _LOG_H_ #define _LOG_H_ +#include "first.h" #include "server.h" +struct timespec; /* declaration */ +int log_clock_gettime_realtime (struct timespec *ts); + +ssize_t write_all(int fd, const void* buf, size_t count); + /* Close fd and _try_ to get a /dev/null for it instead. * Returns 0 on success and -1 on failure (fd gets closed in all cases) */ int openDevNull(int fd); - -#define WP() log_error_write(srv, __FILE__, __LINE__, ""); int open_logfile_or_pipe(server *srv, const char* logfile);