/* Copyright (c) 2002-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ioloop.h"
#include "str.h"
#include "unlink-old-files.h"
#include <signal.h>
#include <unistd.h>
#include <dirent.h>
#include <utime.h>
static int
{
struct dirent *d;
return -1;
}
/* update atime immediately, so if this scanning is done based on
atime it won't be done by multiple processes if the scan is slow */
if (d->d_name[0] == '.' &&
/* skip . and .. */
continue;
}
continue;
}
}
return 0;
}
{
int ret;
T_BEGIN {
} T_END;
return ret;
}