1*0Sstevel@tonic-gate /* 2*0Sstevel@tonic-gate * 3*0Sstevel@tonic-gate * Portions Copyright %G% Sun Microsystems, Inc. 4*0Sstevel@tonic-gate * All Rights Reserved 5*0Sstevel@tonic-gate * 6*0Sstevel@tonic-gate */ 7*0Sstevel@tonic-gate 8*0Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 9*0Sstevel@tonic-gate 10*0Sstevel@tonic-gate #include <nl_types.h> 11*0Sstevel@tonic-gate /* #include <lthread.h> */ 12*0Sstevel@tonic-gate #include <pthread.h> 13*0Sstevel@tonic-gate #include <thread.h> 14*0Sstevel@tonic-gate 15*0Sstevel@tonic-gate nl_catd slapdcat = 0; 16*0Sstevel@tonic-gate int notdone = 1; 17*0Sstevel@tonic-gate static pthread_mutex_t log_mutex; 18*0Sstevel@tonic-gate pthread_mutex_t systime_mutex; 19*0Sstevel@tonic-gate 20*0Sstevel@tonic-gate void i18n_catopen(char * name) 21*0Sstevel@tonic-gate { 22*0Sstevel@tonic-gate if ( notdone ) { 23*0Sstevel@tonic-gate notdone = 0; 24*0Sstevel@tonic-gate slapdcat = catopen(name, NL_CAT_LOCALE); 25*0Sstevel@tonic-gate } /* end if */ 26*0Sstevel@tonic-gate } 27*0Sstevel@tonic-gate 28