diff options
author | Tim Shimmin <tes@sgi.com> | 2007-11-21 05:14:46 +0000 |
---|---|---|
committer | Tim Shimmin <tes@sgi.com> | 2007-11-21 05:14:46 +0000 |
commit | e26d3f3349fa03f97f970fb6e68e4e242140a0d1 (patch) | |
tree | e3ac8c044a4f3114fbda5540fb30729f6783bdf1 /include | |
parent | d3346766d78a32194a06ee9d7f0d80cf7cd13c8e (diff) | |
download | acl-e26d3f3349fa03f97f970fb6e68e4e242140a0d1.tar.gz |
fix up tree walking code with symlinks for acl commands
Merge of master-melb:xfs-cmds:30109a by kenmcd.
Diffstat (limited to 'include')
-rw-r--r-- | include/walk_tree.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/include/walk_tree.h b/include/walk_tree.h new file mode 100644 index 0000000..9045bad --- /dev/null +++ b/include/walk_tree.h @@ -0,0 +1,38 @@ +/* + File: walk_tree.h + + Copyright (C) 2007 Andreas Gruenbacher <a.gruenbacher@computer.org> + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +*/ + +#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 |