[BACK]Return to walk_tree.h CVS log [TXT][DIR] Up to [Development] / xfs-cmds / attr / include

File: [Development] / xfs-cmds / attr / include / walk_tree.h (download)

Revision 1.1, Wed Nov 21 05:13:52 2007 UTC (9 years, 10 months ago) by tes.longdrop.melbourne.sgi.com
Branch: MAIN

fix up tree walking for symlinks
Merge of master-melb:xfs-cmds:30105a by kenmcd.

#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