Home
last modified time | relevance | path

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

/PHP-5.6/ext/dba/
H A Ddba_db1.c99 DBT gval; in DBA_FETCH_FUNC() local
103 memset(&gval, 0, sizeof(gval)); in DBA_FETCH_FUNC()
106 return estrndup(gval.data, gval.size); in DBA_FETCH_FUNC()
113 DBT gval; in DBA_UPDATE_FUNC() local
117 gval.data = (char *) val; in DBA_UPDATE_FUNC()
118 gval.size = vallen; in DBA_UPDATE_FUNC()
125 DBT gval; in DBA_EXISTS_FUNC() local
143 DBT gval; in DBA_FIRSTKEY_FUNC() local
147 memset(&gval, 0, sizeof(gval)); in DBA_FIRSTKEY_FUNC()
159 DBT gval; in DBA_NEXTKEY_FUNC() local
[all …]
H A Ddba_db4.c163 DBT gval; local
168 memset(&gval, 0, sizeof(gval));
174 new = estrndup(gval.data, gval.size);
176 free(gval.data);
184 DBT gval; local
188 memset(&gval, 0, sizeof(gval));
201 DBT gval; local
205 memset(&gval, 0, sizeof(gval));
213 free(gval.data);
248 DBT gkey, gval; local
[all …]
H A Ddba_db3.c125 DBT gval; in DBA_FETCH_FUNC() local
130 memset(&gval, 0, sizeof(gval)); in DBA_FETCH_FUNC()
133 new = estrndup(gval.data, gval.size); in DBA_FETCH_FUNC()
140 DBT gval; in DBA_UPDATE_FUNC() local
144 memset(&gval, 0, sizeof(gval)); in DBA_UPDATE_FUNC()
145 gval.data = (char *) val; in DBA_UPDATE_FUNC()
146 gval.size = vallen; in DBA_UPDATE_FUNC()
157 DBT gval; in DBA_EXISTS_FUNC() local
161 memset(&gval, 0, sizeof(gval)); in DBA_EXISTS_FUNC()
196 DBT gkey, gval; in DBA_NEXTKEY_FUNC() local
[all …]
H A Ddba_flatfile.c64 datum gval; in DBA_FETCH_FUNC() local
71 if (gval.dptr) { in DBA_FETCH_FUNC()
73 *newlen = gval.dsize; in DBA_FETCH_FUNC()
75 new = estrndup(gval.dptr, gval.dsize); in DBA_FETCH_FUNC()
76 efree(gval.dptr); in DBA_FETCH_FUNC()
83 datum gval; in DBA_UPDATE_FUNC() local
87 gval.dptr = (char *) val; in DBA_UPDATE_FUNC()
88 gval.dsize = vallen; in DBA_UPDATE_FUNC()
106 datum gval; in DBA_EXISTS_FUNC() local
111 if (gval.dptr) { in DBA_EXISTS_FUNC()
[all …]
H A Ddba_ndbm.c79 datum gval; in DBA_FETCH_FUNC() local
83 gval = dbm_fetch(info->dbf, gkey); in DBA_FETCH_FUNC()
84 if(gval.dptr) { in DBA_FETCH_FUNC()
85 if(newlen) *newlen = gval.dsize; in DBA_FETCH_FUNC()
86 new = estrndup(gval.dptr, gval.dsize); in DBA_FETCH_FUNC()
93 datum gval; in DBA_UPDATE_FUNC() local
96 gval.dptr = (char *) val; in DBA_UPDATE_FUNC()
97 gval.dsize = vallen; in DBA_UPDATE_FUNC()
106 datum gval; in DBA_EXISTS_FUNC() local
108 gval = dbm_fetch(info->dbf, gkey); in DBA_EXISTS_FUNC()
[all …]
H A Ddba_dbm.c99 datum gval; in DBA_FETCH_FUNC() local
103 gval = fetch(gkey); in DBA_FETCH_FUNC()
104 if(gval.dptr) { in DBA_FETCH_FUNC()
106 new = estrndup(gval.dptr, gval.dsize); in DBA_FETCH_FUNC()
113 datum gval; in DBA_UPDATE_FUNC() local
118 gval = fetch(gkey); in DBA_UPDATE_FUNC()
119 if(gval.dptr) { in DBA_UPDATE_FUNC()
125 gval.dsize = vallen; in DBA_UPDATE_FUNC()
132 datum gval; in DBA_EXISTS_FUNC() local
135 gval = fetch(gkey); in DBA_EXISTS_FUNC()
[all …]
H A Ddba_db2.c101 DBT gval = {0}; in DBA_FETCH_FUNC() local
105 if (dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) { in DBA_FETCH_FUNC()
109 if (newlen) *newlen = gval.size; in DBA_FETCH_FUNC()
110 return estrndup(gval.data, gval.size); in DBA_FETCH_FUNC()
115 DBT gval = {0}; in DBA_UPDATE_FUNC() local
119 gval.data = (char *) val; in DBA_UPDATE_FUNC()
120 gval.size = vallen; in DBA_UPDATE_FUNC()
122 if (dba->dbp->put(dba->dbp, NULL, &gkey, &gval, in DBA_UPDATE_FUNC()
131 DBT gval = {0}; in DBA_EXISTS_FUNC() local
135 if (dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) { in DBA_EXISTS_FUNC()
[all …]
H A Ddba_gdbm.c85 datum gval; in DBA_FETCH_FUNC() local
89 gval = gdbm_fetch(dba->dbf, gkey); in DBA_FETCH_FUNC()
90 if(gval.dptr) { in DBA_FETCH_FUNC()
91 if(newlen) *newlen = gval.dsize; in DBA_FETCH_FUNC()
92 new = estrndup(gval.dptr, gval.dsize); in DBA_FETCH_FUNC()
93 free(gval.dptr); in DBA_FETCH_FUNC()
100 datum gval; in DBA_UPDATE_FUNC() local
104 gval.dptr = (char *) val; in DBA_UPDATE_FUNC()
105 gval.dsize = vallen; in DBA_UPDATE_FUNC()
107 switch (gdbm_store(dba->dbf, gkey, gval, mode == 1 ? GDBM_INSERT : GDBM_REPLACE)) { in DBA_UPDATE_FUNC()

Completed in 13 milliseconds