Mark Andrews
cbdd3a318b
update lib copyrights
2004-03-06 08:15:48 +00:00
Mark Andrews
15e09f18c6
1544. [bug] Named would logged a single entry to a file despite it
...
being over the specified size limit.
1543. [bug] Logging using "versions unlimited" did not work.
2004-03-03 05:35:00 +00:00
Mark Andrews
1ed28495fe
sync against trunc
2003-10-07 03:28:41 +00:00
Mark Andrews
dd8e7329b1
pullup:
...
1458. [cleanup] sprintf() -> snprintf().
2003-08-27 07:22:41 +00:00
Mark Andrews
05e00f411b
pullup:
...
add a new log module, timer
2003-08-21 02:02:04 +00:00
Mark Andrews
f87cbb4806
dd "interface" module
2003-08-15 04:02:46 +00:00
Mark Andrews
9052beb238
pullup
...
Check return values or cast them to (void), as required by the coding
standards; add exceptions to the coding standards for cases where this is
not desirable
2003-08-11 05:28:23 +00:00
Mark Andrews
2bb8b924b9
1135. [func] You can now override the default syslog() facility for
...
named/lwresd at compile time. [RT #1982 ]
2003-08-08 04:24:41 +00:00
Mark Andrews
f4d86cfcea
update_copyrights
2003-07-22 04:03:54 +00:00
Mark Andrews
df64d9f473
workaround missing stat macro
2003-05-20 07:35:49 +00:00
Mark Andrews
064516e76a
pullup:
...
1389. [bug] named could fail to rotate long log files. [RT #3666 ]
2003-05-12 05:29:24 +00:00
Mark Andrews
b33cab0cdc
reviewed: bwelling
...
1316. [bug] isc_log_closefilelogs() needed to lock the log
context.
2002-07-11 03:39:06 +00:00
Mark Andrews
90656e32ea
reviewed: bwelling
...
1315. [bug] isc_log_setdebuglevel() needed to lock the log
context.
2002-07-11 02:32:35 +00:00
Mark Andrews
73d7583d98
update copyrights
2002-02-08 03:57:47 +00:00
Andreas Gustafsson
e47a6956a1
pullup:
...
1173. [bug] Potential memory leaks in isc_log_create() and
isc_log_settag(). [RT #2336 ]
2002-01-23 01:31:15 +00:00
Andreas Gustafsson
7ee450d5f6
pullup:
...
972. [bug] The file modification time code in zone.c was using the
wrong epoch. [RT #1667 ]
(This pullup includes not only the changes to zone.c, but all the
recent epoch-related fixes)
2001-09-05 00:38:13 +00:00
Andreas Gustafsson
76c8294c81
format string bugs and improved format string checking [RT #1578 ]
2001-08-08 22:54:55 +00:00
Danny Mayer
c4958494a9
Updates to support LIBISC_EXTERNAL_DATA and misc. cleanup
2001-07-12 05:58:28 +00:00
Danny Mayer
53bc020d74
modified to use isc_file_rename instead of rename
2001-06-27 04:37:11 +00:00
David Lawrence
eda73d8aad
redo 1.64 "potential null pointer dereference" more consistent with the style
...
of the function and file (i.e., not returning from the middle of a function)
2001-06-10 17:06:45 +00:00
Mark Andrews
4585aeb2cc
866. [func] Close debug only file channels when debug is set to
...
zero. [RT #1246 ]
2001-06-08 02:57:13 +00:00
David Lawrence
92ef1a9b9d
use ISC_MAGIC for all magic numbers, for our friends in EBCDIC land
2001-06-04 19:33:39 +00:00
Brian Wellington
9547c4a3f8
potential null pointer dereference
2001-05-29 22:35:54 +00:00
Mark Andrews
097dc0a693
add sys/types.h for FreeBSD 2.1
2001-05-18 03:02:45 +00:00
Andreas Gustafsson
1ed0723a1f
a pointer argument used to return an "int" value into an "int"
...
variable is better defined as "int *" than "unsigned int *"
2001-04-28 01:08:07 +00:00
David Lawrence
2b5f436aeb
Make greatest_version() return an isc_result_t, which it should have
...
been doing all along since there was the possibility isc_dir_open() would
fail and overloading the return value of "0" was bad practice.
If isc_dir_open() fails in greatest_version(), make sure the path separator
is restored to the destination pathname if it was NULified before returning
the error.
The underlying problem of isc_log_open() not having the bad result of
isc_dir_open() reported anywhere will be slightly mediate by a change
to bin/named/logconf.c to test the directory. lib/isc/log.c can't really
handle it because it has no idea to where such an error should be reported,
and it only shows up during isc_log_open() as part of the isc_log_write()
family of calls, which are all void.
2001-04-25 23:59:44 +00:00
David Lawrence
6f053cd485
use ISC_TF() to set an isc_boolean_t
2001-04-12 21:04:14 +00:00
David Lawrence
2a86ee1f54
simplify the test about whether to roll; one expression was redundant
2001-03-28 05:48:16 +00:00
David Lawrence
9027e1bcf1
796. [func] When a size limit is associated with a log file,
...
only roll it when the size is reached, not every
time the log file is opened. [RT #1096 ]
2001-03-28 04:16:32 +00:00
Mark Andrews
df0f58959e
752. [func] Correct bad tv_usec elements returned by gettimeofday().
2001-02-23 23:12:28 +00:00
Brian Wellington
499b34cea0
copyright update
2001-01-09 22:01:04 +00:00
David Lawrence
f8da2d9583
634. [bug] A log file will completely stop being written when
...
it reaches the maximum size in all cases, not just
when versioning is also enabled. [RT #570 ]
2000-12-23 19:23:48 +00:00
David Lawrence
b74896ead5
599. [func] Added four new functions to the libisc log API to
...
support i18n messages. isc_log_iwrite(),
isc_log_ivwrite(), isc_log_iwrite1() and
isc_log_ivwrite1() were added.
(The log.h/log.c changes were just minor formatting changes.)
2000-12-12 05:29:33 +00:00
Andreas Gustafsson
fc6f5743aa
use isc_log_iwrite() for localized logging,
...
to keep backwards compatibility
2000-12-12 00:18:01 +00:00
Mark Andrews
6fda157766
ISC_LINK_*UNSAFE -> ISC_LINK_INITAND*
2000-12-07 20:15:58 +00:00
David Lawrence
b161f87be8
Updated API to support i18n message arguments to isc_log_{,v}write{,1}.
...
Provided isc_log_i{,v}write{,1}, with appropriate macro substitutions,
for files that are not yet converted to the new API. When everything
is converted, the added functions will be removed.
2000-12-07 19:30:28 +00:00
David Lawrence
9cd6d409b7
first pass at using isc_msgcat_get for message strings in libisc
2000-12-06 00:30:32 +00:00
Mark Andrews
8a0ff6c15c
576. [doc] isc_log_create() description did not match reality.
...
575. [bug] isc_log_create() was not setting internal state
correctly to reflect the default channels created.
2000-11-24 01:37:26 +00:00
Mark Andrews
5e589b5356
Uninitalised link fixes, batch 1.
2000-10-20 02:21:58 +00:00
Brian Wellington
df03463a37
Allow *_log_setcontext() to be called multiple times, so that *_lctx
...
can be set to NULL once the log context has been freed.
2000-09-26 22:10:44 +00:00
Brian Wellington
4b809ba346
415. [bug] The logging code leaked file descriptors.
2000-08-31 20:58:15 +00:00
Brian Wellington
6714319d0f
Add a DESTROYLOCK macro to wrap isc_mutex_destroy()
2000-08-26 01:23:17 +00:00
Brian Wellington
d07ef64ed1
#include <time.h>
2000-08-24 23:22:40 +00:00
Andreas Gustafsson
dcfbc7c73e
do not clear lctx->buffer before it is has been locked
2000-08-24 18:21:40 +00:00
David Lawrence
40f53fa8d9
Trailing whitespace trimmed. Perhaps running "perl util/spacewhack.pl in your
...
own CVS tree will help minimize CVS conflicts. Maybe not.
Blame Graff for getting me to trim all trailing whitespace.
2000-08-01 01:33:37 +00:00
David Lawrence
15a4474541
word wrap copyright notice at column 70
2000-07-27 09:55:03 +00:00
Andreas Gustafsson
4532e9e7c6
in isc_log_wouldlog(), deal with the possibility of lctx
...
being NULL
2000-07-13 02:28:18 +00:00
Andreas Gustafsson
30576c592b
330. [func] New function isc_log_wouldlog().
2000-07-13 00:19:02 +00:00
David Lawrence
c244584cad
276. [bug] isc_log_categorybyname() and isc_log_modulebyname()
...
would fail to find the first member of any category
or module array apart from the internal defaults.
Thus, for example, the "notify" category was improperly
configured by named.
This resolves RT #132 , "Logging channels definition problems."
2000-06-23 17:52:20 +00:00
Brian Wellington
ac37a32d23
If isc_log_settag() was used to set a non-NULL tag, the allocated memory
...
was never freed.
2000-06-02 18:15:45 +00:00