From f7548d6d28c313cf80e6f3ef89aed16a19815df1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 11:51:24 +0200 Subject: Adding upstream version 1:2.3.19.1+dfsg1. Signed-off-by: Daniel Baumann --- src/lib/unlink-old-files.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/lib/unlink-old-files.h (limited to 'src/lib/unlink-old-files.h') diff --git a/src/lib/unlink-old-files.h b/src/lib/unlink-old-files.h new file mode 100644 index 0000000..927adb7 --- /dev/null +++ b/src/lib/unlink-old-files.h @@ -0,0 +1,9 @@ +#ifndef UNLINK_OLD_FILES_H +#define UNLINK_OLD_FILES_H + +/* Unlink all files from directory beginning with given prefix and having + ctime older than min_time. Makes sure that the directory's atime is updated. + Returns -1 if there were some errors. */ +int unlink_old_files(const char *dir, const char *prefix, time_t min_time); + +#endif -- cgit v1.2.3