| 14 |
* * |
* * |
| 15 |
***************************************************************************/ |
***************************************************************************/ |
| 16 |
|
|
| 17 |
|
#define _POSIX_C_SOURCE 200809L |
| 18 |
|
|
| 19 |
#include "init.h" |
#include "init.h" |
| 20 |
#include "database.h" |
#include "database.h" |
| 21 |
#include "bbs.h" |
#include "bbs.h" |
| 23 |
#include "log.h" |
#include "log.h" |
| 24 |
#include "io.h" |
#include "io.h" |
| 25 |
#include <string.h> |
#include <string.h> |
| 26 |
|
#include <strings.h> |
| 27 |
#include <stdlib.h> |
#include <stdlib.h> |
| 28 |
#include <signal.h> |
#include <signal.h> |
| 29 |
|
#include <unistd.h> |
| 30 |
#include <sys/param.h> |
#include <sys/param.h> |
| 31 |
#include <sys/types.h> |
#include <sys/types.h> |
| 32 |
#include <sys/stat.h> |
#include <sys/stat.h> |
|
#include <unistd.h> |
|
| 33 |
|
|
| 34 |
#define CONF_DELIM_WITH_SPACE " \t\r\n" |
#define CONF_DELIM_WITH_SPACE " \t\r\n" |
| 35 |
|
|
| 133 |
} |
} |
| 134 |
else if (strcasecmp(p, "bbs_port") == 0) |
else if (strcasecmp(p, "bbs_port") == 0) |
| 135 |
{ |
{ |
| 136 |
BBS_port = (in_port_t)atoi(q); |
BBS_port[0] = (in_port_t)atoi(q); |
| 137 |
} |
} |
| 138 |
else if (strcasecmp(p, "bbs_ssh") == 0) |
else if (strcasecmp(p, "bbs_ssh_port") == 0) |
| 139 |
{ |
{ |
| 140 |
SSH_v2 = (strcasecmp(q, "v2") == 0 ? 1 : 0); |
BBS_port[1] = (in_port_t)atoi(q); |
| 141 |
} |
} |
| 142 |
else if (strcasecmp(p, "bbs_max_client") == 0) |
else if (strcasecmp(p, "bbs_max_client") == 0) |
| 143 |
{ |
{ |