/* SPDX-License-Identifier: GPL-2.0-or-later */ #include #include static int v_alpm_extraction_probe(const char *path, int64_t *values) { struct stat info; if(lstat(path, &info) != 0) { return -1; } values[0] = info.st_atim.tv_sec; values[1] = info.st_atim.tv_nsec; values[2] = info.st_mtim.tv_sec; values[3] = info.st_mtim.tv_nsec; values[4] = info.st_blocks; return 0; }