Lines Matching refs:result

481 	sid2uid_gid_t	*result;
491 result = avl_find(&idmap_cache.sid2uid_gid.tree, &entry, &where);
492 if (result != NULL) {
493 list_move(&idmap_cache.sid2uid_gid.head, result);
494 if (result->uid != UNDEF_UID && result->uid_ttl > now) {
495 *uid = result->uid;
512 sid2uid_gid_t *result;
522 result = avl_find(&idmap_cache.sid2uid_gid.tree, &entry, &where);
523 if (result != NULL) {
524 list_move(&idmap_cache.sid2uid_gid.head, result);
525 if (result->gid != UNDEF_GID && result->gid_ttl > now) {
526 *gid = result->gid;
544 sid2uid_gid_t *result;
554 result = avl_find(&idmap_cache.sid2uid_gid.tree, &entry, &where);
555 if (result != NULL) {
556 list_move(&idmap_cache.sid2uid_gid.head, result);
557 if (result->is_user != UNDEF_ISUSER) {
558 *is_user = result->is_user;
559 if (result->is_user && result->uid_ttl > now) {
560 *pid = result->uid;
562 } else if (!result->is_user && result->gid_ttl > now) {
563 *pid = result->gid;
581 pid2sid_winname_t *result;
590 result = avl_find(&idmap_cache.uid2sid_winname.tree, &entry, &where);
591 if (result != NULL) {
592 list_move(&idmap_cache.uid2sid_winname.head, result);
593 if (result->sid_ttl > now) {
594 *rid = result->rid;
595 *sid_prefix = strdup(result->sid_prefix);
613 pid2sid_winname_t *result;
622 result = avl_find(&idmap_cache.gid2sid_winname.tree, &entry, &where);
623 if (result != NULL) {
624 list_move(&idmap_cache.gid2sid_winname.head, result);
625 if (result->sid_ttl > now) {
626 *rid = result->rid;
627 *sid_prefix = strdup(result->sid_prefix);
645 pid2sid_winname_t *result;
654 result = avl_find(&idmap_cache.uid2sid_winname.tree, &entry, &where);
655 if (result != NULL) {
656 list_move(&idmap_cache.uid2sid_winname.head, result);
657 if (result->winname_ttl > now) {
658 *name = strdup(result->winname);
661 if (result->windomain != NULL) {
663 strdup(result->windomain);
690 pid2sid_winname_t *result;
699 result = avl_find(&idmap_cache.gid2sid_winname.tree, &entry, &where);
700 if (result != NULL) {
701 list_move(&idmap_cache.gid2sid_winname.head, result);
702 if (result->winname_ttl > now) {
703 *name = strdup(result->winname);
706 if (result->windomain != NULL) {
708 strdup(result->windomain);
736 winname2uid_gid_t *result;
746 result = avl_find(&idmap_cache.winname2uid_gid.tree, &entry, &where);
747 if (result != NULL) {
748 list_move(&idmap_cache.winname2uid_gid.head, result);
749 if (result->uid != UNDEF_UID && result->uid_ttl > now) {
750 *uid = result->uid;
766 winname2uid_gid_t *result;
776 result = avl_find(&idmap_cache.winname2uid_gid.tree, &entry, &where);
777 if (result != NULL) {
778 list_move(&idmap_cache.winname2uid_gid.head, result);
779 if (result->gid != UNDEF_GID && result->gid_ttl > now) {
780 *gid = result->gid;
803 sid2uid_gid_t *result;
810 result = avl_find(&idmap_cache.sid2uid_gid.tree, &find, &where);
812 if (result) {
813 if (result->uid_ttl == 0)
815 result->uid = uid;
816 result->uid_ttl = ttl;
851 pid2sid_winname_t *result;
857 result = avl_find(&idmap_cache.uid2sid_winname.tree, &find,
860 if (result) {
861 if (update_str(&result->sid_prefix, sid_prefix) != 0)
863 if (result->sid_ttl == 0)
865 result->rid = rid;
866 result->sid_ttl = ttl;
915 sid2uid_gid_t *result;
922 result = avl_find(&idmap_cache.sid2uid_gid.tree, &find, &where);
924 if (result) {
925 if (result->gid_ttl == 0)
927 result->gid = gid;
928 result->gid_ttl = ttl;
963 pid2sid_winname_t *result;
969 result = avl_find(&idmap_cache.gid2sid_winname.tree, &find,
972 if (result) {
973 if (update_str(&result->sid_prefix, sid_prefix) != 0)
975 if (result->sid_ttl == 0)
977 result->rid = rid;
978 result->sid_ttl = ttl;
1025 sid2uid_gid_t *result;
1032 result = avl_find(&idmap_cache.sid2uid_gid.tree, &find, &where);
1034 if (result) {
1035 if (result->is_user == UNDEF_ISUSER)
1037 result->is_user = is_user;
1039 if (result->uid_ttl == 0)
1041 result->uid = pid;
1042 result->uid_ttl = ttl;
1044 if (result->gid_ttl == 0)
1046 result->gid = pid;
1047 result->gid_ttl = ttl;
1092 pid2sid_winname_t *result;
1099 result = avl_find(&idmap_cache.uid2sid_winname.tree,
1102 if (result) {
1103 if (update_str(&result->sid_prefix, sid_prefix)
1106 if (result->sid_ttl == 0)
1108 result->rid = rid;
1109 result->sid_ttl = ttl;
1145 result = avl_find(&idmap_cache.gid2sid_winname.tree,
1148 if (result) {
1149 if (update_str(&result->sid_prefix, sid_prefix)
1152 if (result->sid_ttl == 0)
1154 result->rid = rid;
1155 result->sid_ttl = ttl;
1204 winname2uid_gid_t *result;
1211 result = avl_find(&idmap_cache.winname2uid_gid.tree, &find,
1214 if (result) {
1215 if (result->uid_ttl == 0)
1217 result->uid = uid;
1218 result->uid_ttl = ttl;
1261 pid2sid_winname_t *result;
1267 result = avl_find(&idmap_cache.uid2sid_winname.tree, &find,
1270 if (result) {
1271 if (update_str(&result->winname, name) != 0)
1273 if (update_str(&result->windomain, domain) != 0)
1275 if (result->winname_ttl == 0)
1277 result->winname_ttl = ttl;
1334 winname2uid_gid_t *result;
1341 result = avl_find(&idmap_cache.winname2uid_gid.tree, &find,
1344 if (result) {
1345 if (result->uid_ttl == 0)
1347 result->gid = gid;
1348 result->gid_ttl = ttl;
1392 pid2sid_winname_t *result;
1398 result = avl_find(&idmap_cache.gid2sid_winname.tree, &find,
1401 if (result) {
1402 if (update_str(&result->winname, name) != 0)
1404 if (update_str(&result->windomain, domain) != 0)
1406 if (result->winname_ttl == 0)
1408 result->winname_ttl = ttl;