Searched refs:gval (Results 1 – 8 of 8) sorted by relevance
/PHP-7.3/ext/dba/ |
H A D | dba_db1.c | 96 DBT gval; in DBA_FETCH_FUNC() local 100 memset(&gval, 0, sizeof(gval)); in DBA_FETCH_FUNC() 103 return estrndup(gval.data, gval.size); in DBA_FETCH_FUNC() 110 DBT gval; in DBA_UPDATE_FUNC() local 114 gval.data = (char *) val; in DBA_UPDATE_FUNC() 115 gval.size = vallen; in DBA_UPDATE_FUNC() 122 DBT gval; in DBA_EXISTS_FUNC() local 140 DBT gval; in DBA_FIRSTKEY_FUNC() local 144 memset(&gval, 0, sizeof(gval)); in DBA_FIRSTKEY_FUNC() 156 DBT gval; in DBA_NEXTKEY_FUNC() local [all …]
|
H A D | dba_db4.c | 159 DBT gval; local 164 memset(&gval, 0, sizeof(gval)); 170 new = estrndup(gval.data, gval.size); 172 free(gval.data); 180 DBT gval; local 184 memset(&gval, 0, sizeof(gval)); 197 DBT gval; local 201 memset(&gval, 0, sizeof(gval)); 209 free(gval.data); 244 DBT gkey, gval; local [all …]
|
H A D | dba_flatfile.c | 62 datum gval; in DBA_FETCH_FUNC() local 69 if (gval.dptr) { in DBA_FETCH_FUNC() 71 *newlen = gval.dsize; in DBA_FETCH_FUNC() 73 new = estrndup(gval.dptr, gval.dsize); in DBA_FETCH_FUNC() 74 efree(gval.dptr); in DBA_FETCH_FUNC() 81 datum gval; in DBA_UPDATE_FUNC() local 85 gval.dptr = (char *) val; in DBA_UPDATE_FUNC() 86 gval.dsize = vallen; in DBA_UPDATE_FUNC() 104 datum gval; in DBA_EXISTS_FUNC() local 109 if (gval.dptr) { in DBA_EXISTS_FUNC() [all …]
|
H A D | dba_db3.c | 130 DBT gval; local 135 memset(&gval, 0, sizeof(gval)); 138 new = estrndup(gval.data, gval.size); 145 DBT gval; local 149 memset(&gval, 0, sizeof(gval)); 150 gval.data = (char *) val; 151 gval.size = vallen; 162 DBT gval; local 166 memset(&gval, 0, sizeof(gval)); 201 DBT gkey, gval; local [all …]
|
H A D | dba_ndbm.c | 76 datum gval; in DBA_FETCH_FUNC() local 80 gval = dbm_fetch(info->dbf, gkey); in DBA_FETCH_FUNC() 81 if(gval.dptr) { in DBA_FETCH_FUNC() 82 if(newlen) *newlen = gval.dsize; in DBA_FETCH_FUNC() 83 new = estrndup(gval.dptr, gval.dsize); in DBA_FETCH_FUNC() 90 datum gval; in DBA_UPDATE_FUNC() local 93 gval.dptr = (char *) val; in DBA_UPDATE_FUNC() 94 gval.dsize = vallen; in DBA_UPDATE_FUNC() 103 datum gval; in DBA_EXISTS_FUNC() local 105 gval = dbm_fetch(info->dbf, gkey); in DBA_EXISTS_FUNC() [all …]
|
H A D | dba_dbm.c | 96 datum gval; in DBA_FETCH_FUNC() local 100 gval = fetch(gkey); in DBA_FETCH_FUNC() 101 if(gval.dptr) { in DBA_FETCH_FUNC() 103 new = estrndup(gval.dptr, gval.dsize); in DBA_FETCH_FUNC() 110 datum gval; in DBA_UPDATE_FUNC() local 115 gval = fetch(gkey); in DBA_UPDATE_FUNC() 116 if(gval.dptr) { in DBA_UPDATE_FUNC() 122 gval.dsize = vallen; in DBA_UPDATE_FUNC() 129 datum gval; in DBA_EXISTS_FUNC() local 132 gval = fetch(gkey); in DBA_EXISTS_FUNC() [all …]
|
H A D | dba_db2.c | 98 DBT gval = {0}; in DBA_FETCH_FUNC() local 102 if (dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) { in DBA_FETCH_FUNC() 106 if (newlen) *newlen = gval.size; in DBA_FETCH_FUNC() 107 return estrndup(gval.data, gval.size); in DBA_FETCH_FUNC() 112 DBT gval = {0}; in DBA_UPDATE_FUNC() local 116 gval.data = (char *) val; in DBA_UPDATE_FUNC() 117 gval.size = vallen; in DBA_UPDATE_FUNC() 119 if (dba->dbp->put(dba->dbp, NULL, &gkey, &gval, in DBA_UPDATE_FUNC() 128 DBT gval = {0}; in DBA_EXISTS_FUNC() local 132 if (dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) { in DBA_EXISTS_FUNC() [all …]
|
H A D | dba_gdbm.c | 82 datum gval; in DBA_FETCH_FUNC() local 86 gval = gdbm_fetch(dba->dbf, gkey); in DBA_FETCH_FUNC() 87 if(gval.dptr) { in DBA_FETCH_FUNC() 88 if(newlen) *newlen = gval.dsize; in DBA_FETCH_FUNC() 89 new = estrndup(gval.dptr, gval.dsize); in DBA_FETCH_FUNC() 90 free(gval.dptr); in DBA_FETCH_FUNC() 97 datum gval; in DBA_UPDATE_FUNC() local 101 gval.dptr = (char *) val; in DBA_UPDATE_FUNC() 102 gval.dsize = vallen; in DBA_UPDATE_FUNC() 104 switch (gdbm_store(dba->dbf, gkey, gval, mode == 1 ? GDBM_INSERT : GDBM_REPLACE)) { in DBA_UPDATE_FUNC()
|
Completed in 22 milliseconds