aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/libbb.h b/include/libbb.h
index cee37f9d8..3a958b555 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -459,9 +459,8 @@ void *xmmap_anon(size_t size) FAST_FUNC;
459# define cached_pagesize(var) (var) 459# define cached_pagesize(var) (var)
460#endif 460#endif
461 461
462 462/* Generate ls-style "mode string" like "-rwsr-xr-x" or "drwxrwxrwt" */
463//TODO: supply a pointer to char[11] buffer (avoid statics)? 463extern char *bb_mode_string(char buf[11], mode_t mode) FAST_FUNC;
464extern const char *bb_mode_string(mode_t mode) FAST_FUNC;
465extern int is_directory(const char *name, int followLinks) FAST_FUNC; 464extern int is_directory(const char *name, int followLinks) FAST_FUNC;
466enum { /* cp.c, mv.c, install.c depend on these values. CAREFUL when changing them! */ 465enum { /* cp.c, mv.c, install.c depend on these values. CAREFUL when changing them! */
467 FILEUTILS_PRESERVE_STATUS = 1 << 0, /* -p */ 466 FILEUTILS_PRESERVE_STATUS = 1 << 0, /* -p */
@@ -1651,7 +1650,7 @@ char *bb_ask_noecho_stdin(const char *prompt) FAST_FUNC;
1651int bb_ask_y_confirmation_FILE(FILE *fp) FAST_FUNC; 1650int bb_ask_y_confirmation_FILE(FILE *fp) FAST_FUNC;
1652int bb_ask_y_confirmation(void) FAST_FUNC; 1651int bb_ask_y_confirmation(void) FAST_FUNC;
1653 1652
1654/* Returns -1 if input is invalid. current_mode is a base for e.g. "u+rw" */ 1653/* Returns -1 if input is invalid. cur_mode is a base for e.g. "u+rw" */
1655int bb_parse_mode(const char* s, unsigned cur_mode) FAST_FUNC; 1654int bb_parse_mode(const char* s, unsigned cur_mode) FAST_FUNC;
1656 1655
1657/* 1656/*