aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul Fox <pgf@brightstareng.com>2006-06-08 21:37:26 +0000
committerPaul Fox <pgf@brightstareng.com>2006-06-08 21:37:26 +0000
commit6ab037872fa294d20d1f84403d1ac4dd4b8cbd86 (patch)
tree5f109ab555b2e3ca7df717cd7590058ab12d54c1 /include
parent176f2df69b70ad53d4e2f893d9d8fe1c254e405d (diff)
downloadbusybox-w32-6ab037872fa294d20d1f84403d1ac4dd4b8cbd86.tar.gz
busybox-w32-6ab037872fa294d20d1f84403d1ac4dd4b8cbd86.tar.bz2
busybox-w32-6ab037872fa294d20d1f84403d1ac4dd4b8cbd86.zip
made "test" an ash built-in.
moved the contents of libbb/bb_echo.c back into coreutils/echo.c, which is a more reasonable place for them than libbb. this forces anyone who wants echo and test to be builtin to ash to also have them available as applets. their cost is very small, and the number of people who wouldn't want them as applets is also very small. added warning about shell builtins vs. CONFIG_FEATURE_SH_STANDALONE_SHELL, which conflicts with their use. thanks to nathanael copa for debugging help. some string size optimization in test.c may have been lost with this commit, but this is a good new baseline.
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index accc08ddf..b93b7a618 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -118,6 +118,7 @@ extern void bb_verror_msg(const char *s, va_list p) __attribute__ ((format (prin
118extern void bb_vperror_msg(const char *s, va_list p) __attribute__ ((format (printf, 1, 0))); 118extern void bb_vperror_msg(const char *s, va_list p) __attribute__ ((format (printf, 1, 0)));
119 119
120extern int bb_echo(int argc, char** argv); 120extern int bb_echo(int argc, char** argv);
121extern int bb_test(int argc, char** argv);
121 122
122extern const char *bb_mode_string(int mode); 123extern const char *bb_mode_string(int mode);
123extern int is_directory(const char *name, int followLinks, struct stat *statBuf); 124extern int is_directory(const char *name, int followLinks, struct stat *statBuf);