aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/applets.h1
-rw-r--r--include/libbb.h5
-rw-r--r--include/usage.h15
3 files changed, 19 insertions, 2 deletions
diff --git a/include/applets.h b/include/applets.h
index ad3925577..9c844eeae 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -252,6 +252,7 @@ USE_MKFIFO(APPLET(mkfifo, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
252//USE_MKE2FS(APPLET_ODDNAME(mkfs.ext3, mke2fs, _BB_DIR_SBIN, _BB_SUID_NEVER, mkfs_ext3)) 252//USE_MKE2FS(APPLET_ODDNAME(mkfs.ext3, mke2fs, _BB_DIR_SBIN, _BB_SUID_NEVER, mkfs_ext3))
253USE_MKFS_MINIX(APPLET_ODDNAME(mkfs.minix, mkfs_minix, _BB_DIR_SBIN, _BB_SUID_NEVER, mkfs_minix)) 253USE_MKFS_MINIX(APPLET_ODDNAME(mkfs.minix, mkfs_minix, _BB_DIR_SBIN, _BB_SUID_NEVER, mkfs_minix))
254USE_MKNOD(APPLET(mknod, _BB_DIR_BIN, _BB_SUID_NEVER)) 254USE_MKNOD(APPLET(mknod, _BB_DIR_BIN, _BB_SUID_NEVER))
255USE_MKPASSWD(APPLET(mkpasswd, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
255USE_MKSWAP(APPLET(mkswap, _BB_DIR_SBIN, _BB_SUID_NEVER)) 256USE_MKSWAP(APPLET(mkswap, _BB_DIR_SBIN, _BB_SUID_NEVER))
256USE_MKTEMP(APPLET(mktemp, _BB_DIR_BIN, _BB_SUID_NEVER)) 257USE_MKTEMP(APPLET(mktemp, _BB_DIR_BIN, _BB_SUID_NEVER))
257USE_MODPROBE(APPLET(modprobe, _BB_DIR_SBIN, _BB_SUID_NEVER)) 258USE_MODPROBE(APPLET(modprobe, _BB_DIR_SBIN, _BB_SUID_NEVER))
diff --git a/include/libbb.h b/include/libbb.h
index acae93a56..a34e8a1f9 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1021,9 +1021,10 @@ extern int del_loop(const char *device) FAST_FUNC;
1021 * return value: 1: read-only loopdev was setup, 0: rw, < 0: error */ 1021 * return value: 1: read-only loopdev was setup, 0: rw, < 0: error */
1022extern int set_loop(char **devname, const char *file, unsigned long long offset) FAST_FUNC; 1022extern int set_loop(char **devname, const char *file, unsigned long long offset) FAST_FUNC;
1023 1023
1024 1024/* Like bb_ask below, but asks on stdin with no timeout. */
1025char *bb_ask_stdin(const char * prompt) FAST_FUNC;
1025//TODO: pass buf pointer or return allocated buf (avoid statics)? 1026//TODO: pass buf pointer or return allocated buf (avoid statics)?
1026char *bb_askpass(int timeout, const char * prompt) FAST_FUNC; 1027char *bb_ask(const int fd, int timeout, const char * prompt) FAST_FUNC;
1027int bb_ask_confirmation(void) FAST_FUNC; 1028int bb_ask_confirmation(void) FAST_FUNC;
1028 1029
1029int bb_parse_mode(const char* s, mode_t* theMode) FAST_FUNC; 1030int bb_parse_mode(const char* s, mode_t* theMode) FAST_FUNC;
diff --git a/include/usage.h b/include/usage.h
index 000b864d6..a174222be 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -2618,6 +2618,21 @@
2618 "$ mknod /dev/fd0 b 2 0\n" \ 2618 "$ mknod /dev/fd0 b 2 0\n" \
2619 "$ mknod -m 644 /tmp/pipe p\n" 2619 "$ mknod -m 644 /tmp/pipe p\n"
2620 2620
2621#define mkpasswd_trivial_usage \
2622 "[OPTIONS] [PASSWORD]"
2623#define mkpasswd_full_usage "\n\n" \
2624 "Crypts the PASSWORD using crypt(3)\n" \
2625 "\nOptions:" \
2626 "\n\t-P"USE_GETOPT_LONG(", --password-fd=")"NUM\tread password from fd NUM" \
2627 "\n\t-s"USE_GETOPT_LONG(", --stdin")"\t\tuse stdin; like -P0" \
2628 "\n\t-m"USE_GETOPT_LONG(", --method=")"TYPE\tEncryption method TYPE" \
2629 "\n\t-S"USE_GETOPT_LONG(", --salt=")"SALT\t\tuse SALT" \
2630 //"\n\t-l"USE_GETOPT_LONG(", --length=")"LEN\tRandom password with length LEN"
2631
2632#define mkpasswd_example_usage \
2633 "$ mkpasswd -m md5\n" \
2634 "$ mkpasswd -l 12\n"
2635
2621#define mkswap_trivial_usage \ 2636#define mkswap_trivial_usage \
2622 "DEVICE" 2637 "DEVICE"
2623#define mkswap_full_usage "\n\n" \ 2638#define mkswap_full_usage "\n\n" \