Back to index

citadel  8.12
Defines | Functions | Variables
citadel_decls.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define logoff(ipc, code)   ctdl_logoff(__FILE__, __LINE__, (ipc), (code))


void ctdl_logoff (char *file, int line, CtdlIPC *ipc, int code)
void formout (CtdlIPC *ipc, char *name)
void sighandler (int which_sig)
void remove_march (char *roomname, int floornum)


char fullname [USERNAME_SIZE]
unsigned room_flags
char room_name [ROOMNAMELEN]
char axlevel
char is_room_aide
unsigned userflags
char sigcaught
char editor_paths [MAX_EDITORS][SIZ]
char printcmd [SIZ]
char imagecmd [SIZ]
char have_xterm
char rc_username [USERNAME_SIZE]
char rc_password [32]
char rc_floor_mode
time_t rc_idle_threshold
char rc_alt_semantics
char instant_msgs
int secure

Define Documentation

#define logoff (   ipc,
)    ctdl_logoff(__FILE__, __LINE__, (ipc), (code))

Definition at line 28 of file citadel_decls.h.

Function Documentation

void ctdl_logoff ( char *  file,
int  line,
CtdlIPC ipc,
int  code 

Definition at line 123 of file citadel.c.

       int lp;

       if (editor_pid > 0) {       /* kill the editor if it's running */
              kill(editor_pid, SIGHUP);

       /* Free the ungoto list */
       for (lp = 0; lp < uglistsize; lp++) {

/* Shut down the server connection ... but not if the logoff code is 3,
 * because that means we're exiting because we already lost the server.
       if (code != 3) {

 * now clean up various things

       /* Violently kill off any child processes if Citadel is
        * the login shell. 
       if (getppid() == 1) {
              kill(0 - getpgrp(), SIGTERM);
              kill(0 - getpgrp(), SIGKILL);
       color(ORIGINAL_PAIR);       /* Restore the old color settings */
       stty_ctdl(SB_RESTORE);      /* return the old terminal settings */
        * uncomment the following if you need to know why Citadel exited
       printf("*** Exit code %d at %s:%d\n", code, file, line);
       exit(code);          /* exit with the proper exit code */

Here is the call graph for this function:

void formout ( CtdlIPC ipc,
char *  name 

Definition at line 194 of file citadel.c.

       int r;               /* IPC return code */
       char buf[SIZ];
       char *text = NULL;

       r = CtdlIPCSystemMessage(ipc, name, &text, buf);
       if (r / 100 != 1) {
              scr_printf("%s\n", buf);
       if (text) {
              fmout(screenwidth, NULL, text, NULL, 1);

Here is the call graph for this function:

Here is the caller graph for this function:

void remove_march ( char *  roomname,
int  floornum 

Definition at line 275 of file citadel.c.

       struct march *mptr, *mptr2;

       if (marchptr == NULL)

       if ((!strcasecmp(marchptr->march_name, roomname))
           || ((!strcasecmp(roomname, "_FLOOR_")) && (marchptr->march_floor == floornum))) {
              mptr = marchptr->next;
              marchptr = mptr;
       mptr2 = marchptr;
       for (mptr = marchptr; mptr != NULL; mptr = mptr->next) {

              if ((!strcasecmp(mptr->march_name, roomname))
                  || ((!strcasecmp(roomname, "_FLOOR_"))
                     && (mptr->march_floor == floornum))) {

                     mptr2->next = mptr->next;
                     mptr = mptr2;
              } else {
                     mptr2 = mptr;

Here is the caller graph for this function:

void sighandler ( int  which_sig)

Variable Documentation

char axlevel

Definition at line 90 of file citadel.c.

Definition at line 81 of file citadel.c.

char have_xterm
char imagecmd[SIZ]

Definition at line 105 of file messages.c.

Definition at line 76 of file citadel_ipc.c.

Definition at line 91 of file citadel.c.

char printcmd[SIZ]

Definition at line 79 of file citadel.c.

Definition at line 105 of file citadel.c.

Definition at line 90 of file commands.c.

char rc_password[32]

Definition at line 102 of file citadel.c.

Definition at line 101 of file citadel.c.

unsigned room_flags

Definition at line 82 of file citadel.c.

Definition at line 85 of file citadel.c.

int secure

Definition at line 110 of file citadel.c.

char sigcaught

Definition at line 100 of file citadel.c.

unsigned userflags

Definition at line 94 of file citadel.c.