Lines Matching refs:st_size
702 - if (st.st_size < 8 || st.st_size > MAXMAGIC_SIZE) {
703 + if (st.sb.st_size < 8 || st.sb.st_size > MAXMAGIC_SIZE) {
705 - st.st_size < 8 ? "small" : "large");
706 + st.sb.st_size < 8 ? "small" : "large");
710 - map->len = (size_t)st.st_size;
713 - if ((map->p = mmap(0, (size_t)st.st_size, PROT_READ|PROT_WRITE,
721 + map->len = (size_t)st.sb.st_size;
727 + if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) {
763 - if (mprotect(map->p, (size_t)st.st_size, PROT_READ) == -1) {
775 + nentries = (uint32_t)(st.sb.st_size / sizeof(struct magic));
776 + entries = (uint32_t)(st.sb.st_size / sizeof(struct magic));
777 + if ((zend_off_t)(entries * sizeof(struct magic)) != st.sb.st_size) {
779 + dbname, (unsigned long long)st.sb.st_size,