Lines Matching defs:st
712 struct stat st;
731 if (stat(fn, &st) == 0 && S_ISDIR(st.st_mode)) {
740 if (stat(subfn, &st) == -1 || !S_ISREG(st.st_mode))
2155 struct stat st;
2169 if (fstat(fd, &st) == -1) {
2173 if (st.st_size < 8) {
2179 if ((mm = mmap(0, (size_t)st.st_size, PROT_READ|PROT_WRITE,
2186 if ((mm = CAST(void *, malloc((size_t)st.st_size))) == NULL) {
2187 file_oomem(ms, (size_t)st.st_size);
2190 if (read(fd, mm, (size_t)st.st_size) != (ssize_t)st.st_size) {
2218 *nmagicp = (uint32_t)(st.st_size / sizeof(struct magic));
2232 (void)munmap((void *)mm, (size_t)st.st_size);