Home
last modified time | relevance | path

Searched refs:st_size (Results 1 – 25 of 32) sorted by relevance

12

/PHP-5.5/ext/session/
H A Dmod_files.c65 size_t st_size; member
372 data->st_size = *vallen = sbuf.st_size; in PS_READ_FUNC()
374 if (sbuf.st_size == 0) { in PS_READ_FUNC()
379 *val = emalloc(sbuf.st_size); in PS_READ_FUNC()
382 n = pread(data->fd, *val, sbuf.st_size, 0); in PS_READ_FUNC()
385 n = read(data->fd, *val, sbuf.st_size); in PS_READ_FUNC()
388 if (n != sbuf.st_size) { in PS_READ_FUNC()
413 if (vallen < (int)data->st_size) { in PS_WRITE_FUNC()
/PHP-5.5/ext/dba/
H A Ddba_db4.c84 if (!s && !check_stat.st_size) {
98 if (!s && !check_stat.st_size) {
H A Ddba_db2.c56 if (!s && !check_stat.st_size) { in DBA_OPEN_FUNC()
H A Ddba_db3.c65 if (!s && !check_stat.st_size) { in DBA_OPEN_FUNC()
/PHP-5.5/ext/zip/
H A Dzip_stream.c154 ssb->sb.st_size = sb.size; in php_zip_ops_stat()
157 ssb->sb.st_size = 0; in php_zip_ops_stat()
/PHP-5.5/ext/standard/
H A Diptc.c220 poi = spoolbuf = safe_emalloc(1, (size_t)iptcdata_len + sizeof(psheader) + 1024 + 1, sb.st_size); in PHP_FUNCTION()
221 memset(poi, 0, iptcdata_len + sizeof(psheader) + sb.st_size + 1024 + 1); in PHP_FUNCTION()
H A Dftp_fopen_wrapper.c822 ssb->sb.st_size = 0; in php_stream_ftp_url_stat()
827 ssb->sb.st_size = atoi(tmp_line + 4); in php_stream_ftp_url_stat()
886 ssb->sb.st_blocks = (int)((4095 + ssb->sb.st_size) / ssb->sb.st_blksize); /* emulate ceil */ in php_stream_ftp_url_stat()
H A Dfilestat.c969 RETURN_LONG((long)ssb.sb.st_size); in php_stat()
1026 MAKE_LONG_ZVAL_INCREF(stat_size, stat_sb->st_size); in php_stat()
/PHP-5.5/ext/fileinfo/libmagic/
H A Dfsmagic.c239 if ((ms->flags & MAGIC_DEVICES) == 0 && sb->st_size == 0) { in file_fsmagic()
H A Dapprentice.c2643 if (st.sb.st_size < 8) { in apprentice_map()
2648 map->len = (size_t)st.sb.st_size; in apprentice_map()
2653 if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) { in apprentice_map()
2693 nentries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map()
2694 entries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map()
2695 if ((off_t)(entries * sizeof(struct magic)) != st.sb.st_size) { in apprentice_map()
2697 dbname, (unsigned long long)st.sb.st_size, in apprentice_map()
/PHP-5.5/ext/phar/
H A Dfunc_interceptors.c490 RETURN_LONG((long)stat_sb->st_size); in phar_fancy_stat()
553 MAKE_LONG_ZVAL_INCREF(stat_size, stat_sb->st_size); in phar_fancy_stat()
672 sb.st_size = 0; in phar_file_stat()
718 sb.st_size = 0; in phar_file_stat()
745 sb.st_size = data->uncompressed_filesize; in phar_file_stat()
763 sb.st_size = 0; in phar_file_stat()
H A Dstream.c486 ssb->sb.st_size = data->uncompressed_filesize; in phar_dostat()
500 ssb->sb.st_size = 0; in phar_dostat()
514 ssb->sb.st_size = 0; in phar_dostat()
/PHP-5.5/main/streams/
H A Dplain_wrapper.c669 if (range->length == 0 && range->offset > 0 && range->offset < data->sb.st_size) { in php_stdiop_set_option()
670 range->length = data->sb.st_size - range->offset; in php_stdiop_set_option()
672 if (range->length == 0 || range->length > data->sb.st_size) { in php_stdiop_set_option()
673 range->length = data->sb.st_size; in php_stdiop_set_option()
675 if (range->offset >= data->sb.st_size) { in php_stdiop_set_option()
676 range->offset = data->sb.st_size; in php_stdiop_set_option()
H A Dstreams.c1467 if (php_stream_stat(src, &ssbuf) == 0 && ssbuf.sb.st_size > 0) { in _php_stream_copy_to_mem()
1468 max_len = ssbuf.sb.st_size + step; in _php_stream_copy_to_mem()
1519 if (ssbuf.sb.st_size == 0 in _php_stream_copy_to_stream_ex()
H A Dmemory.c215 ssb->sb.st_size = ms->fsize; in php_stream_memory_stat()
/PHP-5.5/ext/zip/lib/
H A Dzip_source_filep.c221 st->size = fst.st_size; in read_file()
/PHP-5.5/Zend/
H A Dzend_stream.c74 return buf.st_size; in zend_stream_stdio_fsizer()
123 return buf.st_size; in zend_stream_fsize()
/PHP-5.5/ext/fileinfo/
H A Dlibmagic.patch620 - if (st.st_size < 8) {
622 + if (st.sb.st_size < 8) {
627 - map->len = (size_t)st.st_size;
636 + map->len = (size_t)st.sb.st_size;
642 + if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) {
672 - entries = (uint32_t)(st.st_size / sizeof(struct magic));
673 - if ((off_t)(entries * sizeof(struct magic)) != st.st_size) {
675 - dbname, (unsigned long long)st.st_size,
689 + entries = (uint32_t)(st.sb.st_size / sizeof(struct magic));
692 + dbname, (unsigned long long)st.sb.st_size,
[all …]
/PHP-5.5/sapi/thttpd/
H A Dthttpd_patch750 hc->end_byte_loc = hc->sb.st_size - 1;
759 hc, 200, ok200title, hc->encodings, "", hc->type, hc->sb.st_size,
769 - hc, 304, err304title, hc->encodings, "", hc->type, hc->sb.st_size,
797 - hc, 200, ok200title, hc->encodings, "", hc->type, hc->sb.st_size,
799 + hc, 200, ok200title, hc->encodings, extraheads, hc->type, hc->sb.st_size,
1375 m = find_hash( sbP->st_ino, sbP->st_dev, sbP->st_size, sbP->st_ctime );
/PHP-5.5/sapi/apache2handler/
H A Dsapi_apache2.c234 ctx->finfo.st_size = ctx->r->finfo.size; in php_apache_sapi_get_stat()
/PHP-5.5/ext/pdo_odbc/
H A Dodbc_stmt.c425 P->len = SQL_LEN_DATA_AT_EXEC(sb.sb.st_size); in odbc_stmt_param_hook()
/PHP-5.5/sapi/apache2filter/
H A Dsapi_apache2.c195 ctx->finfo.st_size = ctx->r->finfo.size; in php_apache_sapi_get_stat()
/PHP-5.5/ext/opcache/
H A DZendAccelerator.c737 *size = tmpbuf->st_size; in zend_get_file_handle_timestamp()
819 *size = statbuf.st_size; in zend_get_file_handle_timestamp()
/PHP-5.5/ext/soap/
H A Dphp_sdl.c1556 buf = in = emalloc(st.st_size); in get_sdl_from_cache()
1557 if (read(f, in, st.st_size) != st.st_size) { in get_sdl_from_cache()
/PHP-5.5/TSRM/
H A Dtsrm_virtual_cwd.c389 buf->st_size = t; in php_sys_stat_ex()

Completed in 222 milliseconds

12