|
|
| version 1.1, 2007/11/21 05:13:52 | version 1.2, 2007/12/04 05:10:47 |
|---|---|
| Line 1 | Line 1 |
| /* | |
| 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 | #ifndef __WALK_TREE_H |
| #define __WALK_TREE_H | #define __WALK_TREE_H |
| Line 6 | Line 26 |
| #define WALK_TREE_LOGICAL 0x4 | #define WALK_TREE_LOGICAL 0x4 |
| #define WALK_TREE_DEREFERENCE 0x8 | #define WALK_TREE_DEREFERENCE 0x8 |
| #define WALK_TREE_SYMLINK 0x10 | #define WALK_TREE_TOPLEVEL 0x100 |
| #define WALK_TREE_FAILED 0x20 | #define WALK_TREE_SYMLINK 0x200 |
| #define WALK_TREE_FAILED 0x400 | |
| struct stat; | struct stat; |
| extern int walk_tree(const char *path, int walk_flags, | extern int walk_tree(const char *path, int walk_flags, unsigned int num, |
| int (*func)(const char *, const struct stat *, int, void *), | int (*func)(const char *, const struct stat *, int, |
| void *arg); | void *), void *arg); |
| #endif | #endif |