FreeBSD/contrib/openbsm/libbsm/bsm_class.c
/*
 * audit_class processing is complete; close any open files.
 */
audit_class processing is complete; close any open files.
audit_class processing is complete ; close any open files .
void
endauclass(void)
{
#ifdef HAVE_PTHREAD_MUTEX_LOCK
	pthread_mutex_lock(&mutex);
#endif
	if (fp != NULL) {
		fclose(fp);
		fp = NULL;
	}
#ifdef HAVE_PTHREAD_MUTEX_LOCK
	pthread_mutex_unlock(&mutex);
#endif
}
void endauclass ( void ) { #ifdef HAVE_PTHREAD_MUTEX_LOCK pthread_mutex_lock ( & mutex ) ; #endif if ( fp != NULL ) { fclose ( fp ) ; fp = NULL ; } #ifdef HAVE_PTHREAD_MUTEX_LOCK pthread_mutex_unlock ( & mutex ) ; #endif }
audit_class processing is complete; close any open files.
audit_class processing is complete ; close any open files .