summaryrefslogtreecommitdiffstats
path: root/src/lib/unlink-old-files.h
blob: 927adb745c0ac081bcc22daf33d70660eb246dae (plain)
1
2
3
4
5
6
7
8
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