• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/router/ppp/pppd/

Lines Matching refs:rec_ptr

395 	tdb_off offset, rec_ptr, last_ptr;
405 if (ofs_read(tdb, offset, &rec_ptr) == -1) {
411 while (rec_ptr) {
412 if (tdb_read(tdb, rec_ptr, (char *)&rec, sizeof(rec)) == -1) {
433 rec.next = rec_ptr + sizeof(rec) + rec.rec_len;
439 if (rec_write(tdb, rec_ptr, &rec) == -1) {
460 return rec_ptr;
465 last_ptr = rec_ptr;
466 rec_ptr = rec.next;
545 tdb_off offset, rec_ptr;
551 if (ofs_read(tdb, offset, &rec_ptr) == -1)
555 while (rec_ptr) {
556 if (rec_read(tdb, rec_ptr, rec) == -1)
562 k = tdb_alloc_read(tdb, rec_ptr + sizeof(*rec),
570 return rec_ptr;
576 rec_ptr = rec->next;
617 tdb_off rec_ptr;
631 rec_ptr = tdb_find(tdb, key, hash, &rec);
633 if (!rec_ptr)
640 if (tdb_write(tdb, rec_ptr + sizeof(rec) + rec.key_len,
647 ret = rec_write(tdb, rec_ptr, &rec);
660 tdb_off rec_ptr;
675 rec_ptr = tdb_find(tdb, key, hash, &rec);
677 if (rec_ptr) {
679 rec_ptr + sizeof(rec) + rec.key_len,
697 tdb_off rec_ptr;
711 rec_ptr = tdb_find(tdb, key, hash, &rec);
714 return rec_ptr != 0;
726 tdb_off offset, rec_ptr;
744 if (ofs_read(tdb, offset, &rec_ptr) == -1) {
749 while (rec_ptr) {
750 if (rec_read(tdb, rec_ptr, &rec) == -1) {
755 data = tdb_alloc_read(tdb, rec_ptr + sizeof(rec),
778 rec_ptr = rec.next;
795 tdb_off offset, rec_ptr;
808 for (hash = 0, rec_ptr = 0;
817 if (ofs_read(tdb, offset, &rec_ptr) == -1) {
821 if (rec_ptr) break;
826 if (rec_ptr == 0) return null_data;
829 if (rec_read(tdb, rec_ptr, &rec) == -1) {
834 ret.dptr = tdb_alloc_read(tdb, rec_ptr + sizeof(rec), rec.key_len);
848 tdb_off rec_ptr, offset;
864 rec_ptr = tdb_find(tdb, key, hash, &rec);
865 if (rec_ptr) {
867 rec_ptr = rec.next;
871 while (rec_ptr == 0) {
880 if (ofs_read(tdb, offset, &rec_ptr) == -1) {
887 if (rec_read(tdb, rec_ptr, &rec) == -1) {
892 ret.dptr = tdb_alloc_read(tdb, rec_ptr + sizeof(rec), rec.key_len);
903 tdb_off offset, rec_ptr, last_ptr;
923 if (ofs_read(tdb, offset, &rec_ptr) == -1) {
930 while (rec_ptr) {
931 if (rec_read(tdb, rec_ptr, &rec) == -1) {
937 data = tdb_alloc_read(tdb, rec_ptr + sizeof(rec),
964 if (rec_write(tdb, rec_ptr, &rec) == -1) {
967 if (ofs_write(tdb, offset, &rec_ptr) == -1) {
983 last_ptr = rec_ptr;
985 rec_ptr = rec.next;
1009 tdb_off rec_ptr, offset;
1033 rec_ptr = tdb_allocate(tdb, key.dsize + dbuf.dsize);
1034 if (rec_ptr == 0) {
1046 if (tdb_read(tdb, rec_ptr, (char *)&rec, sizeof(rec)) == -1) {
1075 if (tdb_write(tdb, rec_ptr, p, sizeof(rec)+key.dsize+dbuf.dsize) == -1)
1082 if (ofs_write(tdb, offset, &rec_ptr) == -1) goto fail;