summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRob Landley2006-08-20 22:12:18 +0000
committerRob Landley2006-08-20 22:12:18 +0000
commit0e4690d4ef9fe55ccf6db371c826112809e162f9 (patch)
tree1eac13023c328f3956a00f3e741eb1cda45696d0 /include
parent289e86a0a5b2482fc1b6a442d3acd749639e4d64 (diff)
downloadbusybox-0e4690d4ef9fe55ccf6db371c826112809e162f9.zip
busybox-0e4690d4ef9fe55ccf6db371c826112809e162f9.tar.gz
Michael Opdenacker contributed a readahead applet.
Diffstat (limited to 'include')
-rw-r--r--include/applets.h1
-rw-r--r--include/usage.h6
2 files changed, 7 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index a8b480b..0bb257b 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -219,6 +219,7 @@ USE_PRINTF(APPLET(printf, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_PS(APPLET(ps, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_PWD(APPLET(pwd, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_RDATE(APPLET(rdate, _BB_DIR_USR_SBIN, _BB_SUID_NEVER))
+USE_READAHEAD(APPLET(readahead, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_READLINK(APPLET(readlink, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_READPROFILE(APPLET(readprofile, _BB_DIR_USR_SBIN, _BB_SUID_NEVER))
USE_REALPATH(APPLET(realpath, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
diff --git a/include/usage.h b/include/usage.h
index 5bc82dc..ced9f68 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -2385,6 +2385,12 @@ USE_FEATURE_MDEV_CONFIG( \
"\t-s\tSet the system date and time (default)\n" \
"\t-p\tPrint the date and time"
+#define readahead_trivial_usage \
+ "[FILE]..."
+#define readahead_full_usage \
+ "Preloads FILE(s) in RAM cache so that subsequent reads for those" \
+ "files do not block on disk I/O."
+
#ifdef CONFIG_FEATURE_READLINK_FOLLOW
#define USAGE_READLINK_FOLLOW(a) a
#else