diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-14 16:55:01 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-14 16:55:01 +0000 |
commit | 384b1d12f957a3a4c80fb32bc29cb79c282ac361 (patch) | |
tree | 8011c52fb98f2613626edfcd879508bc5c45d66a /include | |
parent | 0372f0f1999ace825a2265ad03b80be627b039fb (diff) | |
download | busybox-w32-384b1d12f957a3a4c80fb32bc29cb79c282ac361.tar.gz busybox-w32-384b1d12f957a3a4c80fb32bc29cb79c282ac361.tar.bz2 busybox-w32-384b1d12f957a3a4c80fb32bc29cb79c282ac361.zip |
httpd: add -v[v]: prints client addresses, HTTP codes returned [and URLs]
get_line - 70 +70
packed_usage 22811 22863 +52
handle_incoming_and_exit 2246 2277 +31
httpd_main 1141 1155 +14
sendHeaders 489 482 -7
getLine 77 - -77
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 3/1 up/down: 167/-84) Total: 83 bytes
text data bss dec hex filename
774335 1058 11092 786485 c0035 busybox_old
774447 1058 11092 786597 c00a5 busybox_unstripped
Diffstat (limited to 'include')
-rw-r--r-- | include/usage.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/usage.h b/include/usage.h index 41459e8c3..d9e2857e8 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -1344,8 +1344,8 @@ | |||
1344 | 1344 | ||
1345 | #define httpd_trivial_usage \ | 1345 | #define httpd_trivial_usage \ |
1346 | "[-c conffile]" \ | 1346 | "[-c conffile]" \ |
1347 | " [-p port]" \ | 1347 | " [-p [ip:]port]" \ |
1348 | " [-i] [-f]" \ | 1348 | " [-i] [-f] [-v[v]]" \ |
1349 | USE_FEATURE_HTTPD_SETUID(" [-u user[:grp]]") \ | 1349 | USE_FEATURE_HTTPD_SETUID(" [-u user[:grp]]") \ |
1350 | USE_FEATURE_HTTPD_BASIC_AUTH(" [-r realm]") \ | 1350 | USE_FEATURE_HTTPD_BASIC_AUTH(" [-r realm]") \ |
1351 | USE_FEATURE_HTTPD_AUTH_MD5(" [-m pass]") \ | 1351 | USE_FEATURE_HTTPD_AUTH_MD5(" [-m pass]") \ |
@@ -1355,9 +1355,10 @@ | |||
1355 | "Listen for incoming HTTP requests" \ | 1355 | "Listen for incoming HTTP requests" \ |
1356 | "\n\nOptions:" \ | 1356 | "\n\nOptions:" \ |
1357 | "\n -c FILE Configuration file (default httpd.conf)" \ | 1357 | "\n -c FILE Configuration file (default httpd.conf)" \ |
1358 | "\n -p PORT Server port (default 80)" \ | 1358 | "\n -p [IP:]PORT Bind to ip:port (default *:80)" \ |
1359 | "\n -i Inetd mode" \ | 1359 | "\n -i Inetd mode" \ |
1360 | "\n -f Do not daemonize" \ | 1360 | "\n -f Do not daemonize" \ |
1361 | "\n -v[v] Verbose" \ | ||
1361 | USE_FEATURE_HTTPD_SETUID( \ | 1362 | USE_FEATURE_HTTPD_SETUID( \ |
1362 | "\n -u USER[:GRP] Set uid/gid after binding to port") \ | 1363 | "\n -u USER[:GRP] Set uid/gid after binding to port") \ |
1363 | USE_FEATURE_HTTPD_BASIC_AUTH( \ | 1364 | USE_FEATURE_HTTPD_BASIC_AUTH( \ |
@@ -1366,7 +1367,7 @@ | |||
1366 | "\n -m PASS Crypt PASS with md5 algorithm") \ | 1367 | "\n -m PASS Crypt PASS with md5 algorithm") \ |
1367 | "\n -h HOME Home directory (default .)" \ | 1368 | "\n -h HOME Home directory (default .)" \ |
1368 | "\n -e STRING HTML encode STRING" \ | 1369 | "\n -e STRING HTML encode STRING" \ |
1369 | "\n -d STRING URL decode STRING" | 1370 | "\n -d STRING URL decode STRING" \ |
1370 | 1371 | ||
1371 | #define hwclock_trivial_usage \ | 1372 | #define hwclock_trivial_usage \ |
1372 | "[-r|--show] [-s|--hctosys] [-w|--systohc]" \ | 1373 | "[-r|--show] [-s|--hctosys] [-w|--systohc]" \ |