2023-03-06 05:04:26 +01:00
|
|
|
#ifndef CFTW_H
|
|
|
|
#define CFTW_H
|
|
|
|
|
2023-07-11 13:08:06 +02:00
|
|
|
#include <stdbool.h>
|
2023-03-06 05:04:26 +01:00
|
|
|
#include <sys/stat.h>
|
|
|
|
|
|
|
|
/* Thread-safe variant of ftw(3) and nftw(3) that allows passing an
|
|
|
|
* opaque pointer and removes some unneeded parameters. */
|
|
|
|
int cftw(const char *dirpath, int (*fn)(const char *fpath,
|
2023-07-11 13:08:06 +02:00
|
|
|
const struct stat *sb, bool *done, void *user), void *user);
|
2023-03-06 05:04:26 +01:00
|
|
|
|
|
|
|
#endif /* CFTW_H */
|