diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 1 | ||||
-rw-r--r-- | include/libbb.h | 2 | ||||
-rw-r--r-- | include/usage.h | 7 |
3 files changed, 10 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index 67f7db4a6..a7aee3a1d 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -101,6 +101,7 @@ USE_CP(APPLET_NOEXEC(cp, cp, _BB_DIR_BIN, _BB_SUID_NEVER, cp)) | |||
101 | USE_CPIO(APPLET(cpio, _BB_DIR_BIN, _BB_SUID_NEVER)) | 101 | USE_CPIO(APPLET(cpio, _BB_DIR_BIN, _BB_SUID_NEVER)) |
102 | USE_CROND(APPLET(crond, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) | 102 | USE_CROND(APPLET(crond, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) |
103 | USE_CRONTAB(APPLET(crontab, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)) | 103 | USE_CRONTAB(APPLET(crontab, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)) |
104 | USE_CRYPTPW(APPLET(cryptpw, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | ||
104 | USE_CUT(APPLET_NOEXEC(cut, cut, _BB_DIR_USR_BIN, _BB_SUID_NEVER, cut)) | 105 | USE_CUT(APPLET_NOEXEC(cut, cut, _BB_DIR_USR_BIN, _BB_SUID_NEVER, cut)) |
105 | USE_DATE(APPLET(date, _BB_DIR_BIN, _BB_SUID_NEVER)) | 106 | USE_DATE(APPLET(date, _BB_DIR_BIN, _BB_SUID_NEVER)) |
106 | USE_DC(APPLET(dc, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 107 | USE_DC(APPLET(dc, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
diff --git a/include/libbb.h b/include/libbb.h index be51f2520..32bb3113d 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -718,6 +718,7 @@ extern int bb_parse_mode(const char* s, mode_t* theMode); | |||
718 | 718 | ||
719 | char *concat_path_file(const char *path, const char *filename); | 719 | char *concat_path_file(const char *path, const char *filename); |
720 | char *concat_subpath_file(const char *path, const char *filename); | 720 | char *concat_subpath_file(const char *path, const char *filename); |
721 | /* NB: can violate const-ness (similarly to strchr) */ | ||
721 | char *last_char_is(const char *s, int c); | 722 | char *last_char_is(const char *s, int c); |
722 | 723 | ||
723 | 724 | ||
@@ -755,6 +756,7 @@ extern int index_in_substr_array(const char * const string_array[], const char * | |||
755 | extern void print_login_issue(const char *issue_file, const char *tty); | 756 | extern void print_login_issue(const char *issue_file, const char *tty); |
756 | extern void print_login_prompt(void); | 757 | extern void print_login_prompt(void); |
757 | 758 | ||
759 | extern void crypt_make_salt(char *p, int cnt); | ||
758 | 760 | ||
759 | int get_terminal_width_height(const int fd, int *width, int *height); | 761 | int get_terminal_width_height(const int fd, int *width, int *height); |
760 | 762 | ||
diff --git a/include/usage.h b/include/usage.h index afcc4b3d7..eab96011e 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -474,6 +474,13 @@ | |||
474 | " -d [user] delete crontab for user\n" \ | 474 | " -d [user] delete crontab for user\n" \ |
475 | " -c dir specify crontab directory" | 475 | " -c dir specify crontab directory" |
476 | 476 | ||
477 | #define cryptpw_trivial_usage \ | ||
478 | "[-a des|md5] [string]" | ||
479 | #define cryptpw_full_usage \ | ||
480 | "Outputs crypted string.\n" \ | ||
481 | "If string isn't supplied on cmdline, reads it from stdin.\n" \ | ||
482 | "\nOptions:" \ | ||
483 | "\n -a Algorithm to use (default: md5)" | ||
477 | 484 | ||
478 | #define cut_trivial_usage \ | 485 | #define cut_trivial_usage \ |
479 | "[OPTION]... [FILE]..." | 486 | "[OPTION]... [FILE]..." |