Lines Matching refs:st
1139 struct stat st; in apprentice_load() local
1170 if (php_sys_stat(fn, &st) == 0 && S_ISDIR(st.st_mode)) { in apprentice_load()
1187 if (stat(mfn, &st) == -1 || !S_ISREG(st.st_mode)) { in apprentice_load()
2599 php_stream_statbuf st; in apprentice_map() local
2617 if (php_stream_stat_path_ex((char *)fn, 0, &st, NULL) == SUCCESS) { in apprentice_map()
2618 if (st.sb.st_mode & S_IFDIR) { in apprentice_map()
2638 if (php_stream_stat(stream, &st) < 0) { in apprentice_map()
2643 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()