mod_cgi.h revision e24079a2b4b568fa829c866f1b8bf0e47895390c
08cb74ca432a8c24e39f17dedce527e6a47b8001jerenkrantz/* ====================================================================
08cb74ca432a8c24e39f17dedce527e6a47b8001jerenkrantz * The Apache Software License, Version 1.1
71da3cca78eea6010f89b139ecadb79e6d213c4fnd * Copyright (c) 2000-2002 The Apache Software Foundation. All rights
71da3cca78eea6010f89b139ecadb79e6d213c4fnd * reserved.
b0fb330a8581c8bfab5e523084f9f39264a52b12gstein * Redistribution and use in source and binary forms, with or without
71da3cca78eea6010f89b139ecadb79e6d213c4fnd * modification, are permitted provided that the following conditions
71da3cca78eea6010f89b139ecadb79e6d213c4fnd * 1. Redistributions of source code must retain the above copyright
71da3cca78eea6010f89b139ecadb79e6d213c4fnd * notice, this list of conditions and the following disclaimer.
71da3cca78eea6010f89b139ecadb79e6d213c4fnd * 2. Redistributions in binary form must reproduce the above copyright
b0fb330a8581c8bfab5e523084f9f39264a52b12gstein * notice, this list of conditions and the following disclaimer in
f4c310fd2555c6faca1f980f00b161eadb089023gstein * the documentation and/or other materials provided with the
f4c310fd2555c6faca1f980f00b161eadb089023gstein * distribution.
f4c310fd2555c6faca1f980f00b161eadb089023gstein * 3. The end-user documentation included with the redistribution,
f4c310fd2555c6faca1f980f00b161eadb089023gstein * if any, must include the following acknowledgment:
f4c310fd2555c6faca1f980f00b161eadb089023gstein * "This product includes software developed by the
1b21d7b3d97def358b2e923655edeb16613a1c31gstein * Apache Software Foundation (http://www.apache.org/)."
952023a04a2f9d51553babd9094fb857f1c97548trawick * Alternately, this acknowledgment may appear in the software itself,
1b21d7b3d97def358b2e923655edeb16613a1c31gstein * if and wherever such third-party acknowledgments normally appear.
1b21d7b3d97def358b2e923655edeb16613a1c31gstein * 4. The names "Apache" and "Apache Software Foundation" must
1b21d7b3d97def358b2e923655edeb16613a1c31gstein * not be used to endorse or promote products derived from this
f4c310fd2555c6faca1f980f00b161eadb089023gstein * software without prior written permission. For written
f4c310fd2555c6faca1f980f00b161eadb089023gstein * permission, please contact apache@apache.org.
f4c310fd2555c6faca1f980f00b161eadb089023gstein * 5. Products derived from this software may not be called "Apache",
f4c310fd2555c6faca1f980f00b161eadb089023gstein * nor may "Apache" appear in their name, without prior written
f4c310fd2555c6faca1f980f00b161eadb089023gstein * permission of the Apache Software Foundation.
f4c310fd2555c6faca1f980f00b161eadb089023gstein * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
98e9c4a310bb623ff788680f88b6bd200ff36a24wrowe * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
98e9c4a310bb623ff788680f88b6bd200ff36a24wrowe * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
f4c310fd2555c6faca1f980f00b161eadb089023gstein * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
f4c310fd2555c6faca1f980f00b161eadb089023gstein * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
f4c310fd2555c6faca1f980f00b161eadb089023gstein * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
f4c310fd2555c6faca1f980f00b161eadb089023gstein * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
f4c310fd2555c6faca1f980f00b161eadb089023gstein * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
f4c310fd2555c6faca1f980f00b161eadb089023gstein * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
f4c310fd2555c6faca1f980f00b161eadb089023gstein * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
f4c310fd2555c6faca1f980f00b161eadb089023gstein * SUCH DAMAGE.
f4c310fd2555c6faca1f980f00b161eadb089023gstein * ====================================================================
f4c310fd2555c6faca1f980f00b161eadb089023gstein * This software consists of voluntary contributions made by many
f4c310fd2555c6faca1f980f00b161eadb089023gstein * individuals on behalf of the Apache Software Foundation. For more
f4c310fd2555c6faca1f980f00b161eadb089023gstein * information on the Apache Software Foundation, please see
5b03ba47ff7225cacb131f14b019332af27da960gstein * Portions of this software are based upon public domain software
5b03ba47ff7225cacb131f14b019332af27da960gstein * originally written at the National Center for Supercomputing Applications,
5b03ba47ff7225cacb131f14b019332af27da960gstein * University of Illinois, Urbana-Champaign.
5b03ba47ff7225cacb131f14b019332af27da960gstein * Registerable optional function to override CGI behavior;
5b03ba47ff7225cacb131f14b019332af27da960gstein * Reprocess the command and arguments to execute the given CGI script.
98e9c4a310bb623ff788680f88b6bd200ff36a24wrowe * @param cmd Pointer to the command to execute (may be overridden)
98e9c4a310bb623ff788680f88b6bd200ff36a24wrowe * @param argv Pointer to the arguments to pass (may be overridden)
98e9c4a310bb623ff788680f88b6bd200ff36a24wrowe * @param r The current request
f4c310fd2555c6faca1f980f00b161eadb089023gstein * @param p The pool to allocate correct cmd/argv elements within.
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm * @param process_cgi Set true if processing r->filename and r->args
f4c310fd2555c6faca1f980f00b161eadb089023gstein * as a CGI invocation, otherwise false
f4c310fd2555c6faca1f980f00b161eadb089023gstein * @param type Set to APR_SHELLCMD or APR_PROGRAM on entry, may be
f4c310fd2555c6faca1f980f00b161eadb089023gstein * changed to invoke the program with alternate semantics.
f4c310fd2555c6faca1f980f00b161eadb089023gstein * @remark This callback may be registered by the os-specific module
f4c310fd2555c6faca1f980f00b161eadb089023gstein * to correct the command and arguments for apr_proc_create invocation
f4c310fd2555c6faca1f980f00b161eadb089023gstein * on a given os. mod_cgi will call the function if registered.
f4c310fd2555c6faca1f980f00b161eadb089023gsteinAPR_DECLARE_OPTIONAL_FN(apr_status_t, ap_cgi_build_command,
f4c310fd2555c6faca1f980f00b161eadb089023gstein#endif /* _MOD_CGI_H */