Lines Matching refs:gkey
31 #define NDBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
78 gval = dbm_fetch(info->dbf, gkey); in DBA_FETCH_FUNC()
94 if(!dbm_store(info->dbf, gkey, gval, mode == 1 ? DBM_INSERT : DBM_REPLACE)) in DBA_UPDATE_FUNC()
103 gval = dbm_fetch(info->dbf, gkey); in DBA_EXISTS_FUNC()
113 return(dbm_delete(info->dbf, gkey) == -1 ? FAILURE : SUCCESS); in DBA_DELETE_FUNC()
118 datum gkey; in DBA_FIRSTKEY_FUNC() local
121 gkey = dbm_firstkey(info->dbf); in DBA_FIRSTKEY_FUNC()
122 if(gkey.dptr) { in DBA_FIRSTKEY_FUNC()
123 if(newlen) *newlen = gkey.dsize; in DBA_FIRSTKEY_FUNC()
124 key = estrndup(gkey.dptr, gkey.dsize); in DBA_FIRSTKEY_FUNC()
131 datum gkey; in DBA_NEXTKEY_FUNC() local
134 gkey = dbm_nextkey(info->dbf); in DBA_NEXTKEY_FUNC()
135 if(gkey.dptr) { in DBA_NEXTKEY_FUNC()
136 if(newlen) *newlen = gkey.dsize; in DBA_NEXTKEY_FUNC()
137 nkey = estrndup(gkey.dptr, gkey.dsize); in DBA_NEXTKEY_FUNC()