xref: /onnv-gate/usr/src/lib/libldap4/ber/i18n.c (revision 3857:21b9b714e4ab)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  *
3*3857Sstevel  * Portions Copyright 1998 Sun Microsystems, Inc.  All rights reserved.
4*3857Sstevel  * Use is subject to license terms.
50Sstevel@tonic-gate  *
60Sstevel@tonic-gate  */
70Sstevel@tonic-gate 
80Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
90Sstevel@tonic-gate 
100Sstevel@tonic-gate #include <nl_types.h>
110Sstevel@tonic-gate /* #include <lthread.h> */
120Sstevel@tonic-gate #include <pthread.h>
130Sstevel@tonic-gate #include <thread.h>
140Sstevel@tonic-gate 
150Sstevel@tonic-gate nl_catd slapdcat = 0;
160Sstevel@tonic-gate int     notdone = 1;
170Sstevel@tonic-gate static pthread_mutex_t log_mutex;
180Sstevel@tonic-gate pthread_mutex_t systime_mutex;
190Sstevel@tonic-gate 
i18n_catopen(char * name)200Sstevel@tonic-gate void i18n_catopen(char * name)
210Sstevel@tonic-gate {
220Sstevel@tonic-gate 	if ( notdone ) {
230Sstevel@tonic-gate 		notdone = 0;
240Sstevel@tonic-gate 		slapdcat = catopen(name, NL_CAT_LOCALE);
250Sstevel@tonic-gate 	} /* end if */
260Sstevel@tonic-gate }
270Sstevel@tonic-gate 
28