summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/log.h
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2005-12-03 01:45:34 +0000
committerNoriko Hosoi <nhosoi@redhat.com>2005-12-03 01:45:34 +0000
commitecdb1a0959caef1aa3a92c8e39f99e4c39cb8b12 (patch)
tree664860ae5bd42e1383c4a243dbe729de7829a2cf /ldap/servers/slapd/log.h
parent4d975378bc871c605f0a7d83e341e5772c75b0df (diff)
downloadds-ecdb1a0959caef1aa3a92c8e39f99e4c39cb8b12.tar.gz
ds-ecdb1a0959caef1aa3a92c8e39f99e4c39cb8b12.tar.xz
ds-ecdb1a0959caef1aa3a92c8e39f99e4c39cb8b12.zip
[173931] Error logs not deleted
When reading a rotation info file, compare the contents with the files in the logs dir, if mismatch is found, update the rotation info file. Once the files arestored in the rotation info file, they will be the target of cleanup at the nextlog ration.
Diffstat (limited to 'ldap/servers/slapd/log.h')
-rw-r--r--ldap/servers/slapd/log.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ldap/servers/slapd/log.h b/ldap/servers/slapd/log.h
index 5082184e..1b40fcc9 100644
--- a/ldap/servers/slapd/log.h
+++ b/ldap/servers/slapd/log.h
@@ -43,6 +43,8 @@
*
*************************************************************************/
#include <stdio.h>
+#define _XOPEN_SOURCE /* glibc2 needs this */
+#define __USE_XOPEN
#include <time.h>
#include <stdarg.h>
#include <sys/types.h>
@@ -69,6 +71,7 @@
#define LOG_EXCEEDED 2 /*err: > max logs allowed */
#define LOG_ROTATE 3 /*ok; go to the next log */
#define LOG_UNABLE_TO_OPENFILE 4
+#define LOG_DONE 5
#define LOG_UNIT_UNKNOWN 0
#define LOG_UNIT_MONTHS 1
@@ -91,6 +94,8 @@
#define LOG_BUFFER_MAXSIZE 512 * 1024
+#define PREVLOGFILE "Previous Log File:"
+
/* see log.c for why this is done */
#ifdef XP_WIN32
typedef FILE *LOGFD;