Lines Matching +refs:val +refs:count
147 for (size_t c = 0; c < res->count; c++) {
176 res.count = msgs_count;
222 if (res->count > 1) {
228 * propagate based on res->count > 1. */
291 if (DOM_HAS_VIEWS(domain) && orig_obj->count == 1) {
404 if (DOM_HAS_VIEWS(domain) && orig_obj->count == 1) {
514 if (ts_res->count == 0) {
555 if (ts_res->count == 0) {
573 for (size_t i = 0; i < ts_res->count; i++) {
724 for (c = 0; c < res->count; c++) {
755 struct ldb_val *val = NULL;
763 val = &(el->values[i]);
765 (char *)val->data, val->length) == 0) {
773 val->data = (uint8_t *)talloc_strdup(msg, SYSDB_GROUP_CLASS);
774 if (val->data == NULL) return ENOMEM;
775 val->length = strlen(SYSDB_GROUP_CLASS);
785 for (i = 0; i < res->count; i++) {
833 if (orig_obj->count == 1) {
988 if (orig_obj->count == 1) {
1237 for (c = 0; c < res->count; c++) {
1299 if (res->count == 0) {
1305 } else if (res->count != 1) {
1308 "sysdb_getpwnam returned count: [%d]\n", res->count);
1315 /* note we count on the fact that the default search callback
1406 res->count = 0;
1417 for (i = 0; i < res->count; i++) {
1464 if (res->count == 0) {
1470 } else if (res->count != 1) {
1473 "sysdb_getpwnam returned count: [%d]\n", res->count);
1480 /* note we count on the fact that the default search callback
1533 for (c = 1; c < res->count; c++) {
1658 if (DOM_HAS_VIEWS(domain) && orig_obj->count == 1) {
1846 if(!res || res->count == 0) {
1855 for (i=0; i < res->count; i++) {
1873 for (i=0; i < res->count; i++) {
2186 if (res->count == 0) {
2196 if (ret == EOK && res->count == 1) {
2214 } else if (res->count == 1) {
2218 "sysdb_getpwnam returned count: [%d]\n", res->count);
2276 if (DOM_HAS_VIEWS(domain) && orig_obj->count == 1) {
2307 size_t i, ii, count, total;
2310 if (ts_res == NULL || ts_res->count == 0) {
2314 total = sysdb_res->count + ts_res->count;
2323 count = sysdb_res->count;
2324 for (i = 0; i < ts_res->count; i++) {
2325 for (ii = 0; ii < sysdb_res->count; ii++) {
2332 if (ii < sysdb_res->count) {
2339 sysdb_res->msgs[count] = talloc_steal(sysdb_res, ts_res->msgs[i]);
2340 count++;
2343 if (count < total) {
2346 count);
2351 sysdb_res->count = count;