File nut/pro/ssi.c


Included Files


Preprocessor definitions

#define BUFSIZE 512

#define MIN( a, b )

#define SSI_TYPE_FILE 0x01

#define SSI_TYPE_VIRTUAL 0x02

#define SSI_TYPE_EXEC 0x03


Global Function NutRegisterSsi()

void NutRegisterSsi ( void )
Prototyped in: nut/include/pro/ssi.h
Calls: NutSetMimeHandler() nut/pro/httpd.c
References Functions: NutHttpProcessSHTML() nut/pro/ssi.c

Local Function DestroyRequestInfo()

static void DestroyRequestInfo ( REQUEST* req )
Calls: NutHeapFree() nut/os/heap.c
Called by: NutSsiProcessVirtual() nut/pro/ssi.c

Local Function NutHttpProcessSHTML()

static void NutHttpProcessSHTML ( FILE* stream, int fd, int file_len, u_char* http_root, REQUEST* req )
Calls: NutHeapAlloc() nut/os/heap.c
  NutHeapFree() nut/os/heap.c
  NutSsiCheckForSsi() nut/pro/ssi.c
  _read() nut/crt/read.c
  _seek() nut/crt/seek.c
  fwrite() nut/crt/fwrite.c
  memset(), strstr()
Used in: NutRegisterSsi() nut/pro/ssi.c

Local Function NutSsiCheckForSsi()

static u_char NutSsiCheckForSsi ( FILE* stream, char* buffer, u_short end, u_char* http_root, REQUEST* req )
Calls: NutSsiProcessFile() nut/pro/ssi.c
  NutSsiProcessVirtual() nut/pro/ssi.c
  NutSsiSkipWhitespace() nut/pro/ssi.c
  strncasecmp()
Called by: NutHttpProcessSHTML() nut/pro/ssi.c

Local Function NutSsiProcessFile()

static void NutSsiProcessFile ( FILE* stream, u_char* filename )
Calls: NutHeapAlloc() nut/os/heap.c
  NutHeapFree() nut/os/heap.c
  _close() nut/crt/close.c
  _filelength() nut/crt/filelength.c
  _open() nut/crt/open.c
  _read() nut/crt/read.c
  fprintf_P() nut/crt/fprintf_p.c
  fwrite() nut/crt/fwrite.c
Called by: NutSsiCheckForSsi() nut/pro/ssi.c

Local Function NutSsiProcessVirtual()

static void NutSsiProcessVirtual ( FILE* stream, u_char* url, u_char* http_root, REQUEST* orig_req )
Calls: DestroyRequestInfo() nut/pro/ssi.c
  NutCgiProcessRequest() nut/pro/cgi.c
  NutDecodePath() nut/pro/dencode.c
  NutGetMimeHandler() nut/pro/httpd.c
  NutHeapAlloc() nut/os/heap.c
  NutHeapAllocClear() nut/os/heap.c
  NutHeapFree() nut/os/heap.c
  NutHttpProcessQueryString() nut/pro/httpd.c
  _close() nut/crt/close.c
  _filelength() nut/crt/filelength.c
  _open() nut/crt/open.c
  _read() nut/crt/read.c
  fprintf_P() nut/crt/fprintf_p.c
  fwrite() nut/crt/fwrite.c
  strcat(), strchr(), strcpy(), strlen(), strncasecmp()
Called by: NutSsiCheckForSsi() nut/pro/ssi.c

Local Function NutSsiSkipWhitespace()

static void NutSsiSkipWhitespace ( char* buffer, u_short* pos, u_short end )
Called by: NutSsiCheckForSsi() nut/pro/ssi.c