Lines Matching refs:st
45 struct stat st;
310 if (fstat(fileno(hwdb->f), &hwdb->st) < 0 ||
311 (size_t)hwdb->st.st_size < offsetof(struct trie_header_f, strings_len) + 8)
314 hwdb->map = mmap(0, hwdb->st.st_size, PROT_READ, MAP_SHARED, fileno(hwdb->f), 0);
319 (size_t)hwdb->st.st_size != le64toh(hwdb->head->file_size)) {
326 log_debug("file size: %8"PRIi64" bytes", hwdb->st.st_size);
348 munmap((void *)hwdb->map, hwdb->st.st_size);
361 struct stat st;
370 if (stat(p, &st) >= 0) {
378 if (timespec_load(&hwdb->st.st_mtim) != timespec_load(&st.st_mtim))