Lines Matching refs:st
1327 zend_stat_t st; in apprentice_load() local
1352 if (php_sys_stat(fn, &st) == 0 && S_ISDIR(st.st_mode)) { in apprentice_load()
1369 if (zend_stat(mfn, &st) == -1 || !S_ISREG(st.st_mode)) { in apprentice_load()
3031 php_stream_statbuf st; in apprentice_map() local
3048 if (php_stream_stat_path_ex((char *)fn, 0, &st, NULL) == SUCCESS) { in apprentice_map()
3049 if (st.sb.st_mode & S_IFDIR) { in apprentice_map()
3066 if (php_stream_stat(stream, &st) < 0) { in apprentice_map()
3071 if (st.sb.st_size < 8 || st.sb.st_size > maxoff_t()) { in apprentice_map()
3073 st.sb.st_size < 8 ? "small" : "large"); in apprentice_map()
3078 map->len = CAST(size_t, st.sb.st_size); in apprentice_map()
3081 if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) { in apprentice_map()
3119 nentries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map()
3120 entries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map()
3121 if ((zend_off_t)(entries * sizeof(struct magic)) != st.sb.st_size) { in apprentice_map()
3123 dbname, (unsigned long long)st.sb.st_size, in apprentice_map()