Home
last modified time | relevance | path

Searched refs:dsize (Results 1 – 7 of 7) sorted by relevance

/PHP-8.0/ext/dba/libflatfile/
H A Dflatfile.c55 if (php_stream_write(dba->fp, key_datum.dptr, key_datum.dsize) < key_datum.dsize) { in flatfile_store()
60 if (php_stream_write(dba->fp, value_datum.dptr, value_datum.dsize) < value_datum.dsize) { in flatfile_store()
67 if (php_stream_write(dba->fp, key_datum.dptr, key_datum.dsize) < key_datum.dsize) { in flatfile_store()
71 if (php_stream_write(dba->fp, value_datum.dptr, value_datum.dsize) < value_datum.dsize) { in flatfile_store()
90 value_datum.dsize = php_stream_read(dba->fp, value_datum.dptr, value_datum.dsize); in flatfile_fetch()
93 value_datum.dsize = 0; in flatfile_fetch()
103 size_t size = key_datum.dsize; in flatfile_delete()
215 res.dsize = num; in flatfile_firstkey()
230 res.dsize = 0; in flatfile_firstkey()
267 res.dsize = num; in flatfile_nextkey()
[all …]
H A Dflatfile.h22 size_t dsize; member
/PHP-8.0/ext/dba/
H A Ddba_ndbm.c31 #define NDBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
80 if(newlen) *newlen = gval.dsize; in DBA_FETCH_FUNC()
81 new = estrndup(gval.dptr, gval.dsize); in DBA_FETCH_FUNC()
92 gval.dsize = vallen; in DBA_UPDATE_FUNC()
123 if(newlen) *newlen = gkey.dsize; in DBA_FIRSTKEY_FUNC()
124 key = estrndup(gkey.dptr, gkey.dsize); in DBA_FIRSTKEY_FUNC()
136 if(newlen) *newlen = gkey.dsize; in DBA_NEXTKEY_FUNC()
137 nkey = estrndup(gkey.dptr, gkey.dsize); in DBA_NEXTKEY_FUNC()
H A Ddba_flatfile.c36 #define FLATFILE_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
69 *newlen = gval.dsize; in DBA_FETCH_FUNC()
71 new = estrndup(gval.dptr, gval.dsize); in DBA_FETCH_FUNC()
84 gval.dsize = vallen; in DBA_UPDATE_FUNC()
131 *newlen = dba->nextkey.dsize; in DBA_FIRSTKEY_FUNC()
133 return estrndup(dba->nextkey.dptr, dba->nextkey.dsize); in DBA_FIRSTKEY_FUNC()
152 *newlen = dba->nextkey.dsize; in DBA_NEXTKEY_FUNC()
154 return estrndup(dba->nextkey.dptr, dba->nextkey.dsize); in DBA_NEXTKEY_FUNC()
H A Ddba_dbm.c39 #define DBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
100 if(newlen) *newlen = gval.dsize; in DBA_FETCH_FUNC()
101 new = estrndup(gval.dptr, gval.dsize); in DBA_FETCH_FUNC()
120 gval.dsize = vallen; in DBA_UPDATE_FUNC()
151 if(newlen) *newlen = gkey.dsize; in DBA_FIRSTKEY_FUNC()
152 key = estrndup(gkey.dptr, gkey.dsize); in DBA_FIRSTKEY_FUNC()
169 if(newlen) *newlen = gkey.dsize; in DBA_NEXTKEY_FUNC()
170 nkey = estrndup(gkey.dptr, gkey.dsize); in DBA_NEXTKEY_FUNC()
H A Ddba_gdbm.c31 #define GDBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
86 if(newlen) *newlen = gval.dsize; in DBA_FETCH_FUNC()
87 new = estrndup(gval.dptr, gval.dsize); in DBA_FETCH_FUNC()
100 gval.dsize = vallen; in DBA_UPDATE_FUNC()
144 key = estrndup(gkey.dptr, gkey.dsize); in DBA_FIRSTKEY_FUNC()
145 if(newlen) *newlen = gkey.dsize; in DBA_FIRSTKEY_FUNC()
164 nkey = estrndup(gkey.dptr, gkey.dsize); in DBA_NEXTKEY_FUNC()
165 if(newlen) *newlen = gkey.dsize; in DBA_NEXTKEY_FUNC()
/PHP-8.0/main/
H A Dphp_scandir.c69 size_t dsize = 0; in php_scandir() local
91 dsize = sizeof (struct dirent) + ((strlen(dp->d_name) + 1) * sizeof(char)); in php_scandir()
92 newdp = (struct dirent *) malloc(dsize); in php_scandir()
98 vector[nfiles++] = (struct dirent *) memcpy(newdp, dp, dsize); in php_scandir()

Completed in 12 milliseconds