Lines Matching refs:pos
44 static int cdb_match(struct cdb *c, char *key, unsigned int len, uint32 pos) in cdb_match() argument
53 if (cdb_read(c, buf, n, pos) == -1) in cdb_match()
57 pos += n; in cdb_match()
102 int cdb_read(struct cdb *c, char *buf, unsigned int len, uint32 pos) in cdb_read() argument
104 if (php_stream_seek(c->fp, pos, SEEK_SET) == -1) { in cdb_read()
130 uint32 pos; in cdb_findnext() local
151 uint32_unpack(buf + 4, &pos); in cdb_findnext()
152 if (!pos) in cdb_findnext()
160 if (cdb_read(c, buf, 8, pos) == -1) in cdb_findnext()
164 switch(cdb_match(c, key, len, pos + 8)) { in cdb_findnext()
169 c->dpos = pos + 8 + len; in cdb_findnext()