Lines Matching defs:iterator
521 BTreeIterator * iterator = NULL;
584 MALLOC(iterator, BTreeIterator *, sizeof(*iterator), M_TEMP, M_WAITOK);
585 if (iterator == NULL) {
591 bzero(iterator, sizeof(*iterator));
592 key = (HotFileKey*) &iterator->key;
670 error = BTInsertRecord(filefork, iterator, &record, record.itemSize);
683 error = BTInsertRecord(filefork, iterator, &record, record.itemSize);
704 if (iterator)
705 FREE(iterator, M_TEMP);
956 BTreeIterator * iterator = NULL;
972 MALLOC(iterator, BTreeIterator *, sizeof(*iterator), M_TEMP, M_WAITOK);
973 if (iterator == NULL) {
977 bzero(iterator, sizeof(*iterator));
978 key = (HotFileKey*) &iterator->key;
1002 (void) BTInvalidateHint(iterator);
1003 if (BTSearchRecord(filefork, iterator, &record, NULL, iterator) != 0) {
1010 error = BTUpdateRecord(filefork, iterator,
1026 (void) BTInvalidateHint(iterator);
1027 (void) BTSearchRecord(filefork, iterator, &record, NULL, iterator);
1028 error = BTDeleteRecord(filefork, iterator);
1038 error = BTInsertRecord(filefork, iterator, &record, record.itemSize);
1059 if (iterator)
1060 FREE(iterator, M_TEMP);
1072 BTreeIterator * iterator = NULL;
1097 MALLOC(iterator, BTreeIterator *, sizeof(*iterator), M_TEMP, M_WAITOK);
1098 if (iterator == NULL) {
1111 bzero(iterator, sizeof(*iterator));
1112 key = (HotFileKey*) &iterator->key;
1202 error = BTInsertRecord(filefork, iterator, &record, record.itemSize);
1216 error = BTInsertRecord(filefork, iterator, &record, record.itemSize);
1262 FREE(iterator, M_TEMP);
1281 BTreeIterator * iterator = NULL;
1306 MALLOC(iterator, BTreeIterator *, sizeof(*iterator), M_TEMP, M_WAITOK);
1307 if (iterator == NULL) {
1318 bzero(iterator, sizeof(*iterator));
1319 key = (HotFileKey*) &iterator->key;
1330 if (BTIterateRecord(filefork, bt_op, iterator, NULL, NULL) != 0) {
1425 error = BTDeleteRecord(filefork, iterator);
1432 error = BTDeleteRecord(filefork, iterator);
1469 FREE(iterator, M_TEMP);
1482 BTreeIterator * iterator = NULL;
1499 MALLOC(iterator, BTreeIterator *, 2 * sizeof(*iterator), M_TEMP, M_WAITOK);
1500 if (iterator == NULL) {
1504 bzero(iterator, 2 * sizeof(*iterator));
1505 key = (HotFileKey*) &iterator->key;
1507 prev_iterator = &iterator[1];
1543 error = BTIterateRecord(filefork, kBTreeFirstRecord, iterator, &record, &reclen);
1549 bcopy(iterator, prev_iterator, sizeof(BTreeIterator));
1553 error = BTIterateRecord(filefork, kBTreeNextRecord, iterator, &record, &reclen);
1617 bcopy(iterator, prev_iterator, sizeof(BTreeIterator));
1632 if (iterator)
1633 FREE(iterator, M_TEMP);