/*
* Main source module for the client program.
*
- * Copyright (c) 1987-2015 by the citadel.org team
+ * Copyright (c) 1987-2016 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
#include <stdarg.h>
#include <errno.h>
#include <libcitadel.h>
-///#include "citadel.h"
#include "citadel_ipc.h"
-//#include "axdefs.h"
#include "routines.h"
#include "routines2.h"
#include "tuiconfig.h"
#include "snprintf.h"
#endif
#include "screen.h"
-///#include "citadel_dirs.h"
#include "ecrash.h"
#include "md5.h"
#ifdef HAVE_BACKTRACE
bzero(¶ms, sizeof(params));
-// params.filename = file_pid_paniclog;
-// panic_fd=open(file_pid_paniclog, O_APPEND|O_CREAT|O_DIRECT);
-/// params.filep = fopen(file_pid_paniclog, "a+");
params.debugLevel = ECRASH_DEBUG_VERBOSE;
params.dumpAllThreads = TRUE;
params.useBacktraceSymbols = 1;
-/// BuildSymbolTable(&symbol_table);
-// params.symbolTable = &symbol_table;
params.signals[0]=SIGSEGV;
params.signals[1]=SIGILL;
params.signals[2]=SIGBUS;
params.signals[3]=SIGABRT;
-
-/// eCrash_Init(¶ms);
#endif
setIPCErrorPrintf(scr_printf);
setCryptoStatusHook(statusHook);
logoff(NULL, 3);
}
- stty_ctdl(SB_SAVE); /* Store the old terminal parameters */
- load_command_set(); /* parse the citadel.rc file */
- stty_ctdl(SB_NO_INTR); /* Install the new ones */
- /* signal(SIGHUP, dropcarr);FIXME */ /* Cleanup gracefully if carrier is dropped */
+ stty_ctdl(SB_SAVE); /* Store the old terminal parameters */
+ load_command_set(); /* parse the citadel.rc file */
+ stty_ctdl(SB_NO_INTR); /* Install the new ones */
signal(SIGPIPE, dropcarr); /* Cleanup gracefully if local conn. dropped */
signal(SIGTERM, dropcarr); /* Cleanup gracefully if terminated */
signal(SIGCONT, catch_sigcont); /* Catch SIGCONT so we can reset terminal */
/*
- * Copyright (c) 1987-2012 by the citadel.org team
+ * Copyright (c) 1987-2016 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
#include <pthread.h>
#endif
#include <libcitadel.h>
-///#include "citadel.h"
#include "citadel_ipc.h"
-//#include "citadel_decls.h"
-//#include "citadel_dirs.h"
#ifdef THREADED_CLIENT
pthread_mutex_t rwlock;
#endif
-/*
- * Not implemented:
- *
- * CHAT
- * ETLS
- * EXPI
- * GTLS
- * IGAB
- * MSG3
- * MSG4
- * NDOP
- * NETP
- * NUOP
- * SMTP
- */
-
/* ************************************************************************** */
/* Stuff below this line is not for public consumption */
/*
* front end for multiuser chat
*
- * Copyright (c) 1987-2012 by the citadel.org team
+ * Copyright (c) 1987-2016 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
#endif
#include <stdarg.h>
#include <libcitadel.h>
-//#include "citadel.h"
#include "citadel_ipc.h"
#include "client_chat.h"
#include "commands.h"
#include "citadel_decls.h"
#include "rooms.h"
#include "messages.h"
-//#ifndef HAVE_SNPRINTF
-//#include "snprintf.h"
-//#endif
#include "screen.h"
#define MIN(a, b) ((a) < (b) ? (a) : (b))
* Functions which allow the client to remember usernames and passwords for
* various sites.
*
- * Copyright (c) 1987-2012 by the citadel.org team
+ * Copyright (c) 1987-2016 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
#include <limits.h>
#include <stdio.h>
#include <libcitadel.h>
-///#include "citadel.h"
#include "citadel_ipc.h"
#include "commands.h"
#include "client_passwords.h"
#include <errno.h>
#include <stdarg.h>
#include <libcitadel.h>
-///#include "citadel.h"
#include "citadel_ipc.h"
#include "commands.h"
#include "messages.h"
#include "client_chat.h"
#include "help.h"
#include "tuiconfig.h"
-//#ifndef HAVE_SNPRINTF
-//#include "snprintf.h"
-///#endif
#include "screen.h"
#include "ecrash.h"
#include <sys/stat.h>
#include <pthread.h>
#include <libcitadel.h>
-///#include "server.h"
-/// #include "sysdep_decls.h"
-//#include "support.h"
-///#include "config.h"
-//#include "citserver.h"
#include "ecrash.h"
#define NIY() printf("function not implemented yet!\n");
#include <libcitadel.h>
#include <limits.h>
-////#include "sysdep.h"
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#endif
#include <errno.h>
#include <stdarg.h>
#include <libcitadel.h>
-//#include "citadel.h"
#include "citadel_ipc.h"
-//#include "citadel_decls.h"
-//#ifndef HAVE_SNPRINTF
-//#include "snprintf.h"
-//#endif
#include "commands.h"
#include <stdlib.h>
#include <unistd.h>
/*
* Text client functions for reading and writing of messages
*
- * Copyright (c) 1987-2012 by the citadel.org team
+ * Copyright (c) 1987-2016 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
#include <stdarg.h>
#include <libcitadel.h>
-///#include "citadel.h"
#include "citadel_ipc.h"
#include "citadel_decls.h"
#include "messages.h"
#include "commands.h"
#include "tuiconfig.h"
#include "rooms.h"
-//#ifndef HAVE_SNPRINTF
-///#include "snprintf.h"
-//#endif
#include "screen.h"
#define MAXWORDBUF SIZ
/*
* Client-side functions which perform room operations
*
- * Copyright (c) 1987-2012 by the citadel.org team
+ * Copyright (c) 1987-2016 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
#include <errno.h>
#include <stdarg.h>
#include <libcitadel.h>
-//#include "citadel.h"
#include "citadel_ipc.h"
#include "citadel_decls.h"
#include "rooms.h"
#include "commands.h"
#include "messages.h"
#include "tuiconfig.h"
-//#ifndef HAVE_SNPRINTF
-//#include "snprintf.h"
-//#endif
#include "screen.h"
-//#include "citadel_dirs.h"
#define IFNEXPERT if ((userflags&US_EXPERT)==0)
#define IFNAIDE if (axlevel<AxAideU)
extern unsigned userflags;
-//extern char *axdefs[8];
extern char sigcaught;
extern char rc_floor_mode;
extern int rc_ansi_color;
* More client-side support functions.
* Unlike routines.c, some of these DO use global variables.
*
- * Copyright (c) 1987-2012 by the citadel.org team
+ * Copyright (c) 1987-2016 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
#include <stdarg.h>
#include <libcitadel.h>
#include "sysdep.h"
-///#include "citadel.h"
#include "citadel_ipc.h"
#include "citadel_decls.h"
#include "routines2.h"
#include "routines.h"
#include "commands.h"
-//#include "messages.h"
-//#ifndef HAVE_SNPRINTF
-//#include "snprintf.h"
-//#endif
#include "screen.h"
/* work around solaris include files */
/*
* Screen output handling
*
- * Copyright (c) 1987-2012 by the citadel.org team
+ * Copyright (c) 1987-2016 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
#include <sys/types.h>
#include <sys/ioctl.h>
#include "sysdep.h"
-///#ifndef HAVE_SNPRINTF
-///#include "snprintf.h"
-///#endif
#include <libcitadel.h>
-///#include "citadel.h"
#include "citadel_ipc.h"
#include "citadel_decls.h"
#include "commands.h"
/*
* Configuration screens that are part of the text mode client.
*
- * Copyright (c) 1987-2014 by the citadel.org team
+ * Copyright (c) 1987-2016 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
#include <stdarg.h>
#include <libcitadel.h>
#include "sysdep.h"
-///#include "citadel.h"
#include "citadel_ipc.h"
#include "citadel_decls.h"
#include "tuiconfig.h"
#include "messages.h"
#include "routines.h"
#include "commands.h"
-///#ifndef HAVE_SNPRINTF
-///#include "snprintf.h"
-///#endif
#include "screen.h"
/* work around solaris include files */