Lines Matching refs:st
547 struct stat st;
557 if (fstat(fd, &st) < 0) {
562 if (st.st_size < (off_t) sizeof(CatalogHeader)) {
567 p = mmap(NULL, PAGE_ALIGN(st.st_size), PROT_READ, MAP_SHARED, fd, 0);
579 st.st_size < (off_t) (le64toh(h->header_size) + le64toh(h->catalog_item_size) * le64toh(h->n_items))) {
581 munmap(p, st.st_size);
586 *_st = st;
634 struct stat st = {};
641 r = open_mmap(database, &fd, &st, &p);
662 munmap(p, st.st_size);
702 struct stat st;
710 r = open_mmap(database, &fd, &st, &p);
731 munmap(p, st.st_size);