diff --git a/Documentation/NuttxPortingGuide.html b/Documentation/NuttxPortingGuide.html index 5c5b49ef1b2..ee91135ffcd 100644 --- a/Documentation/NuttxPortingGuide.html +++ b/Documentation/NuttxPortingGuide.html @@ -12,7 +12,7 @@
Last Updated: July 12, 2009
+Last Updated: July 18, 2009
@@ -2384,10 +2384,6 @@ extern void up_ledoff(int led);CONFIG_THTTPD_CGI_TIMELIMIT: How many seconds to allow CGI programs
to run before killing them.
- CONFIG_THTTPD_CGI_OUTFD: In NuttX, CGI cannot use stdout for output.
- Rather, it must use this file descriptor number.
- CONFIG_THTTPD_CHARSET- The default character set name to use with
text MIME types.
diff --git a/configs/README.txt b/configs/README.txt
index 9c23b9d9239..c16e22a5cfe 100644
--- a/configs/README.txt
+++ b/configs/README.txt
@@ -369,8 +369,6 @@ defconfig -- This is a configuration file similar to the Linux
CONFIG_THTTPD_CGI_BYTECOUNT - Byte output limit for CGI tasks.
CONFIG_THTTPD_CGI_TIMELIMIT - How many seconds to allow CGI programs
to run before killing them.
- CONFIG_THTTPD_CGI_OUTFD - In NuttX, CGI cannot use stdout for output.
- Rather, it must use this file descriptor number.
CONFIG_THTTPD_CHARSET- The default character set name to use with
text MIME types.
CONFIG_THTTPD_IOBUFFERSIZE -
diff --git a/configs/eagle100/thttpd/defconfig b/configs/eagle100/thttpd/defconfig
index 189aa0e8761..49dd962c932 100644
--- a/configs/eagle100/thttpd/defconfig
+++ b/configs/eagle100/thttpd/defconfig
@@ -494,8 +494,6 @@ CONFIG_NET_RESOLV_ENTRIES=4
# CONFIG_THTTPD_CGI_BYTECOUNT - Byte output limit for CGI tasks.
# CONFIG_THTTPD_CGI_TIMELIMIT - How many seconds to allow CGI programs
# to run before killing them.
-# CONFIG_THTTPD_CGI_OUTFD - In NuttX, CGI cannot use stdout for output.
-# Rather, it must use this file descriptor number.
# CONFIG_THTTPD_CHARSET- The default character set name to use with
# text MIME types.
# CONFIG_THTTPD_IOBUFFERSIZE -
@@ -544,7 +542,6 @@ CONFIG_THTTPD_CGI_PRIORITY=50
CONFIG_THTTPD_CGI_STACKSIZE=1024
CONFIG_THTTPD_CGI_BYTECOUNT=20000
CONFIG_THTTPD_CGI_TIMELIMIT=0
-#CONFIG_THTTPD_CGI_OUTFD
CONFIG_THTTPD_CHARSET="iso-8859-1"
CONFIG_THTTPD_IOBUFFERSIZE=256
#CONFIG_THTTPD_INDEX_NAMES
diff --git a/netutils/thttpd/cgi-src/phf.c b/netutils/thttpd/cgi-src/phf.c
index 16ea2fefe02..a108468a83d 100644
--- a/netutils/thttpd/cgi-src/phf.c
+++ b/netutils/thttpd/cgi-src/phf.c
@@ -61,15 +61,9 @@
int main(int argc, char *argv[])
{
- FILE *outstream;
-
fprintf(stderr, "phf CGI probe from %s\n", getenv("REMOTE_ADDR"));
- outstream = fdopen(CONFIG_THTTPD_CGI_OUTFD, "w");
- if (outstream)
- {
- (void)fprintf(outstream,
-"\
+ (void)printf("\
Content-type: text/html\n\
Status: 404/html\n\
\n\
@@ -79,7 +73,6 @@ The requested object does not exist on this server.\n\
The link you followed is either outdated, inaccurate,\n\
or the server has been instructed not to let you have it.\n\