Lines Matching refs:nRes
359 int nRes = LDAP_SUCCESS; in ldap_memcache_set() local
418 if ((nRes = memcache_adj_size(cache, sizeof(ldapmemcacheld), in ldap_memcache_set()
422 return nRes; in ldap_memcache_set()
429 nRes = LDAP_NO_MEMORY; in ldap_memcache_set()
442 return nRes; in ldap_memcache_set()
586 int nRes, i, j, i_smallest; in ldap_memcache_createkey() local
602 nRes = memcache_validate_basedn(ld->ld_memcache, base); in ldap_memcache_createkey()
606 if (nRes != LDAP_SUCCESS) in ldap_memcache_createkey()
607 return nRes; in ldap_memcache_createkey()
689 int nRes; in ldap_memcache_result() local
709 if ((nRes = memcache_search(ld, key, &pMsg)) == LDAP_SUCCESS) { in ldap_memcache_result()
710 nRes = memcache_add_to_ld(ld, msgid, pMsg); in ldap_memcache_result()
729 return nRes; in ldap_memcache_result()
737 int nRes; in ldap_memcache_new() local
751 nRes = memcache_add(ld, key, msgid, basedn); in ldap_memcache_new()
755 return nRes; in ldap_memcache_new()
764 int nRes = LDAP_SUCCESS; in ldap_memcache_append() local
784 nRes = memcache_append(ld, msgid, result); in ldap_memcache_append()
786 nRes = memcache_append_last(ld, msgid, result); in ldap_memcache_append()
790 ( nRes == LDAP_SUCCESS ) ? "added" : "failed to add", msgid , 0 ); in ldap_memcache_append()
795 return nRes; in ldap_memcache_append()
803 int nRes; in ldap_memcache_abandon() local
817 nRes = memcache_remove(ld, msgid); in ldap_memcache_abandon()
821 return nRes; in ldap_memcache_abandon()
997 int nRes;
1005 nRes = memcache_access(ld->ld_memcache, MEMCACHE_ACCESS_FIND,
1008 if (nRes != LDAP_SUCCESS)
1009 return nRes;
1110 int nRes = LDAP_SUCCESS;
1114 nRes = memcache_dup_message(pMsg, msgid, 1, &pCopy, NULL);
1115 if (nRes != LDAP_SUCCESS)
1116 return nRes;
1129 return nRes;
1136 int nRes;
1144 nRes = LDAP_COMPARE_TRUE;
1159 nRes = LDAP_COMPARE_FALSE;
1163 nRes = LDAP_COMPARE_TRUE;
1165 nRes = LDAP_COMPARE_FALSE;
1168 nRes = LDAP_COMPARE_FALSE;
1172 nRes = LDAP_COMPARE_FALSE;
1174 nRes = LDAP_COMPARE_TRUE;
1176 nRes = LDAP_COMPARE_TRUE;
1178 nRes = LDAP_COMPARE_FALSE;
1188 return nRes;
1232 int nRes = LDAP_SUCCESS;
1248 nRes = LDAP_NO_MEMORY;
1262 if ((nRes != LDAP_SUCCESS) && (*ppResCopy != NULL)) {
1269 return nRes;
1421 int nRes = LDAP_SUCCESS;
1430 nRes = htable_get(cache->ldmemc_resTmp, pData2, (void**)&pRes);
1431 if (nRes == LDAP_SUCCESS)
1443 nRes = memcache_adj_size(cache, size, MEMCACHE_SIZE_ENTRIES,
1445 if (nRes == LDAP_SUCCESS)
1446 nRes = htable_put(cache->ldmemc_resTmp, pData2, (void*)pRes);
1447 if (nRes == LDAP_SUCCESS)
1460 nRes = htable_get(cache->ldmemc_resTmp, pData1, (void**)&pRes);
1461 if (nRes != LDAP_SUCCESS)
1462 return nRes;
1464 nRes = memcache_dup_message(pMsg, pMsg->lm_msgid, 0, &pCopy, &size);
1465 if (nRes != LDAP_SUCCESS) {
1466 nRes = htable_remove(cache->ldmemc_resTmp, pData1, NULL);
1467 assert(nRes == LDAP_SUCCESS);
1470 return nRes;
1473 nRes = memcache_adj_size(cache, size, MEMCACHE_SIZE_ENTRIES,
1475 if (nRes != LDAP_SUCCESS) {
1477 nRes = htable_remove(cache->ldmemc_resTmp, pData1, NULL);
1478 assert(nRes == LDAP_SUCCESS);
1481 return nRes;
1489 nRes = htable_remove(cache->ldmemc_resTmp, pData1, NULL);
1490 assert(nRes == LDAP_SUCCESS);
1496 if ((nRes = htable_put(cache->ldmemc_resLookup,
1510 nRes = htable_get(cache->ldmemc_resLookup, pData1, (void**)ppRes);
1511 if (nRes != LDAP_SUCCESS)
1512 return nRes;
1520 nRes = htable_remove(cache->ldmemc_resLookup, pData1, NULL);
1521 assert(nRes == LDAP_SUCCESS);
1525 nRes = LDAP_NO_SUCH_OBJECT;
1533 if ((nRes = htable_remove(cache->ldmemc_resTmp, pData1,
1542 nRes = htable_removeall(cache->ldmemc_resTmp, (void*)cache);
1555 nRes = htable_remove(cache->ldmemc_resLookup,
1557 assert(nRes == LDAP_SUCCESS);
1568 nRes = htable_removeall(cache->ldmemc_resLookup, (void*)cache);
1632 nRes = htable_remove(cache->ldmemc_resLookup,
1634 assert(nRes == LDAP_SUCCESS);
1638 nRes = htable_remove(cache->ldmemc_resTmp,
1640 assert(nRes == LDAP_SUCCESS);
1658 nRes = htable_remove(cache->ldmemc_resLookup,
1660 assert(nRes == LDAP_SUCCESS);
1667 nRes = LDAP_PARAM_ERROR;
1670 return nRes;