Lines Matching refs:gkey
74 datum gkey; in DBA_FETCH_FUNC() local
77 gkey.dptr = ZSTR_VAL(key); in DBA_FETCH_FUNC()
78 gkey.dsize = ZSTR_LEN(key); in DBA_FETCH_FUNC()
80 gval = gdbm_fetch(dba->dbf, gkey); in DBA_FETCH_FUNC()
92 datum gkey; in DBA_UPDATE_FUNC() local
94 gkey.dptr = ZSTR_VAL(key); in DBA_UPDATE_FUNC()
95 gkey.dsize = ZSTR_LEN(key); in DBA_UPDATE_FUNC()
99 switch (gdbm_store(dba->dbf, gkey, gval, mode == 1 ? GDBM_INSERT : GDBM_REPLACE)) { in DBA_UPDATE_FUNC()
118 datum gkey; in DBA_EXISTS_FUNC() local
120 gkey.dptr = ZSTR_VAL(key); in DBA_EXISTS_FUNC()
121 gkey.dsize = ZSTR_LEN(key); in DBA_EXISTS_FUNC()
123 return gdbm_exists(dba->dbf, gkey) ? SUCCESS : FAILURE; in DBA_EXISTS_FUNC()
129 datum gkey; in DBA_DELETE_FUNC() local
131 gkey.dptr = ZSTR_VAL(key); in DBA_DELETE_FUNC()
132 gkey.dsize = ZSTR_LEN(key); in DBA_DELETE_FUNC()
134 return gdbm_delete(dba->dbf, gkey) == -1 ? FAILURE : SUCCESS; in DBA_DELETE_FUNC()
140 datum gkey; in DBA_FIRSTKEY_FUNC() local
147 gkey = gdbm_firstkey(dba->dbf); in DBA_FIRSTKEY_FUNC()
148 if (gkey.dptr) { in DBA_FIRSTKEY_FUNC()
149 key = zend_string_init(gkey.dptr, gkey.dsize, /* persistent */ false); in DBA_FIRSTKEY_FUNC()
150 dba->nextkey = gkey; in DBA_FIRSTKEY_FUNC()
161 datum gkey; in DBA_NEXTKEY_FUNC() local
165 gkey = gdbm_nextkey(dba->dbf, dba->nextkey); in DBA_NEXTKEY_FUNC()
167 if (gkey.dptr) { in DBA_NEXTKEY_FUNC()
168 key = zend_string_init(gkey.dptr, gkey.dsize, /* persistent */ false); in DBA_NEXTKEY_FUNC()
169 dba->nextkey = gkey; in DBA_NEXTKEY_FUNC()