Lines Matching refs:key
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
145 # define php_cdb_findnext(cdb, key, len) cdb_findnext(cdb, key, len) argument
146 # define php_cdb_find(cdb, key, len) cdb_find(cdb, key, len) argument
159 if (php_cdb_find(&cdb->c, key, keylen) == 1) { in DBA_FETCH_FUNC()
161 if (php_cdb_findnext(&cdb->c, key, keylen) != 1) { in DBA_FETCH_FUNC()
189 if (cdb_make_add(&cdb->m, key, keylen, val, vallen) != -1) in DBA_UPDATE_FUNC()
203 if (php_cdb_find(&cdb->c, key, keylen) == 1) in DBA_EXISTS_FUNC()
250 char *key; in DBA_FIRSTKEY_FUNC() local
271 key = safe_emalloc(klen, 1, 1); in DBA_FIRSTKEY_FUNC()
272 if (cdb_file_read(cdb->file, key, klen) < klen) { in DBA_FIRSTKEY_FUNC()
273 efree(key); in DBA_FIRSTKEY_FUNC()
274 key = NULL; in DBA_FIRSTKEY_FUNC()
276 key[klen] = '\0'; in DBA_FIRSTKEY_FUNC()
283 return key; in DBA_FIRSTKEY_FUNC()
291 char *key; in DBA_NEXTKEY_FUNC() local
303 key = safe_emalloc(klen, 1, 1); in DBA_NEXTKEY_FUNC()
304 if (cdb_file_read(cdb->file, key, klen) < klen) { in DBA_NEXTKEY_FUNC()
305 efree(key); in DBA_NEXTKEY_FUNC()
306 key = NULL; in DBA_NEXTKEY_FUNC()
308 key[klen] = '\0'; in DBA_NEXTKEY_FUNC()
314 return key; in DBA_NEXTKEY_FUNC()