Lines Matching refs:krec
248 DBT krec, drec; in bsddb_length() local
253 &krec, &drec,R_FIRST); in bsddb_length()
256 &krec, &drec, R_NEXT)) in bsddb_length()
272 DBT krec, drec; in bsddb_subscript() local
285 krec.data = &recno; in bsddb_subscript()
286 krec.size = sizeof(recno); in bsddb_subscript()
294 krec.data = data; in bsddb_subscript()
295 krec.size = size; in bsddb_subscript()
300 status = (dp->di_bsddb->get)(dp->di_bsddb, &krec, &drec, 0); in bsddb_subscript()
325 DBT krec, drec; in bsddb_ass_sub() local
336 krec.data = &recno; in bsddb_ass_sub()
337 krec.size = sizeof(recno); in bsddb_ass_sub()
345 krec.data = data; in bsddb_ass_sub()
346 krec.size = size; in bsddb_ass_sub()
352 status = (dp->di_bsddb->del)(dp->di_bsddb, &krec, 0); in bsddb_ass_sub()
364 status = (dp->di_bsddb->put)(dp->di_bsddb, &krec, &drec, 0); in bsddb_ass_sub()
406 DBT krec, drec; in bsddb_keys() local
416 status = (dp->di_bsddb->seq)(dp->di_bsddb, &krec, &drec, R_FIRST); in bsddb_keys()
418 if (krec.size > sizeof(buf)) data = malloc(krec.size); in bsddb_keys()
420 if (data != NULL) memcpy(data,krec.data,krec.size); in bsddb_keys()
429 (int)krec.size); in bsddb_keys()
443 (dp->di_bsddb, &krec, &drec, R_NEXT); in bsddb_keys()
445 if (krec.size > sizeof(buf)) in bsddb_keys()
446 data = malloc(krec.size); in bsddb_keys()
449 memcpy(data,krec.data,krec.size); in bsddb_keys()
467 DBT krec, drec; in bsddb_has_key() local
478 krec.data = &recno; in bsddb_has_key()
479 krec.size = sizeof(recno); in bsddb_has_key()
486 krec.data = data; in bsddb_has_key()
487 krec.size = size; in bsddb_has_key()
492 status = (dp->di_bsddb->get)(dp->di_bsddb, &krec, &drec, 0); in bsddb_has_key()
506 DBT krec, drec; in bsddb_set_location() local
518 krec.data = &recno; in bsddb_set_location()
519 krec.size = sizeof(recno); in bsddb_set_location()
526 krec.data = data; in bsddb_set_location()
527 krec.size = size; in bsddb_set_location()
532 status = (dp->di_bsddb->seq)(dp->di_bsddb, &krec, &drec, R_CURSOR); in bsddb_set_location()
549 result = Py_BuildValue("is#", *((int*)krec.data), in bsddb_set_location()
552 result = Py_BuildValue("s#s#", krec.data, krec.size, in bsddb_set_location()
562 DBT krec, drec; in bsddb_seq() local
568 krec.data = 0; in bsddb_seq()
569 krec.size = 0; in bsddb_seq()
572 status = (dp->di_bsddb->seq)(dp->di_bsddb, &krec, in bsddb_seq()
575 if (krec.size > sizeof(kbuf)) kdata = malloc(krec.size); in bsddb_seq()
577 if (kdata != NULL) memcpy(kdata,krec.data,krec.size); in bsddb_seq()
600 result = Py_BuildValue("s#s#", kdata, krec.size, in bsddb_seq()