#include "ns.h"#include <sys/stat.h>#include <ctype.h>#include <stdlib.h>Data Structures | |
| struct | Mod |
| struct | Cgi |
| struct | Map |
Defines | |
| #define | BUFSIZE 4096 |
| #define | NDSTRINGS 5 |
| #define | CGI_NPH 1 |
| #define | CGI_GETHOST 2 |
| #define | CGI_SYSENV 4 |
| #define | DEVNULL "/dev/null" |
Functions | |
| int | NsCgi_ModInit (char *server, char *module) |
| #define BUFSIZE 4096 |
environ
| #define CGI_GETHOST 2 |
| #define CGI_NPH 1 |
| #define CGI_SYSENV 4 |
| #define DEVNULL "/dev/null" |
| #define NDSTRINGS 5 |
| int NsCgi_ModInit | ( | char * | server, | |
| char * | module | |||
| ) |
----------------------------------------------------------------------
NsCgi_ModInit --
Create a new CGI module instance. Note: This module can be loaded multiple times.
Results: NS_OK/NS_ERROR.
Side effects: URL's may be registered for CGI.
----------------------------------------------------------------------
Config basic options.
Configure the various interp and env options.
Register all requested mappings.
1.5.1