/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <stdlib.h>
#include <nl_types.h>
#include <limits.h>
#include <stdarg.h>
#include <string.h>
#include <syslog.h>
#include <portable.h>
/* #include <lthread.h> */
#include <pthread.h>
#include <thread.h>
#include "log.h"
static int syslogopen = 0;
typedef struct _logctx {
char *logfile;
int syslogopen;
int logsize;
int log_debug;
int log_syslog;
} LogCtx;
void
{
}
void
{
logsize = 0;
}
void
{
syslogopen = 1;
}
void
{
}
LogCtx *
{
return (NULL);
return (NULL);
}
return (returnCtx);
}
/*VARARGS*/
void
{
int i;
return;
if (level == LDAP_DEBUG_ANY) {
/*
* this message is probably an error message, send it to syslog
*/
if (syslogopen) {
} /* end if */
/* and sent it also on stderr */
} /* end if */
/*
* check that the log file is not already too big
*/
for (i = 9; i > 1; i--) {
} /* end for */
if (logfd) {
} /* end if */
} /* end if */
/*
* send the message into a regular log file
*/
if (!logfd) {
} /* end if */
/*
* finally write the message into the log file
*/
if (logfd) {
if (logtime) {
} /* end if */
} /* end if */
} /* end if */
}