Lines Matching defs:dat
416 apply(State_t* state, Connection_t* con, int id, int index, datum key, datum val, Data_t* dat)
424 dat->flags |= DATA_clear;
425 dat->time = time(NiL);
426 val.dptr = (void*)dat;
427 val.dsize = sizeof(*dat);
453 dat->flags |= DATA_hold;
454 dat->time = time(NiL);
455 val.dptr = (void*)dat;
456 val.dsize = sizeof(*dat);
468 dat->flags &= ~DATA_clear;
469 dat->time = time(NiL);
470 dat->raise++;
471 val.dptr = (void*)dat;
472 val.dsize = sizeof(*dat);
488 if (dat->flags & DATA_hold)
490 dat->flags &= ~DATA_hold;
491 if (dat->raise)
493 val.dptr = (void*)dat;
494 val.dsize = sizeof(*dat);
519 if (val.dptr && !(dat->flags & DATA_clear))
523 else if (dat->flags & DATA_hold)
532 if (val.dptr && !state->hold && !(dat->flags & (DATA_clear|DATA_hold)))
553 Data_t dat;
577 if (val.dsize > sizeof(dat))
578 val.dsize = sizeof(dat);
579 swapmem(state->swap, val.dptr, &dat, sizeof(dat));
582 memset(&dat, 0, sizeof(dat));
583 if (apply(state, con, id, index, key, val, &dat))
593 if (val.dsize > sizeof(dat))
594 val.dsize = sizeof(dat);
595 swapmem(state->swap, val.dptr, &dat, val.dsize);
596 if ((!older || dat.time < older) && (!newer || dat.time > newer))
598 if ((i = apply(state, con, id, index, key, val, &dat)) < 0)
619 Data_t dat;
626 swapmem(state->swap, val.dptr, &dat, val.dsize);
627 t = dat.time;