aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 11596346d..9e6ee8434 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -262,20 +262,21 @@ extern char *strrstr(const char *haystack, const char *needle) FAST_FUNC;
262extern const char *bb_mode_string(mode_t mode) FAST_FUNC; 262extern const char *bb_mode_string(mode_t mode) FAST_FUNC;
263extern int is_directory(const char *name, int followLinks, struct stat *statBuf) FAST_FUNC; 263extern int is_directory(const char *name, int followLinks, struct stat *statBuf) FAST_FUNC;
264enum { /* DO NOT CHANGE THESE VALUES! cp.c, mv.c, install.c depend on them. */ 264enum { /* DO NOT CHANGE THESE VALUES! cp.c, mv.c, install.c depend on them. */
265 FILEUTILS_PRESERVE_STATUS = 1, 265 FILEUTILS_PRESERVE_STATUS = 1 << 0, /* -p */
266 FILEUTILS_DEREFERENCE = 2, 266 FILEUTILS_DEREFERENCE = 1 << 1, /* !-d */
267 FILEUTILS_RECUR = 4, 267 FILEUTILS_RECUR = 1 << 2, /* -R */
268 FILEUTILS_FORCE = 8, 268 FILEUTILS_FORCE = 1 << 3, /* -f */
269 FILEUTILS_INTERACTIVE = 0x10, 269 FILEUTILS_INTERACTIVE = 1 << 4, /* -i */
270 FILEUTILS_MAKE_HARDLINK = 0x20, 270 FILEUTILS_MAKE_HARDLINK = 1 << 5, /* -l */
271 FILEUTILS_MAKE_SOFTLINK = 0x40, 271 FILEUTILS_MAKE_SOFTLINK = 1 << 6, /* -s */
272 FILEUTILS_DEREF_SOFTLINK = 0x80, 272 FILEUTILS_DEREF_SOFTLINK = 1 << 7, /* -L */
273 FILEUTILS_DEREFERENCE_L0 = 1 << 8, /* -H */
273#if ENABLE_SELINUX 274#if ENABLE_SELINUX
274 FILEUTILS_PRESERVE_SECURITY_CONTEXT = 0x100, 275 FILEUTILS_PRESERVE_SECURITY_CONTEXT = 1 << 9, /* -c */
275 FILEUTILS_SET_SECURITY_CONTEXT = 0x200 276 FILEUTILS_SET_SECURITY_CONTEXT = 1 << 10,
276#endif 277#endif
277}; 278};
278#define FILEUTILS_CP_OPTSTR "pdRfilsL" IF_SELINUX("c") 279#define FILEUTILS_CP_OPTSTR "pdRfilsLH" IF_SELINUX("c")
279extern int remove_file(const char *path, int flags) FAST_FUNC; 280extern int remove_file(const char *path, int flags) FAST_FUNC;
280/* NB: without FILEUTILS_RECUR in flags, it will basically "cat" 281/* NB: without FILEUTILS_RECUR in flags, it will basically "cat"
281 * the source, not copy (unless "source" is a directory). 282 * the source, not copy (unless "source" is a directory).