0791d5779d67da0983375dc01dadec4c749b6f38Timo Sirainen/* Unlink all files from directory beginning with given prefix and having
e736ac97fd3896533f4ebf3b18a791bc3637b711Timo Sirainen ctime older than min_time. Makes sure that the directory's atime is updated.
e736ac97fd3896533f4ebf3b18a791bc3637b711Timo Sirainen Returns -1 if there were some errors. */
0791d5779d67da0983375dc01dadec4c749b6f38Timo Sirainenint unlink_old_files(const char *dir, const char *prefix, time_t min_time);