aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h11
-rw-r--r--include/xatonum.h4
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))
155IF_FEATURE_GREP_FGREP_ALIAS(APPLET_ODDNAME(fgrep, grep, _BB_DIR_BIN, _BB_SUID_NEVER, fgrep)) 155IF_FEATURE_GREP_FGREP_ALIAS(APPLET_ODDNAME(fgrep, grep, _BB_DIR_BIN, _BB_SUID_NEVER, fgrep))
156IF_FIND(APPLET_NOEXEC(find, find, _BB_DIR_USR_BIN, _BB_SUID_NEVER, find)) 156IF_FIND(APPLET_NOEXEC(find, find, _BB_DIR_USR_BIN, _BB_SUID_NEVER, find))
157IF_FINDFS(APPLET(findfs, _BB_DIR_SBIN, _BB_SUID_MAYBE)) 157IF_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))
159IF_FLASH_ERASEALL(APPLET(flash_eraseall, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) 158IF_FLASH_ERASEALL(APPLET(flash_eraseall, _BB_DIR_USR_SBIN, _BB_SUID_NEVER))
159IF_FLASH_LOCK(APPLET_ODDNAME(flash_lock, flash_lock_unlock, _BB_DIR_USR_SBIN, _BB_SUID_NEVER, flash_lock))
160IF_FLASH_UNLOCK(APPLET_ODDNAME(flash_unlock, flash_lock_unlock, _BB_DIR_USR_SBIN, _BB_SUID_NEVER, flash_unlock))
160IF_FOLD(APPLET(fold, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 161IF_FOLD(APPLET(fold, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
161IF_FREE(APPLET(free, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 162IF_FREE(APPLET(free, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
162IF_FREERAMDISK(APPLET(freeramdisk, _BB_DIR_SBIN, _BB_SUID_NEVER)) 163IF_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
22unsigned type xato##UT(const char *str) FAST_FUNC; \ 22unsigned type xato##UT(const char *str) FAST_FUNC; \
23type xstrto##T##_range_sfx(const char *str, int b, type l, type u, const struct suffix_mult *sfx) FAST_FUNC; \ 23type xstrto##T##_range_sfx(const char *str, int b, type l, type u, const struct suffix_mult *sfx) FAST_FUNC; \
24type xstrto##T##_range(const char *str, int b, type l, type u) FAST_FUNC; \ 24type xstrto##T##_range(const char *str, int b, type l, type u) FAST_FUNC; \
25type xstrto##T(const char *str, int b) FAST_FUNC; \
25type xato##T##_range_sfx(const char *str, type l, type u, const struct suffix_mult *sfx) FAST_FUNC; \ 26type xato##T##_range_sfx(const char *str, type l, type u, const struct suffix_mult *sfx) FAST_FUNC; \
26type xato##T##_range(const char *str, type l, type u) FAST_FUNC; \ 27type xato##T##_range(const char *str, type l, type u) FAST_FUNC; \
27type xato##T##_sfx(const char *str, const struct suffix_mult *sfx) FAST_FUNC; \ 28type xato##T##_sfx(const char *str, const struct suffix_mult *sfx) FAST_FUNC; \
@@ -66,6 +67,9 @@ static ALWAYS_INLINE \
66narrow xstrto##N##_range(const char *str, int b, narrow l, narrow u) \ 67narrow 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); } \
68static ALWAYS_INLINE \ 69static ALWAYS_INLINE \
70narrow xstrto##N(const char *str, int b) \
71{ return xstrto##W(str, b); } \
72static ALWAYS_INLINE \
69narrow xato##N##_range_sfx(const char *str, narrow l, narrow u, const struct suffix_mult *sfx) \ 73narrow 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); } \
71static ALWAYS_INLINE \ 75static ALWAYS_INLINE \