Lines Matching refs:st
455 - struct stat st;
457 + zend_stat_t st;
479 - if (stat(fn, &st) == 0 && S_ISDIR(st.st_mode)) {
483 + if (php_sys_stat(fn, &st) == 0 && S_ISDIR(st.st_mode)) {
506 - if (stat(mfn, &st) == -1 || !S_ISREG(st.st_mode)) {
508 + if (zend_stat(mfn, &st) == -1 || !S_ISREG(st.st_mode)) {
649 - struct stat st;
658 + php_stream_statbuf st;
679 + if (php_stream_stat_path_ex((char *)fn, 0, &st, NULL) == SUCCESS) {
680 + if (st.sb.st_mode & S_IFDIR) {
697 - if (fstat(fd, &st) == -1) {
698 + if (php_stream_stat(stream, &st) < 0) {
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,
2476 - struct stat st;
2487 - if (stat(hmagicpath, &st) == -1) {
2491 - if (stat(hmagicpath, &st) == -1)
2493 - if (S_ISDIR(st.st_mode)) {