diff options
| author | Glenn L McGrath <bug1@ihug.co.nz> | 2003-01-05 04:01:56 +0000 |
|---|---|---|
| committer | Glenn L McGrath <bug1@ihug.co.nz> | 2003-01-05 04:01:56 +0000 |
| commit | 58c708af23d6ad855ea0cd1b61c2b87f26fc6988 (patch) | |
| tree | f685aca3eb4a763dd0c58a291c766f018f8656c3 /include | |
| parent | c2e74ca934860d7cd4b02ab51e4466ae34871223 (diff) | |
| download | busybox-w32-58c708af23d6ad855ea0cd1b61c2b87f26fc6988.tar.gz busybox-w32-58c708af23d6ad855ea0cd1b61c2b87f26fc6988.tar.bz2 busybox-w32-58c708af23d6ad855ea0cd1b61c2b87f26fc6988.zip | |
New applet: httpd, by Glenn Engel
Diffstat (limited to 'include')
| -rw-r--r-- | include/applets.h | 3 | ||||
| -rw-r--r-- | include/usage.h | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/include/applets.h b/include/applets.h index 5d8e7bb68..177e82352 100644 --- a/include/applets.h +++ b/include/applets.h | |||
| @@ -236,6 +236,9 @@ | |||
| 236 | #ifdef CONFIG_HOSTNAME | 236 | #ifdef CONFIG_HOSTNAME |
| 237 | APPLET(hostname, hostname_main, _BB_DIR_BIN, _BB_SUID_NEVER) | 237 | APPLET(hostname, hostname_main, _BB_DIR_BIN, _BB_SUID_NEVER) |
| 238 | #endif | 238 | #endif |
| 239 | #ifdef CONFIG_HTTPD | ||
| 240 | APPLET(httpd, httpd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER) | ||
| 241 | #endif | ||
| 239 | #ifdef CONFIG_HUSH | 242 | #ifdef CONFIG_HUSH |
| 240 | APPLET_NOUSAGE("hush", hush_main, _BB_DIR_BIN, _BB_SUID_NEVER) | 243 | APPLET_NOUSAGE("hush", hush_main, _BB_DIR_BIN, _BB_SUID_NEVER) |
| 241 | #endif | 244 | #endif |
diff --git a/include/usage.h b/include/usage.h index b5687115d..dfcc89626 100644 --- a/include/usage.h +++ b/include/usage.h | |||
| @@ -775,7 +775,20 @@ | |||
| 775 | #define hostname_example_usage \ | 775 | #define hostname_example_usage \ |
| 776 | "$ hostname\n" \ | 776 | "$ hostname\n" \ |
| 777 | "sage \n" | 777 | "sage \n" |
| 778 | 778 | #ifdef CONFIG_FEATURE_HTTPD_BASIC_AUTH | |
| 779 | #define USAGE_HTTPD_BASIC_AUTH(a) a | ||
| 780 | #else | ||
| 781 | #define USAGE_HTTPD_BASIC_AUTH(a) | ||
| 782 | #endif | ||
| 783 | #define httpd_trivial_usage \ | ||
| 784 | "[-p <port>] [-d/-e <string>]" USAGE_HTTPD_BASIC_AUTH(" [-c <conf file>] [-r <realm>]") | ||
| 785 | #define httpd_full_usage \ | ||
| 786 | "Listens for incoming http server requests.\n"\ | ||
| 787 | "Options:\n" \ | ||
| 788 | "\t-p PORT\tServer port (default 80).\n" \ | ||
| 789 | USAGE_HTTPD_BASIC_AUTH("\t-c FILE\tSpecifies configuration file. (default httpd.conf)\n\t-r REALM\tAuthentication Realm for Basic Authentication\n") \ | ||
| 790 | "\t-e STRING\tHtml encode STRING\n" \ | ||
| 791 | "\t-d STRING\tURL decode STRING\n" | ||
| 779 | #define hwclock_trivial_usage \ | 792 | #define hwclock_trivial_usage \ |
| 780 | "[-r|--show] [-s|--hctosys] [-w|--systohc] [-l|--localtime] [-u|--utc]" | 793 | "[-r|--show] [-s|--hctosys] [-w|--systohc] [-l|--localtime] [-u|--utc]" |
| 781 | #define hwclock_full_usage \ | 794 | #define hwclock_full_usage \ |
