File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / src / log.h
Revision 1.1.1.3 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Nov 2 10:35:00 2016 UTC (7 years, 7 months ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_41p8, HEAD
lighttpd 1.4.41

    1: #ifndef _LOG_H_
    2: #define _LOG_H_
    3: #include "first.h"
    4: 
    5: #include "server.h"
    6: 
    7: struct timespec; /* declaration */
    8: int log_clock_gettime_realtime (struct timespec *ts);
    9: 
   10: ssize_t write_all(int fd, const void* buf, size_t count);
   11: 
   12: /* Close fd and _try_ to get a /dev/null for it instead.
   13:  * Returns 0 on success and -1 on failure (fd gets closed in all cases)
   14:  */
   15: int openDevNull(int fd);
   16: 
   17: int open_logfile_or_pipe(server *srv, const char* logfile);
   18: 
   19: int log_error_open(server *srv);
   20: int log_error_close(server *srv);
   21: int log_error_write(server *srv, const char *filename, unsigned int line, const char *fmt, ...);
   22: int log_error_write_multiline_buffer(server *srv, const char *filename, unsigned int line, buffer *multiline, const char *fmt, ...);
   23: int log_error_cycle(server *srv);
   24: 
   25: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>