int xfermode = 0;
char ctdldir[PATH_MAX]=CTDLDIR;
- StartLibCitadel(SIZ);
-
/* Parse command line */
while ((a = getopt(argc, argv, "h:w:")) != EOF) {
switch (a) {
close(serv_sock);
alarm(0); /* cancel the watchdog timer */
+
fprintf(stderr, "sendcommand: processing ended.\n");
if (xfermode == '5') {
return(1);
}
return(0);
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
*/
int main(int argc, char **argv) {
- size_t basesize = 64;
char facility[32];
int a; /* General-purpose variables */
struct passwd pw, *pwp = NULL;
case 't':
break;
- // basesize (passed to libcitadel)
+ // deprecated
case 'B':
- basesize = atoi(optarg);
break;
// deprecated
InitializeMasterCC();
InitializeMasterTSD();
- StartLibCitadel(basesize);
setlogmask(LOG_UPTO(max_log_level));
openlog("citserver",
( running_as_daemon ? (LOG_PID) : (LOG_PID | LOG_PERROR) ),
extern int EnableSplice;
-extern int BaseStrBufSize;
extern int ZLibCompressionRatio;
char *libcitadel_version_string(void) {
return LIBCITADEL_VERSION_NUMBER;
}
-void StartLibCitadel(size_t basesize)
-{
- const char *envvar;
-
- BaseStrBufSize = basesize;
- envvar = getenv("LIBCITADEL_ENABLE_SPLICE");
- if (envvar != NULL)
- EnableSplice = atol(envvar);
-
- envvar = getenv("LIBCITADEL_ZLIB_LEVEL");
- if (envvar != NULL)
- ZLibCompressionRatio = atol(envvar);
-}
-
void ShutDownLibCitadel(void)
{
ShutDownLibCitadelMime();
char *libcitadel_version_string(void);
int libcitadel_version_number(void);
-void StartLibCitadel(size_t basesize);
void ShutDownLibCitadel(void);
/*
{
setvbuf(stdout, NULL, _IONBF, 0);
- StartLibCitadel(8);
CU_BOOL Run = CU_FALSE ;
CU_set_output_filename("TestAutomated");
setvbuf(stdout, NULL, _IONBF, 0);
- StartLibCitadel(8);
CU_BOOL Run = CU_FALSE ;
CU_set_output_filename("TestAutomated");
break;
}
}
- StartLibCitadel(8);
if (IconDir != NULL)
LoadIconDir(IconDir);
ma.printme = optarg;
}
}
- StartLibCitadel(8);
if (filename == NULL) {
printf("Filename requried! -f\n");
}
- StartLibCitadel(8);
CU_BOOL Run = CU_FALSE ;
CU_set_output_filename("TestAutomated");
setvbuf(stdout, NULL, _IONBF, 0);
- StartLibCitadel(8);
CU_BOOL Run = CU_FALSE ;
CU_set_output_filename("TestAutomated");
}
- StartLibCitadel(8);
StreamEncode();
return 0;
///int i;
setvbuf(stdout, NULL, _IONBF, 0);
- StartLibCitadel(8);
CU_BOOL Run = CU_FALSE ;
if (argc > 0)
{
setvbuf(stdout, NULL, _IONBF, 0);
- StartLibCitadel(8);
CU_set_output_filename("TestAutomated");
if (CU_initialize_registry()) {
StrBuf *Info;
int nWildfireHeaders = 0;
- StartLibCitadel(8);
printf("%s == %d?\n", libcitadel_version_string(), libcitadel_version_number());
*/
int main(int argc, char **argv)
{
- size_t basesize = 2; /* how big should strbufs be on creation? */
pthread_attr_t attr; /* Thread attributes */
int a; /* General-purpose variables */
char tracefile[PATH_MAX];
home_specified = 1;
home=1;
break;
- case 'B': /* Basesize */
- basesize = atoi(optarg);
- if (basesize > 2)
- StartLibCitadel(basesize);
+ case 'B': /* deprecated */
break;
case 'i':
safestrncpy(ip_addr, optarg, sizeof ip_addr);
int main(int argc, char **argv)
{
uid_t UID = -1;
- size_t basesize = 2; /* how big should strbufs be on creation? */
pthread_t SessThread; /* Thread descriptor */
pthread_attr_t attr; /* Thread attributes */
int a; /* General-purpose variable */
case 'g':
default_landing_page = strdup(optarg);
break;
- case 'B': /* Basesize */
- basesize = atoi(optarg);
- if (basesize > 2)
- StartLibCitadel(basesize);
+ case 'B': /* deprecated */
break;
case 'i':
safestrncpy(ip_addr, optarg, sizeof ip_addr);
"[-d] [-Z] [-G i18ndumpfile] "
"[-u uid] [-h homedirectory] "
"[-D daemonizepid] [-v] "
- "[-g defaultlandingpage] [-B basesize] "
+ "[-g defaultlandingpage] "
#ifdef HAVE_OPENSSL
"[-s] [-S cipher_suites]"
#endif