#include <stdlib.h>#include <stdio.h>#include <string.h>#include <xmlrpc-c/config.h>#include "abyss_xmlrpc_int.h"#include <xmlrpc-c/abyss.h>#include "abyss_trace.h"#include "abyss_server.h"#include "abyss_http.h"

Go to the source code of this file.
Functions | |
| static void | chdirx (const char *const newdir, abyss_bool *const successP) |
| static char * | ConfGetToken (char **p) |
| static abyss_bool | ConfNextToken (char **p) |
| static abyss_bool | ConfReadBool (char *p, abyss_bool *b) |
| static abyss_bool | ConfReadInt (const char *const p, int32_t *const n, int32_t const min, int32_t const max) |
| static abyss_bool | ConfReadLine (TFile *f, char *buffer, uint32_t len) |
| abyss_bool | ConfReadServerFile (const char *const filename, TServer *const serverP) |
| static void | parsePidfile (const char *const p, struct _TServer *const srvP) |
| static void | parseUser (const char *const p, struct _TServer *const srvP) |
| static void | readMIMETypesFile (const char *const filename, MIMEType **const MIMETypePP) |
| static void chdirx | ( | const char *const | newdir, | |
| abyss_bool *const | successP | |||
| ) | [static] |
| static char* ConfGetToken | ( | char ** | p | ) | [static] |
Definition at line 112 of file abyss_conf.c.
Referenced by ConfReadServerFile(), and readMIMETypesFile().
| static abyss_bool ConfNextToken | ( | char ** | p | ) | [static] |
Definition at line 96 of file abyss_conf.c.
Referenced by ConfReadServerFile(), and readMIMETypesFile().
| static abyss_bool ConfReadBool | ( | char * | p, | |
| abyss_bool * | b | |||
| ) | [static] |
| static abyss_bool ConfReadInt | ( | const char *const | p, | |
| int32_t *const | n, | |||
| int32_t const | min, | |||
| int32_t const | max | |||
| ) | [static] |
| static abyss_bool ConfReadLine | ( | TFile * | f, | |
| char * | buffer, | |||
| uint32_t | len | |||
| ) | [static] |
Definition at line 61 of file abyss_conf.c.
References CR, FALSE, FileRead(), LF, and TRUE.
Referenced by ConfReadServerFile(), and readMIMETypesFile().
| abyss_bool ConfReadServerFile | ( | const char *const | filename, | |
| TServer *const | serverP | |||
| ) |
Definition at line 290 of file abyss_conf.c.
References _TServer::advertise, chdirx(), ConfGetToken(), ConfNextToken(), ConfReadBool(), ConfReadInt(), ConfReadLine(), _TServer::defaultfilenames, FALSE, FileClose(), FileOpen(), _TServer::filespath, FileStat(), _TServer::keepalivemaxconn, _TServer::keepalivetimeout, ListAdd(), _TServer::logfilename, _TServer::mimeTypeP, parsePidfile(), parseUser(), _TServer::port, readMIMETypesFile(), _TServer::timeout, TraceExit(), TRUE, and xmlrpc_strfree().
| static void parsePidfile | ( | const char *const | p, | |
| struct _TServer *const | srvP | |||
| ) | [static] |
Definition at line 275 of file abyss_conf.c.
References FileOpenCreate(), _TServer::pidfile, and TraceMsg().
Referenced by ConfReadServerFile().
| static void parseUser | ( | const char *const | p, | |
| struct _TServer *const | srvP | |||
| ) | [static] |
Definition at line 247 of file abyss_conf.c.
References ConfReadInt(), _TServer::gid, TraceExit(), TraceMsg(), and _TServer::uid.
Referenced by ConfReadServerFile().
| static void readMIMETypesFile | ( | const char *const | filename, | |
| MIMEType **const | MIMETypePP | |||
| ) | [static] |
Definition at line 183 of file abyss_conf.c.
References ConfGetToken(), ConfNextToken(), ConfReadLine(), FALSE, file, FileClose(), FileOpen(), MIMETypeAdd2(), MIMETypeCreate(), MIMETypeDestroy(), NULL, and TRUE.
Referenced by ConfReadServerFile().
1.5.6