1 |
|
/* |
2 |
< |
* ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd). |
3 |
< |
* log.c: Logger functions. |
2 |
> |
* ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd) |
3 |
|
* |
4 |
< |
* Copyright (C) 2002 by the past and present ircd coders, and others. |
4 |
> |
* Copyright (c) 1997-2014 ircd-hybrid development team |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
17 |
|
* along with this program; if not, write to the Free Software |
18 |
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
19 |
|
* USA |
21 |
– |
* |
22 |
– |
* $Id$ |
20 |
|
*/ |
21 |
|
|
22 |
< |
#include "stdinc.h" |
22 |
> |
/*! \file log.c |
23 |
> |
* \brief Logger functions. |
24 |
> |
* \version $Id$ |
25 |
> |
*/ |
26 |
|
|
27 |
+ |
#include "stdinc.h" |
28 |
|
#include "log.h" |
29 |
|
#include "irc_string.h" |
30 |
|
#include "ircd.h" |
32 |
|
#include "s_misc.h" |
33 |
|
|
34 |
|
|
35 |
< |
static struct { |
35 |
> |
static struct |
36 |
> |
{ |
37 |
|
char path[HYB_PATH_MAX + 1]; |
38 |
|
size_t size; |
39 |
|
FILE *file; |
91 |
|
return (size_t)sb.st_size > log_type_table[type].size; |
92 |
|
} |
93 |
|
|
94 |
< |
static void |
94 |
> |
static void |
95 |
|
log_write(enum log_type type, const char *message) |
96 |
|
{ |
97 |
|
char buf[IRCD_BUFSIZE]; |