summaryrefslogtreecommitdiff
path: root/nuttx/netutils/thttpd/config.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-07-13 01:30:53 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-07-13 01:30:53 +0000
commitf2065269769a2b4660b21ac873bf805c1836d25a (patch)
tree97118d0b96d8180d598ba9cb9a5a96050cecc13b /nuttx/netutils/thttpd/config.h
parentcc6b48c2485f666f3d722d63094fa0db00eb25f9 (diff)
downloadnuttx-f2065269769a2b4660b21ac873bf805c1836d25a.tar.gz
nuttx-f2065269769a2b4660b21ac873bf805c1836d25a.tar.bz2
nuttx-f2065269769a2b4660b21ac873bf805c1836d25a.zip
Add NXFLAT CGI programs
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1983 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/netutils/thttpd/config.h')
-rw-r--r--nuttx/netutils/thttpd/config.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/nuttx/netutils/thttpd/config.h b/nuttx/netutils/thttpd/config.h
index 241f67940..6ee5fa27d 100644
--- a/nuttx/netutils/thttpd/config.h
+++ b/nuttx/netutils/thttpd/config.h
@@ -119,6 +119,14 @@
# define CONFIG_THTTPD_CGI_TIMELIMIT 0 /* No time limit */
#endif
+/* In NuttX, CGI cannot use stdout for output. Rather, it must use
+ * the following file descriptor number.
+ */
+
+#ifndef CONFIG_THTTPD_CGI_OUTFD
+# define CONFIG_THTTPD_CGI_OUTFD CONFIG_NFILE_DESCRIPTORS
+#endif
+
/* The default character set name to use with text MIME types. */
#ifndef CONFIG_THTTPD_CHARSET
@@ -189,15 +197,15 @@
* You can also leave both options undefined, and thttpd will not do anything special
* about tildes. Enabling both options is an error.
*
- * Typical values, if they're defined, are "users" for TILDE_MAP_1 and "public_html"
- * for TILDE_MAP_2.
+ * Typical values, if they're defined, are "users" for CONFIG_THTTPD_TILDE_MAP1 and "public_html"
+ * for CONFIG_THTTPD_TILDE_MAP2.
*/
-#if defined(TILDE_MAP_1) && defined(TILDE_MAP_2)
-# error "Both TILDE_MAP_1 and TILDE_MAP_2 are defined"
+#if defined(CONFIG_THTTPD_TILDE_MAP1) && defined(CONFIG_THTTPD_TILDE_MAP2)
+# error "Both CONFIG_THTTPD_TILDE_MAP1 andCONFIG_THTTPD_TILDE_MAP2 are defined"
#endif
-/* If CONFIG_THTTPD_URLPATTERN is not defined, then it will be used to match and verify
+/* If CONFIG_THTTPD_URLPATTERN is defined, then it will be used to match and verify
* referrers.
*/