Lines Matching refs:key
137 # define php_cdb_findnext(cdb, key, len) cdb_findnext(cdb, key, len) argument
138 # define php_cdb_find(cdb, key, len) cdb_find(cdb, key, len) argument
141 # define php_cdb_findnext(cdb, key, len) cdb_findnext(cdb, key, len) argument
142 # define php_cdb_find(cdb, key, len) cdb_find(cdb, key, len) argument
155 if (php_cdb_find(&cdb->c, key, keylen) == 1) { in DBA_FETCH_FUNC()
157 if (php_cdb_findnext(&cdb->c, key, keylen) != 1) { in DBA_FETCH_FUNC()
185 if (cdb_make_add(&cdb->m, key, keylen, val, vallen) != -1) in DBA_UPDATE_FUNC()
199 if (php_cdb_find(&cdb->c, key, keylen) == 1) in DBA_EXISTS_FUNC()
246 char *key; in DBA_FIRSTKEY_FUNC() local
267 key = safe_emalloc(klen, 1, 1); in DBA_FIRSTKEY_FUNC()
268 if (cdb_file_read(cdb->file, key, klen) < klen) { in DBA_FIRSTKEY_FUNC()
269 efree(key); in DBA_FIRSTKEY_FUNC()
270 key = NULL; in DBA_FIRSTKEY_FUNC()
272 key[klen] = '\0'; in DBA_FIRSTKEY_FUNC()
279 return key; in DBA_FIRSTKEY_FUNC()
287 char *key; in DBA_NEXTKEY_FUNC() local
299 key = safe_emalloc(klen, 1, 1); in DBA_NEXTKEY_FUNC()
300 if (cdb_file_read(cdb->file, key, klen) < klen) { in DBA_NEXTKEY_FUNC()
301 efree(key); in DBA_NEXTKEY_FUNC()
302 key = NULL; in DBA_NEXTKEY_FUNC()
304 key[klen] = '\0'; in DBA_NEXTKEY_FUNC()
310 return key; in DBA_NEXTKEY_FUNC()