Lines Matching refs:st_size
622 - 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);
634 - if ((map->p = mmap(0, CAST(size_t, st.st_size), PROT_READ|PROT_WRITE,
652 + map->len = CAST(size_t, st.sb.st_size);
659 - if (mprotect(map->p, CAST(size_t, st.st_size), PROT_READ) == -1) {
661 + if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) {
727 + nentries = (uint32_t)(st.sb.st_size / sizeof(struct magic));
728 + entries = (uint32_t)(st.sb.st_size / sizeof(struct magic));
729 + if ((zend_off_t)(entries * sizeof(struct magic)) != 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;
962 b->eoff = b->st.st_size - b->elen;