Lines Matching defs:returnCtx
80 LogCtx *returnCtx = NULL;
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);