Lines Matching defs:gid2sid_winname
169 pid2sid_winname_cache_t gid2sid_winname;
314 avl_create(&idmap_cache.gid2sid_winname.tree,
317 (void) pthread_mutex_init(&idmap_cache.gid2sid_winname.mutex, NULL);
318 idmap_cache.gid2sid_winname.head.flink =
319 &idmap_cache.gid2sid_winname.head;
320 idmap_cache.gid2sid_winname.head.blink =
321 &idmap_cache.gid2sid_winname.head;
322 idmap_cache.gid2sid_winname.prev = NULL;
323 idmap_cache.gid2sid_winname.purge_time = 0;
324 idmap_cache.gid2sid_winname.sid_num = 0;
325 idmap_cache.gid2sid_winname.winname_num = 0;
347 pid2sid_winname_t *gid2sid_winname;
397 (void) pthread_mutex_lock(&idmap_cache.gid2sid_winname.mutex);
399 while ((gid2sid_winname = avl_destroy_nodes(
400 &idmap_cache.gid2sid_winname.tree, &cookie)) != NULL) {
401 free((char *)gid2sid_winname->sid_prefix);
402 free((char *)gid2sid_winname->winname);
403 if (gid2sid_winname->windomain != NULL)
404 free((char *)gid2sid_winname->windomain);
405 free(gid2sid_winname);
407 avl_destroy(&idmap_cache.gid2sid_winname.tree);
408 avl_create(&idmap_cache.gid2sid_winname.tree,
411 idmap_cache.gid2sid_winname.head.flink =
412 &idmap_cache.gid2sid_winname.head;
413 idmap_cache.gid2sid_winname.head.blink =
414 &idmap_cache.gid2sid_winname.head;
415 idmap_cache.gid2sid_winname.prev = NULL;
416 idmap_cache.gid2sid_winname.purge_time = 0;
417 idmap_cache.gid2sid_winname.sid_num = 0;
418 idmap_cache.gid2sid_winname.winname_num = 0;
419 (void) pthread_mutex_unlock(&idmap_cache.gid2sid_winname.mutex);
464 (void) pthread_mutex_lock(&idmap_cache.gid2sid_winname.mutex);
465 *sidbygid = idmap_cache.gid2sid_winname.sid_num;
466 *winnamebygid = idmap_cache.gid2sid_winname.winname_num;
467 (void) pthread_mutex_unlock(&idmap_cache.gid2sid_winname.mutex);
620 (void) pthread_mutex_lock(&idmap_cache.gid2sid_winname.mutex);
622 result = avl_find(&idmap_cache.gid2sid_winname.tree, &entry, &where);
624 list_move(&idmap_cache.gid2sid_winname.head, result);
635 (void) pthread_mutex_unlock(&idmap_cache.gid2sid_winname.mutex);
697 (void) pthread_mutex_lock(&idmap_cache.gid2sid_winname.mutex);
699 result = avl_find(&idmap_cache.gid2sid_winname.tree, &entry, &where);
701 list_move(&idmap_cache.gid2sid_winname.head, result);
725 (void) pthread_mutex_unlock(&idmap_cache.gid2sid_winname.mutex);
968 (void) pthread_mutex_lock(&idmap_cache.gid2sid_winname.mutex);
969 result = avl_find(&idmap_cache.gid2sid_winname.tree, &find,
976 idmap_cache.gid2sid_winname.sid_num++;
994 idmap_cache.gid2sid_winname.sid_num++;
996 list_insert(&idmap_cache.gid2sid_winname.head, new);
997 avl_insert(&idmap_cache.gid2sid_winname.tree, new,
1000 if ((avl_numnodes(&idmap_cache.gid2sid_winname.tree) >
1002 (idmap_cache.gid2sid_winname.purge_time +
1005 &idmap_cache.gid2sid_winname,
1009 (void) pthread_mutex_unlock(&idmap_cache.gid2sid_winname.mutex);
1144 &idmap_cache.gid2sid_winname.mutex);
1145 result = avl_find(&idmap_cache.gid2sid_winname.tree,
1153 idmap_cache.gid2sid_winname.sid_num++;
1170 idmap_cache.gid2sid_winname.sid_num++;
1172 list_insert(&idmap_cache.gid2sid_winname.head,
1174 avl_insert(&idmap_cache.gid2sid_winname.tree,
1177 if ((avl_numnodes(&idmap_cache.gid2sid_winname.tree) >
1179 (idmap_cache.gid2sid_winname.purge_time +
1182 &idmap_cache.gid2sid_winname,
1186 &idmap_cache.gid2sid_winname.mutex);
1397 (void) pthread_mutex_lock(&idmap_cache.gid2sid_winname.mutex);
1398 result = avl_find(&idmap_cache.gid2sid_winname.tree, &find,
1407 idmap_cache.gid2sid_winname.winname_num++;
1433 idmap_cache.gid2sid_winname.winname_num ++;
1435 list_insert(&idmap_cache.gid2sid_winname.head, new);
1436 avl_insert(&idmap_cache.gid2sid_winname.tree, new,
1439 if ((avl_numnodes(&idmap_cache.gid2sid_winname.tree) >
1441 (idmap_cache.gid2sid_winname.purge_time +
1444 &idmap_cache.gid2sid_winname,
1447 (void) pthread_mutex_unlock(&idmap_cache.gid2sid_winname.mutex);