Searched refs:returnCtx (Results 1 - 2 of 2) sorted by relevance

/osnet-11/usr/src/lib/libldap4/util/
H A Dlog.c80 LogCtx *returnCtx = NULL; local
82 if ((returnCtx = (LogCtx *)malloc(sizeof (LogCtx))) == NULL)
84 if ((returnCtx->logfile = strdup(name)) == NULL) {
85 free(returnCtx);
88 openlog(returnCtx->logfile, OPENLOG_OPTIONS, facility);
89 returnCtx->syslogopen = 1;
90 pthread_mutex_init(&(returnCtx->log_mutex), NULL);
91 returnCtx->log_debug = debug_level;
92 returnCtx->log_syslog = syslog_level;
93 return (returnCtx);
[all...]
/osnet-11/usr/src/lib/libldap5/sources/ldap/util/
H A Dlog.c80 LogCtx *returnCtx = NULL; local
82 if ((returnCtx = (LogCtx *)malloc(sizeof (LogCtx))) == NULL)
84 if ((returnCtx->logfile = strdup(name)) == NULL) {
85 free(returnCtx);
88 openlog(returnCtx->logfile, OPENLOG_OPTIONS, facility);
89 returnCtx->syslogopen = 1;
90 pthread_mutex_init(&(returnCtx->log_mutex), NULL);
91 returnCtx->log_debug = debug_level;
92 returnCtx->log_syslog = syslog_level;
93 return (returnCtx);
[all...]

Completed in 22 milliseconds