summaryrefslogtreecommitdiff
path: root/include/walk_tree.h
blob: 96bb7a317569ba2131f6ea4cbdf4fa9d254352e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef __WALK_TREE_H
#define __WALK_TREE_H

#define WALK_TREE_RECURSIVE	0x1
#define WALK_TREE_PHYSICAL	0x2
#define WALK_TREE_LOGICAL	0x4
#define WALK_TREE_DEREFERENCE	0x8

#define WALK_TREE_SYMLINK	0x10
#define WALK_TREE_FAILED	0x20

struct stat;

extern int walk_tree(const char *path, int walk_flags,
		     int (*func)(const char *, const struct stat *, int, void *),
		     void *arg);

#endif