Lines Matching refs:pos
46 static int cdb_match(struct cdb *c, char *key, unsigned int len, uint32 pos) in cdb_match() argument
55 if (cdb_read(c, buf, n, pos) == -1) in cdb_match()
59 pos += n; in cdb_match()
104 int cdb_read(struct cdb *c, char *buf, unsigned int len, uint32 pos) in cdb_read() argument
106 if (php_stream_seek(c->fp, pos, SEEK_SET) == -1) { in cdb_read()
132 uint32 pos; in cdb_findnext() local
153 uint32_unpack(buf + 4, &pos); in cdb_findnext()
154 if (!pos) in cdb_findnext()
162 if (cdb_read(c, buf, 8, pos) == -1) in cdb_findnext()
166 switch(cdb_match(c, key, len, pos + 8)) { in cdb_findnext()
171 c->dpos = pos + 8 + len; in cdb_findnext()