diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 3 | ||||
-rw-r--r-- | include/usage.h | 11 | ||||
-rw-r--r-- | include/xatonum.h | 4 |
3 files changed, 17 insertions, 1 deletions
diff --git a/include/applets.h b/include/applets.h index 7838757f5..5fbb3461e 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -155,8 +155,9 @@ IF_FDISK(APPLET(fdisk, _BB_DIR_SBIN, _BB_SUID_NEVER)) | |||
155 | IF_FEATURE_GREP_FGREP_ALIAS(APPLET_ODDNAME(fgrep, grep, _BB_DIR_BIN, _BB_SUID_NEVER, fgrep)) | 155 | IF_FEATURE_GREP_FGREP_ALIAS(APPLET_ODDNAME(fgrep, grep, _BB_DIR_BIN, _BB_SUID_NEVER, fgrep)) |
156 | IF_FIND(APPLET_NOEXEC(find, find, _BB_DIR_USR_BIN, _BB_SUID_NEVER, find)) | 156 | IF_FIND(APPLET_NOEXEC(find, find, _BB_DIR_USR_BIN, _BB_SUID_NEVER, find)) |
157 | IF_FINDFS(APPLET(findfs, _BB_DIR_SBIN, _BB_SUID_MAYBE)) | 157 | IF_FINDFS(APPLET(findfs, _BB_DIR_SBIN, _BB_SUID_MAYBE)) |
158 | //IF_FLASH_ERASEALL(APPLET_ODDNAME(flash_eraseall, flash_eraseall, _BB_DIR_USR_SBIN, _BB_SUID_NEVER, flash_eraseall)) | ||
159 | IF_FLASH_ERASEALL(APPLET(flash_eraseall, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) | 158 | IF_FLASH_ERASEALL(APPLET(flash_eraseall, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) |
159 | IF_FLASH_LOCK(APPLET_ODDNAME(flash_lock, flash_lock_unlock, _BB_DIR_USR_SBIN, _BB_SUID_NEVER, flash_lock)) | ||
160 | IF_FLASH_UNLOCK(APPLET_ODDNAME(flash_unlock, flash_lock_unlock, _BB_DIR_USR_SBIN, _BB_SUID_NEVER, flash_unlock)) | ||
160 | IF_FOLD(APPLET(fold, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 161 | IF_FOLD(APPLET(fold, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
161 | IF_FREE(APPLET(free, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 162 | IF_FREE(APPLET(free, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
162 | IF_FREERAMDISK(APPLET(freeramdisk, _BB_DIR_SBIN, _BB_SUID_NEVER)) | 163 | IF_FREERAMDISK(APPLET(freeramdisk, _BB_DIR_SBIN, _BB_SUID_NEVER)) |
diff --git a/include/usage.h b/include/usage.h index 1e327fb97..e6069259b 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -1248,6 +1248,17 @@ | |||
1248 | "$ find / -name passwd\n" \ | 1248 | "$ find / -name passwd\n" \ |
1249 | "/etc/passwd\n" | 1249 | "/etc/passwd\n" |
1250 | 1250 | ||
1251 | #define flash_lock_trivial_usage \ | ||
1252 | "MTD_DEVICE OFFSET SECTORS" | ||
1253 | #define flash_lock_full_usage "\n\n" \ | ||
1254 | "Lock part or all of an MTD device. If SECTORS is -1, then all sectors\n" \ | ||
1255 | "will be locked, regardless of the value of OFFSET" | ||
1256 | |||
1257 | #define flash_unlock_trivial_usage \ | ||
1258 | "MTD_DEVICE" | ||
1259 | #define flash_unlock_full_usage "\n\n" \ | ||
1260 | "Unlock an MTD device" | ||
1261 | |||
1251 | #define flash_eraseall_trivial_usage \ | 1262 | #define flash_eraseall_trivial_usage \ |
1252 | "[-jq] MTD_DEVICE" | 1263 | "[-jq] MTD_DEVICE" |
1253 | #define flash_eraseall_full_usage "\n\n" \ | 1264 | #define flash_eraseall_full_usage "\n\n" \ |
diff --git a/include/xatonum.h b/include/xatonum.h index ee816efb4..864d2a383 100644 --- a/include/xatonum.h +++ b/include/xatonum.h | |||
@@ -22,6 +22,7 @@ unsigned type xato##UT##_sfx(const char *str, const struct suffix_mult *sfx) FAS | |||
22 | unsigned type xato##UT(const char *str) FAST_FUNC; \ | 22 | unsigned type xato##UT(const char *str) FAST_FUNC; \ |
23 | type xstrto##T##_range_sfx(const char *str, int b, type l, type u, const struct suffix_mult *sfx) FAST_FUNC; \ | 23 | type xstrto##T##_range_sfx(const char *str, int b, type l, type u, const struct suffix_mult *sfx) FAST_FUNC; \ |
24 | type xstrto##T##_range(const char *str, int b, type l, type u) FAST_FUNC; \ | 24 | type xstrto##T##_range(const char *str, int b, type l, type u) FAST_FUNC; \ |
25 | type xstrto##T(const char *str, int b) FAST_FUNC; \ | ||
25 | type xato##T##_range_sfx(const char *str, type l, type u, const struct suffix_mult *sfx) FAST_FUNC; \ | 26 | type xato##T##_range_sfx(const char *str, type l, type u, const struct suffix_mult *sfx) FAST_FUNC; \ |
26 | type xato##T##_range(const char *str, type l, type u) FAST_FUNC; \ | 27 | type xato##T##_range(const char *str, type l, type u) FAST_FUNC; \ |
27 | type xato##T##_sfx(const char *str, const struct suffix_mult *sfx) FAST_FUNC; \ | 28 | type xato##T##_sfx(const char *str, const struct suffix_mult *sfx) FAST_FUNC; \ |
@@ -66,6 +67,9 @@ static ALWAYS_INLINE \ | |||
66 | narrow xstrto##N##_range(const char *str, int b, narrow l, narrow u) \ | 67 | narrow xstrto##N##_range(const char *str, int b, narrow l, narrow u) \ |
67 | { return xstrto##W##_range(str, b, l, u); } \ | 68 | { return xstrto##W##_range(str, b, l, u); } \ |
68 | static ALWAYS_INLINE \ | 69 | static ALWAYS_INLINE \ |
70 | narrow xstrto##N(const char *str, int b) \ | ||
71 | { return xstrto##W(str, b); } \ | ||
72 | static ALWAYS_INLINE \ | ||
69 | narrow xato##N##_range_sfx(const char *str, narrow l, narrow u, const struct suffix_mult *sfx) \ | 73 | narrow xato##N##_range_sfx(const char *str, narrow l, narrow u, const struct suffix_mult *sfx) \ |
70 | { return xato##W##_range_sfx(str, l, u, sfx); } \ | 74 | { return xato##W##_range_sfx(str, l, u, sfx); } \ |
71 | static ALWAYS_INLINE \ | 75 | static ALWAYS_INLINE \ |