| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | #include <stdint.h> |
| 3 | #include <sys/stat.h> |
| 4 | |
| 5 | static int v_alpm_extraction_probe(const char *path, int64_t *values) { |
| 6 | struct stat info; |
| 7 | if(lstat(path, &info) != 0) { return -1; } |
| 8 | values[0] = info.st_atim.tv_sec; |
| 9 | values[1] = info.st_atim.tv_nsec; |
| 10 | values[2] = info.st_mtim.tv_sec; |
| 11 | values[3] = info.st_mtim.tv_nsec; |
| 12 | values[4] = info.st_blocks; |
| 13 | return 0; |
| 14 | } |
| 15 |