Searched refs:dsize (Results 1 – 7 of 7) sorted by relevance
/PHP-7.0/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 | 26 size_t dsize; member
|
/PHP-7.0/ext/dba/ |
H A D | dba_ndbm.c | 35 #define NDBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen 85 if(newlen) *newlen = gval.dsize; in DBA_FETCH_FUNC() 86 new = estrndup(gval.dptr, gval.dsize); in DBA_FETCH_FUNC() 97 gval.dsize = vallen; in DBA_UPDATE_FUNC() 128 if(newlen) *newlen = gkey.dsize; in DBA_FIRSTKEY_FUNC() 129 key = estrndup(gkey.dptr, gkey.dsize); in DBA_FIRSTKEY_FUNC() 141 if(newlen) *newlen = gkey.dsize; in DBA_NEXTKEY_FUNC() 142 nkey = estrndup(gkey.dptr, gkey.dsize); in DBA_NEXTKEY_FUNC()
|
H A D | dba_flatfile.c | 40 #define FLATFILE_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen 73 *newlen = gval.dsize; in DBA_FETCH_FUNC() 75 new = estrndup(gval.dptr, gval.dsize); in DBA_FETCH_FUNC() 88 gval.dsize = vallen; in DBA_UPDATE_FUNC() 135 *newlen = dba->nextkey.dsize; in DBA_FIRSTKEY_FUNC() 137 return estrndup(dba->nextkey.dptr, dba->nextkey.dsize); in DBA_FIRSTKEY_FUNC() 156 *newlen = dba->nextkey.dsize; in DBA_NEXTKEY_FUNC() 158 return estrndup(dba->nextkey.dptr, dba->nextkey.dsize); in DBA_NEXTKEY_FUNC()
|
H A D | dba_dbm.c | 43 #define DBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen 105 if(newlen) *newlen = gval.dsize; in DBA_FETCH_FUNC() 106 new = estrndup(gval.dptr, gval.dsize); in DBA_FETCH_FUNC() 125 gval.dsize = vallen; in DBA_UPDATE_FUNC() 156 if(newlen) *newlen = gkey.dsize; in DBA_FIRSTKEY_FUNC() 157 key = estrndup(gkey.dptr, gkey.dsize); in DBA_FIRSTKEY_FUNC() 174 if(newlen) *newlen = gkey.dsize; in DBA_NEXTKEY_FUNC() 175 nkey = estrndup(gkey.dptr, gkey.dsize); in DBA_NEXTKEY_FUNC()
|
H A D | dba_gdbm.c | 35 #define GDBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen 91 if(newlen) *newlen = gval.dsize; in DBA_FETCH_FUNC() 92 new = estrndup(gval.dptr, gval.dsize); in DBA_FETCH_FUNC() 105 gval.dsize = vallen; in DBA_UPDATE_FUNC() 149 key = estrndup(gkey.dptr, gkey.dsize); in DBA_FIRSTKEY_FUNC() 150 if(newlen) *newlen = gkey.dsize; in DBA_FIRSTKEY_FUNC() 169 nkey = estrndup(gkey.dptr, gkey.dsize); in DBA_NEXTKEY_FUNC() 170 if(newlen) *newlen = gkey.dsize; in DBA_NEXTKEY_FUNC()
|
/PHP-7.0/main/ |
H A D | php_scandir.c | 78 int dsize = 0; in php_scandir() local 100 dsize = sizeof (struct dirent) + (((int)strlen(dp->d_name) + 1) * sizeof(char)); in php_scandir() 101 newdp = (struct dirent *) malloc(dsize); in php_scandir() 107 vector[nfiles++] = (struct dirent *) memcpy(newdp, dp, dsize); in php_scandir()
|
Completed in 19 milliseconds