summaryrefslogtreecommitdiff
path: root/usr/src/lib/libldap4/ber/i18n.c
blob: 04170c17ab36a6215ca605f55f293834a52da05f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 *
 * Portions Copyright 1998 Sun Microsystems, Inc.  All rights reserved.
 * Use is subject to license terms.
 *
 */

#pragma ident	"%Z%%M%	%I%	%E% SMI"

#include <nl_types.h>
/* #include <lthread.h> */
#include <pthread.h>
#include <thread.h>

nl_catd slapdcat = 0;
int     notdone = 1;
static pthread_mutex_t log_mutex;
pthread_mutex_t systime_mutex;

void i18n_catopen(char * name)
{
	if ( notdone ) {
		notdone = 0;
		slapdcat = catopen(name, NL_CAT_LOCALE);
	} /* end if */
}