aboutsummaryrefslogtreecommitdiff
path: root/cftw.h
blob: 612451e8c90ae9340d0db801c6a81b3f57e16aff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#ifndef CFTW_H
#define CFTW_H

#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,
    const struct stat *sb, void *user), void *user);

#endif /* CFTW_H */