Home
last modified time | relevance | path

Searched refs:gkey (Results 1 – 8 of 8) sorted by relevance

/PHP-7.3/ext/dba/
H A Ddba_ndbm.c33 #define NDBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
120 datum gkey; in DBA_FIRSTKEY_FUNC() local
123 gkey = dbm_firstkey(info->dbf); in DBA_FIRSTKEY_FUNC()
124 if(gkey.dptr) { in DBA_FIRSTKEY_FUNC()
125 if(newlen) *newlen = gkey.dsize; in DBA_FIRSTKEY_FUNC()
126 key = estrndup(gkey.dptr, gkey.dsize); in DBA_FIRSTKEY_FUNC()
133 datum gkey; in DBA_NEXTKEY_FUNC() local
136 gkey = dbm_nextkey(info->dbf); in DBA_NEXTKEY_FUNC()
137 if(gkey.dptr) { in DBA_NEXTKEY_FUNC()
138 if(newlen) *newlen = gkey.dsize; in DBA_NEXTKEY_FUNC()
[all …]
H A Ddba_dbm.c41 #define DBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
100 gval = fetch(gkey); in DBA_FETCH_FUNC()
115 gval = fetch(gkey); in DBA_UPDATE_FUNC()
132 gval = fetch(gkey); in DBA_EXISTS_FUNC()
148 datum gkey; in DBA_FIRSTKEY_FUNC() local
151 gkey = firstkey(); in DBA_FIRSTKEY_FUNC()
152 if(gkey.dptr) { in DBA_FIRSTKEY_FUNC()
154 key = estrndup(gkey.dptr, gkey.dsize); in DBA_FIRSTKEY_FUNC()
164 datum gkey; in DBA_NEXTKEY_FUNC() local
170 if(gkey.dptr) { in DBA_NEXTKEY_FUNC()
[all …]
H A Ddba_db1.c37 #define DB1_GKEY DBT gkey; gkey.data = (char *) key; gkey.size = keylen
101 if (dba->dbp->get(dba->dbp, &gkey, &gval, 0) == RET_SUCCESS) { in DBA_FETCH_FUNC()
139 DBT gkey; in DBA_FIRSTKEY_FUNC() local
143 memset(&gkey, 0, sizeof(gkey)); in DBA_FIRSTKEY_FUNC()
147 if (newlen) *newlen = gkey.size; in DBA_FIRSTKEY_FUNC()
148 return estrndup(gkey.data, gkey.size); in DBA_FIRSTKEY_FUNC()
155 DBT gkey; in DBA_NEXTKEY_FUNC() local
159 memset(&gkey, 0, sizeof(gkey)); in DBA_NEXTKEY_FUNC()
162 if (dba->dbp->seq(dba->dbp, &gkey, &gval, R_NEXT) == RET_SUCCESS) { in DBA_NEXTKEY_FUNC()
163 if (newlen) *newlen = gkey.size; in DBA_NEXTKEY_FUNC()
[all …]
H A Ddba_gdbm.c33 #define GDBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
137 datum gkey; in DBA_FIRSTKEY_FUNC() local
144 gkey = gdbm_firstkey(dba->dbf); in DBA_FIRSTKEY_FUNC()
145 if(gkey.dptr) { in DBA_FIRSTKEY_FUNC()
146 key = estrndup(gkey.dptr, gkey.dsize); in DBA_FIRSTKEY_FUNC()
147 if(newlen) *newlen = gkey.dsize; in DBA_FIRSTKEY_FUNC()
148 dba->nextkey = gkey; in DBA_FIRSTKEY_FUNC()
159 datum gkey; in DBA_NEXTKEY_FUNC() local
165 if(gkey.dptr) { in DBA_NEXTKEY_FUNC()
166 nkey = estrndup(gkey.dptr, gkey.dsize); in DBA_NEXTKEY_FUNC()
[all …]
H A Ddba_db3.c48 DBT gkey; \
49 memset(&gkey, 0, sizeof(gkey)); \
50 gkey.data = (char *) key; gkey.size = keylen
136 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) {
153 if (!dba->dbp->put(dba->dbp, NULL, &gkey, &gval,
167 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) {
201 DBT gkey, gval; local
204 memset(&gkey, 0, sizeof(gkey));
208 if (gkey.data) {
209 nkey = estrndup(gkey.data, gkey.size);
[all …]
H A Ddba_db4.c62 DBT gkey; \
63 memset(&gkey, 0, sizeof(gkey)); \
64 gkey.data = (char *) key; gkey.size = keylen
244 DBT gkey, gval; local
247 memset(&gkey, 0, sizeof(gkey));
251 gkey.flags |= DB_DBT_MALLOC;
255 if (gkey.data) {
256 nkey = estrndup(gkey.data, gkey.size);
257 if (newlen) *newlen = gkey.size;
260 if (gkey.data) {
[all …]
H A Ddba_db2.c36 DBT gkey = {0}; \
37 gkey.data = (char *) key; \
38 gkey.size = keylen
102 if (dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) { in DBA_FETCH_FUNC()
119 if (dba->dbp->put(dba->dbp, NULL, &gkey, &gval, in DBA_UPDATE_FUNC()
132 if (dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) { in DBA_EXISTS_FUNC()
170 DBT gkey = {0}, gval = {0}; local
172 if (dba->cursor->c_get(dba->cursor, &gkey, &gval, DB_NEXT)
173 || !gkey.data)
176 if (newlen) *newlen = gkey.size;
[all …]
H A Ddba_flatfile.c38 #define FLATFILE_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
68 gval = flatfile_fetch(dba, gkey); in DBA_FETCH_FUNC()
88 switch(flatfile_store(dba, gkey, gval, mode==1 ? FLATFILE_INSERT : FLATFILE_REPLACE)) { in DBA_UPDATE_FUNC()
108 gval = flatfile_fetch(dba, gkey); in DBA_EXISTS_FUNC()
120 return(flatfile_delete(dba, gkey) == -1 ? FAILURE : SUCCESS); in DBA_DELETE_FUNC()

Completed in 13 milliseconds