36 static pthread_mutex_t
mutex = PTHREAD_MUTEX_INITIALIZER;
78 time_t t = time(NULL);
91 snprintf(ipbuf,
sizeof (ipbuf),
"%s",
STRNULL(
ip,
"0.0.0.0"));
100 if ((p->
name == NULL) || (strlen(p->
name) == 0))
104 log_printf(&logt,
"%10ld %-12s ADDR=(%s) CLASS=(%s) MIME=(%s) %s\n",
105 (
long) t,
id, ipbuf, serror,
#define MUTEX_UNLOCK(mutex)
bool log_open(LOG_T *, char *)
#define MUTEX_LOCK(mutex)
bool log_printf(LOG_T *, char *,...)
#define CF_XFILES_LOG_FILE
char * cf_get_str(int id)
bool log_attached_files(char *id, char *ip, attachment_T *files)
bool log_attached_files_reopen()
struct attachment_T * next
#define ADJUST_LOG_NAME(path, fname, dir, defval)