blob: 0a9e1e421b1e3a142fd7b34001547e89b96b6ce3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* ISC license. */
#include <pthread.h>
#include <nsss/grp-switch.h>
#include "nsss-switch-internal.h"
void nsss_switch_endgrent (void)
{
pthread_mutex_lock(&nsss_switch_enumerator_mutex) ;
nsss_switch_grp_end(&nsss_switch_enumerator, 0, 0) ;
nsss_switch_end(&nsss_switch_enumerator, NSSS_SWITCH_GRP) ;
pthread_mutex_unlock(&nsss_switch_enumerator_mutex) ;
}
|