aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-03-29 10:30:50 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-03-29 10:30:50 +0000
commit3e816c1252cc55e3763f946622129d31ea1f0f20 (patch)
tree5031fd816b1df09eaa897530a37ce814bba95011 /include
parent3d43edb28c80ee9cb54335f593d42d5d0471e15a (diff)
downloadbusybox-w32-3e816c1252cc55e3763f946622129d31ea1f0f20.tar.gz
busybox-w32-3e816c1252cc55e3763f946622129d31ea1f0f20.tar.bz2
busybox-w32-3e816c1252cc55e3763f946622129d31ea1f0f20.zip
- fold recurse, depthFirst and dereference params into one param flags.
Minor size improvement (-16b for size, -24b according to bloat-o-meter).
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h
index d734abed6..7f0ad2c25 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -231,11 +231,14 @@ extern const char *bb_mode_string(mode_t mode);
231extern int is_directory(const char *name, int followLinks, struct stat *statBuf); 231extern int is_directory(const char *name, int followLinks, struct stat *statBuf);
232extern int remove_file(const char *path, int flags); 232extern int remove_file(const char *path, int flags);
233extern int copy_file(const char *source, const char *dest, int flags); 233extern int copy_file(const char *source, const char *dest, int flags);
234extern int recursive_action(const char *fileName, int recurse, 234#define action_recurse (1<<0)
235 int followLinks, int depthFirst, 235#define action_followLinks (1<<1)
236#define action_depthFirst (1<<2)
237#define action_reverse (1<<3)
238extern int recursive_action(const char *fileName, unsigned flags,
236 int (*fileAction) (const char *fileName, struct stat* statbuf, void* userData, int depth), 239 int (*fileAction) (const char *fileName, struct stat* statbuf, void* userData, int depth),
237 int (*dirAction) (const char *fileName, struct stat* statbuf, void* userData, int depth), 240 int (*dirAction) (const char *fileName, struct stat* statbuf, void* userData, int depth),
238 void* userData, int depth); 241 void* userData, const unsigned depth);
239extern int device_open(const char *device, int mode); 242extern int device_open(const char *device, int mode);
240extern int get_console_fd(void); 243extern int get_console_fd(void);
241extern char *find_block_device(const char *path); 244extern char *find_block_device(const char *path);