Home
last modified time | relevance | path

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

12

/php-src/ext/fileinfo/libmagic/
H A Dis_csv.c189 if ((p = CAST(char *, malloc(st.st_size))) == NULL) in main()
191 (intmax_t)st.st_size); in main()
192 if (read(fd, p, st.st_size) != st.st_size) in main()
194 (intmax_t)st.st_size); in main()
195 printf("is csv %d\n", csv_parse(p, p + st.st_size)); in main()
H A Dis_simh.c200 if ((p = CAST(char *, malloc(st.st_size))) == NULL) in main()
202 (intmax_t)st.st_size); in main()
203 if (read(fd, p, st.st_size) != st.st_size) in main()
205 (intmax_t)st.st_size); in main()
206 printf("is simh %d\n", simh_parse(p, p + st.st_size)); in main()
H A Dbuffer.c76 b->elen = CAST(size_t, b->st.st_size) < b->flen ? in buffer_fill()
77 CAST(size_t, b->st.st_size) : b->flen; in buffer_fill()
86 b->eoff = b->st.st_size - b->elen; in buffer_fill()
H A Dis_json.c489 if ((p = CAST(char *, malloc(st.st_size))) == NULL) in main()
491 (intmax_t)st.st_size); in main()
492 if (read(fd, p, st.st_size) != st.st_size) in main()
494 (intmax_t)st.st_size); in main()
497 p + st.st_size, stats, 0)); in main()
H A Dfsmagic.c227 if ((ms->flags & MAGIC_DEVICES) == 0 && sb->st_size == 0) { in file_fsmagic()
H A Dapprentice.c3255 if (st.sb.st_size < 8 || st.sb.st_size > maxoff_t()) { in apprentice_map()
3257 st.sb.st_size < 8 ? "small" : "large"); in apprentice_map()
3262 map->len = CAST(size_t, st.sb.st_size); in apprentice_map()
3265 if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) { in apprentice_map()
3303 nentries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map()
3304 entries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map()
3305 if ((zend_off_t)(entries * sizeof(struct magic)) != st.sb.st_size) { in apprentice_map()
3307 dbname, (unsigned long long)st.sb.st_size, in apprentice_map()
H A Dder.c452 l = (size_t)st.st_size; in main()
/php-src/ext/session/
H A Dmod_files.c96 size_t st_size; member
240 if (ZSTR_LEN(val) < data->st_size) { in ps_files_write()
482 data->st_size = sbuf.st_size; in PS_READ_FUNC()
484 if (sbuf.st_size == 0) { in PS_READ_FUNC()
489 *val = zend_string_alloc(sbuf.st_size, 0); in PS_READ_FUNC()
516 if (n != (zend_long)sbuf.st_size) { in PS_READ_FUNC()
/php-src/ext/standard/
H A Diptc.c210 spoolbuf = zend_string_safe_alloc(1, iptcdata_len + sizeof(psheader) + 1024 + 1, sb.st_size, 0); in PHP_FUNCTION()
212 memset(poi, 0, iptcdata_len + sizeof(psheader) + sb.st_size + 1024 + 1); in PHP_FUNCTION()
H A Dftp_fopen_wrapper.c812 ssb->sb.st_size = 0; in php_stream_ftp_url_stat()
817 ssb->sb.st_size = atoi(tmp_line + 4); in php_stream_ftp_url_stat()
876 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.c877 RETURN_LONG((zend_long)stat_sb->st_size); in php_stat()
946 ZVAL_LONG(&stat_size, stat_sb->st_size); in php_stat()
/php-src/ext/dba/
H A Ddba_db4.c73 if (!s && !check_stat.st_size) {
87 if (!s && !check_stat.st_size) {
H A Ddba_db2.c46 if (!s && !check_stat.st_size) { in DBA_OPEN_FUNC()
H A Ddba_db3.c58 if (!s && !check_stat.st_size) {
/php-src/ext/zip/
H A Dzip_stream.c175 ssb->sb.st_size = sb.size; in php_zip_ops_stat()
178 ssb->sb.st_size = 0; in php_zip_ops_stat()
/php-src/ext/phar/
H A Dfunc_interceptors.c379 RETURN_LONG((zend_long)stat_sb->st_size); in phar_fancy_stat()
430 ZVAL_LONG(&stat_size, stat_sb->st_size); in phar_fancy_stat()
543 sb.st_size = 0; in phar_file_stat()
583 sb.st_size = 0; in phar_file_stat()
604 sb.st_size = data->uncompressed_filesize; in phar_file_stat()
616 sb.st_size = 0; in phar_file_stat()
H A Dstream.c499 ssb->sb.st_size = data->uncompressed_filesize; in phar_dostat()
507 ssb->sb.st_size = 0; in phar_dostat()
515 ssb->sb.st_size = 0; in phar_dostat()
/php-src/ext/fileinfo/
H A Dlibmagic.patch622 - if (st.st_size < 8 || st.st_size > maxoff_t()) {
624 + if (st.sb.st_size < 8 || st.sb.st_size > maxoff_t()) {
626 - st.st_size < 8 ? "small" : "large");
627 + st.sb.st_size < 8 ? "small" : "large");
631 - map->len = CAST(size_t, st.st_size);
652 + map->len = CAST(size_t, st.sb.st_size);
661 + if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) {
731 + dbname, (unsigned long long)st.sb.st_size,
950 b->elen = CAST(size_t, b->st.st_size) < b->flen ?
951 CAST(size_t, b->st.st_size) : b->flen;
[all …]
/php-src/win32/
H A Dioutil.c881 buf->st_size = _buf.st_size; in php_win32_ioutil_fstat_int()
964 buf->st_size = (zend_long)t.QuadPart; in php_win32_ioutil_fstat_int()
H A Dioutil.h705 php_win32_ioutil_size_t st_size; member
/php-src/Zend/
H A Dzend_stream.c49 return buf.st_size; in zend_stream_stdio_fsizer()
/php-src/main/streams/
H A Dplain_wrapper.c759 if (range->offset > data->sb.st_size) { in php_stdiop_set_option()
760 range->offset = data->sb.st_size; in php_stdiop_set_option()
763 range->length > data->sb.st_size - range->offset) { in php_stdiop_set_option()
764 range->length = data->sb.st_size - range->offset; in php_stdiop_set_option()
H A Dmemory.c198 ssb->sb.st_size = ZSTR_LEN(ms->data); in php_stream_memory_stat()
/php-src/ext/pdo_sqlite/
H A Dpdo_sqlite.c270 ssb->sb.st_size = sqlite3_stream->size; in php_pdosqlite3_stream_stat()
/php-src/sapi/apache2handler/
H A Dsapi_apache2.c232 ctx->finfo.st_size = ctx->r->finfo.size; in php_apache_sapi_get_stat()

Completed in 79 milliseconds

12