Lines Matching refs:key
139 # define php_cdb_findnext(cdb, key, len) cdb_findnext(cdb, key, len) argument
140 # define php_cdb_find(cdb, key, len) cdb_find(cdb, key, len) argument
143 # define php_cdb_findnext(cdb, key, len) cdb_findnext(cdb, key, len) argument
144 # define php_cdb_find(cdb, key, len) cdb_find(cdb, key, len) argument
157 if (php_cdb_find(&cdb->c, key, keylen) == 1) { in DBA_FETCH_FUNC()
159 if (php_cdb_findnext(&cdb->c, key, keylen) != 1) { in DBA_FETCH_FUNC()
187 if (cdb_make_add(&cdb->m, key, keylen, val, vallen) != -1) in DBA_UPDATE_FUNC()
201 if (php_cdb_find(&cdb->c, key, keylen) == 1) in DBA_EXISTS_FUNC()
248 char *key; in DBA_FIRSTKEY_FUNC() local
269 key = safe_emalloc(klen, 1, 1); in DBA_FIRSTKEY_FUNC()
270 if (cdb_file_read(cdb->file, key, klen) < klen) { in DBA_FIRSTKEY_FUNC()
271 efree(key); in DBA_FIRSTKEY_FUNC()
272 key = NULL; in DBA_FIRSTKEY_FUNC()
274 key[klen] = '\0'; in DBA_FIRSTKEY_FUNC()
281 return key; in DBA_FIRSTKEY_FUNC()
289 char *key; in DBA_NEXTKEY_FUNC() local
301 key = safe_emalloc(klen, 1, 1); in DBA_NEXTKEY_FUNC()
302 if (cdb_file_read(cdb->file, key, klen) < klen) { in DBA_NEXTKEY_FUNC()
303 efree(key); in DBA_NEXTKEY_FUNC()
304 key = NULL; in DBA_NEXTKEY_FUNC()
306 key[klen] = '\0'; in DBA_NEXTKEY_FUNC()
312 return key; in DBA_NEXTKEY_FUNC()