Searched refs:dsize (Results 1 – 7 of 7) sorted by relevance
/PHP-7.4/ext/dba/libflatfile/ |
H A D | flatfile.c | 58 if (php_stream_write(dba->fp, key_datum.dptr, key_datum.dsize) < key_datum.dsize) { in flatfile_store() 63 if (php_stream_write(dba->fp, value_datum.dptr, value_datum.dsize) < value_datum.dsize) { in flatfile_store() 70 if (php_stream_write(dba->fp, key_datum.dptr, key_datum.dsize) < key_datum.dsize) { in flatfile_store() 74 if (php_stream_write(dba->fp, value_datum.dptr, value_datum.dsize) < value_datum.dsize) { in flatfile_store() 94 value_datum.dsize = php_stream_read(dba->fp, value_datum.dptr, value_datum.dsize); in flatfile_fetch() 97 value_datum.dsize = 0; in flatfile_fetch() 108 size_t size = key_datum.dsize; in flatfile_delete() 222 res.dsize = num; in flatfile_firstkey() 237 res.dsize = 0; in flatfile_firstkey() 275 res.dsize = num; in flatfile_nextkey() [all …]
|
H A D | flatfile.h | 24 size_t dsize; member
|
/PHP-7.4/ext/dba/ |
H A D | dba_ndbm.c | 33 #define NDBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen 82 if(newlen) *newlen = gval.dsize; in DBA_FETCH_FUNC() 83 new = estrndup(gval.dptr, gval.dsize); in DBA_FETCH_FUNC() 94 gval.dsize = vallen; in DBA_UPDATE_FUNC() 125 if(newlen) *newlen = gkey.dsize; in DBA_FIRSTKEY_FUNC() 126 key = estrndup(gkey.dptr, gkey.dsize); in DBA_FIRSTKEY_FUNC() 138 if(newlen) *newlen = gkey.dsize; in DBA_NEXTKEY_FUNC() 139 nkey = estrndup(gkey.dptr, gkey.dsize); in DBA_NEXTKEY_FUNC()
|
H A D | dba_flatfile.c | 38 #define FLATFILE_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen 71 *newlen = gval.dsize; in DBA_FETCH_FUNC() 73 new = estrndup(gval.dptr, gval.dsize); in DBA_FETCH_FUNC() 86 gval.dsize = vallen; in DBA_UPDATE_FUNC() 133 *newlen = dba->nextkey.dsize; in DBA_FIRSTKEY_FUNC() 135 return estrndup(dba->nextkey.dptr, dba->nextkey.dsize); in DBA_FIRSTKEY_FUNC() 154 *newlen = dba->nextkey.dsize; in DBA_NEXTKEY_FUNC() 156 return estrndup(dba->nextkey.dptr, dba->nextkey.dsize); in DBA_NEXTKEY_FUNC()
|
H A D | dba_dbm.c | 41 #define DBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen 102 if(newlen) *newlen = gval.dsize; in DBA_FETCH_FUNC() 103 new = estrndup(gval.dptr, gval.dsize); in DBA_FETCH_FUNC() 122 gval.dsize = vallen; in DBA_UPDATE_FUNC() 153 if(newlen) *newlen = gkey.dsize; in DBA_FIRSTKEY_FUNC() 154 key = estrndup(gkey.dptr, gkey.dsize); in DBA_FIRSTKEY_FUNC() 171 if(newlen) *newlen = gkey.dsize; in DBA_NEXTKEY_FUNC() 172 nkey = estrndup(gkey.dptr, gkey.dsize); in DBA_NEXTKEY_FUNC()
|
H A D | dba_gdbm.c | 33 #define GDBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen 88 if(newlen) *newlen = gval.dsize; in DBA_FETCH_FUNC() 89 new = estrndup(gval.dptr, gval.dsize); in DBA_FETCH_FUNC() 102 gval.dsize = vallen; in DBA_UPDATE_FUNC() 146 key = estrndup(gkey.dptr, gkey.dsize); in DBA_FIRSTKEY_FUNC() 147 if(newlen) *newlen = gkey.dsize; in DBA_FIRSTKEY_FUNC() 166 nkey = estrndup(gkey.dptr, gkey.dsize); in DBA_NEXTKEY_FUNC() 167 if(newlen) *newlen = gkey.dsize; in DBA_NEXTKEY_FUNC()
|
/PHP-7.4/main/ |
H A D | php_scandir.c | 71 size_t dsize = 0; in php_scandir() local 93 dsize = sizeof (struct dirent) + ((strlen(dp->d_name) + 1) * sizeof(char)); in php_scandir() 94 newdp = (struct dirent *) malloc(dsize); in php_scandir() 100 vector[nfiles++] = (struct dirent *) memcpy(newdp, dp, dsize); in php_scandir()
|
Completed in 9 milliseconds