nscgi.c File Reference

#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 Documentation

#define BUFSIZE   4096

environ

#define CGI_GETHOST   2

#define CGI_NPH   1

#define CGI_SYSENV   4

#define DEVNULL   "/dev/null"

#define NDSTRINGS   5


Function Documentation

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.


Generated on Tue Sep 4 19:58:55 2007 by  doxygen 1.5.1