About: Citadel is an advanced messaging and collaboration system for groupware and BBS applications (preferred OS: Linux).
  Fossies Dox: citadel.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

No Matches
sysdep_decls.h File Reference
#include <stdarg.h>
#include "sysdep.h"
#include <pthread.h>
#include <db.h>
#include "server.h"
#include "database.h"
Include dependency graph for sysdep_decls.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define SIZE_T_FMT   "%ld"
#define LOFF_T_FMT   "%ld"


void cputbuf (const StrBuf *Buf)
void cprintf (const char *format,...)
void init_sysdep (void)
int ctdl_tcp_server (char *ip_addr, int port_number, int queue_len)
int ctdl_uds_server (char *sockpath, int queue_len)
void buffer_output (void)
void unbuffer_output (void)
void flush_output (void)
int client_write (const char *buf, int nbytes)
int client_read_to (char *buf, int bytes, int timeout)
int client_read (char *buf, int bytes)
int client_getln (char *buf, int maxbytes)
int CtdlClientGetLine (StrBuf *Target)
int client_read_blob (StrBuf *Target, int bytes, int timeout)
void client_set_inbound_buf (long N)
int client_read_random_blob (StrBuf *Target, int timeout)
void client_close (void)
void sysdep_master_cleanup (void)
void kill_session (int session_to_kill)
void start_daemon (int do_close_stdio)
void checkcrash (void)
int convert_login (char *NameToConvert)
void init_master_fdset (void)
void * worker_thread (void *)
int SyslogFacility (char *name)


volatile int exit_signal
volatile int shutdown_and_halt
volatile int running_as_daemon
volatile int restart_server
int verbosity
int rescan []

Macro Definition Documentation


#define LOFF_T_FMT   "%ld"

Definition at line 28 of file sysdep_decls.h.


#define SIZE_T_FMT   "%ld"

Definition at line 24 of file sysdep_decls.h.

Function Documentation

◆ buffer_output()

void buffer_output ( void  )

Definition at line 259 of file sysdep.c.

References CC, and on.

Referenced by cmd_msgs(), do_command_loop(), imap_do_fetch_msg(), and imap_do_search().

◆ checkcrash()

void checkcrash ( void  )

Definition at line 649 of file sysdep.c.

References ctdl_run_dir, CtdlAideMessage, ForkedPid, nFireUps, and nFireUpsNonRestart.

Referenced by main().

◆ client_close()

void client_close ( void  )

Definition at line 286 of file sysdep.c.

References CC.

Referenced by client_read_blob(), client_write(), and RemoveContext().

◆ client_getln()

int client_getln ( char *  buf,
int  maxbytes 

◆ client_read()

int client_read ( char *  buf,
int  bytes 

Definition at line 494 of file sysdep.c.

References client_read_to(), and CtdlGetConfigInt().

Referenced by cmd_conf(), cmd_ulri(), cmd_ului(), and cmd_writ().

◆ client_read_blob()

int client_read_blob ( StrBuf *  Target,
int  bytes,
int  timeout 

Definition at line 392 of file sysdep.c.

References CC, client_close(), and timeout().

Referenced by client_read_random_blob(), client_read_to(), and imap_append().

◆ client_read_random_blob()

int client_read_random_blob ( StrBuf *  Target,
int  timeout 

Definition at line 433 of file sysdep.c.

References CC, client_read_blob(), and timeout().

Referenced by xmpp_command_loop().

◆ client_read_to()

int client_read_to ( char *  buf,
int  bytes,
int  timeout 

Definition at line 461 of file sysdep.c.

References CC, client_read_blob(), and timeout().

Referenced by client_read().

◆ client_set_inbound_buf()

void client_set_inbound_buf ( long  N)

Definition at line 427 of file sysdep.c.

References CC, and SIZ.

Referenced by migr_do_import(), and xmpp_greeting().

◆ client_write()

◆ convert_login()

int convert_login ( char *  NameToConvert)

◆ cprintf()

void cprintf ( const char *  format,

Definition at line 369 of file sysdep.c.

References client_write().

Referenced by check_get(), citproto_begin_admin_session(), citproto_begin_session(), cmd_agea(), cmd_agup(), cmd_asea(), cmd_asup(), cmd_asyn(), cmd_auto(), cmd_cflr(), cmd_chek(), cmd_clos(), cmd_conf(), cmd_cre8(), cmd_creu(), cmd_dele(), cmd_delf(), cmd_dexp(), cmd_dlri(), cmd_dlui(), cmd_down(), cmd_dvca(), cmd_ebio(), cmd_echo(), cmd_eflr(), cmd_einf(), cmd_emsg(), cmd_ent0(), cmd_euid(), cmd_forg(), cmd_geta(), cmd_getr(), cmd_getu(), cmd_gexp(), cmd_gexp_async(), cmd_gibr(), cmd_gnet(), cmd_gnur(), cmd_goto(), cmd_gpex(), cmd_greg(), cmd_gtsn(), cmd_gvdn(), cmd_gvea(), cmd_gvsn(), cmd_halt(), cmd_ical(), cmd_iden(), cmd_info(), cmd_invt_kick(), cmd_isme(), cmd_kflr(), cmd_kill(), cmd_lflr(), cmd_list(), cmd_lkra(), cmd_lkrn(), cmd_lkro(), cmd_lout(), cmd_lprm(), cmd_lrms(), cmd_lsub(), cmd_lzrm(), cmd_mesg(), cmd_migr(), cmd_more(), cmd_move(), cmd_movf(), cmd_msgp(), cmd_msgs(), cmd_newu(), cmd_noop(), cmd_oida(), cmd_oidc(), cmd_oidd(), cmd_oidf(), cmd_oidl(), cmd_oids(), cmd_oimg(), cmd_open(), cmd_pass(), cmd_pibr(), cmd_qdir(), cmd_quit(), cmd_qusr(), cmd_rbio(), cmd_rcht(), cmd_rdir(), cmd_read(), cmd_regi(), cmd_renu(), cmd_reqt(), cmd_rinf(), cmd_rwho(), cmd_scdn(), cmd_seen(), cmd_seta(), cmd_setp(), cmd_setr(), cmd_setu(), cmd_sexp(), cmd_slrp(), cmd_snet(), cmd_spex(), cmd_srch(), cmd_stat(), cmd_stel(), cmd_tdap(), cmd_term(), cmd_time(), cmd_ucls(), cmd_uimg(), cmd_ulri(), cmd_ului(), cmd_uopn(), cmd_user(), cmd_vali(), cmd_view(), cmd_whok(), cmd_wiki(), cmd_writ(), CtdlAccessCheck(), CtdlOutputMsg(), CtdlOutputPreLoadedMsg(), CtdlSaveThisMessage(), CtdlUserGoto(), do_command_loop(), do_confirm(), DumpFormatFixed(), dvca_mime_callback(), fixed_output(), headers_euid(), headers_listing(), hunt_for_autocomplete(), ical_conflicts(), ical_conflicts_phase6(), ical_fixed_output_backend(), ical_freebusy(), ical_getics(), ical_handle_rsvp(), ical_hunt_for_conflicts(), ical_putics(), ical_respond(), imap_load_part(), list_roomname(), list_this_part(), list_this_pref(), list_this_suff(), ListThisUser(), logged_in_response(), migr_do_export(), migr_do_import(), migr_do_listdirs(), migr_do_restore_meta(), migr_export_floors(), migr_export_message(), migr_export_messages(), migr_export_openids(), migr_export_room_msg(), migr_export_rooms_backend(), migr_export_users_backend(), migr_export_visits(), mime_download(), mime_spew_section(), nntp_authinfo(), nntp_authinfo_pass(), nntp_authinfo_user(), nntp_capabilities(), nntp_command_loop(), nntp_date(), nntp_greeting(), nntp_group(), nntp_help(), nntp_list(), nntp_listgroup_backend(), nntp_mode(), nntp_newgroups(), nntp_quit(), nntp_xover(), nntp_xover_backend(), OpenCmdResult(), output_preferred(), output_roomname_in_list_format(), OutputCtdlMsgHeaders(), OutputRFC822MsgHeaders(), pop3_capa(), pop3_command_loop(), pop3_dele(), pop3_greeting(), pop3_last(), pop3_list(), pop3_login(), pop3_pass(), pop3_retr(), pop3_rset(), pop3_stat(), pop3_top(), pop3_uidl(), pop3_user(), roomchat_poll(), roomchat_rwho(), roomchat_send(), send_subscribe_confirmation_email(), send_unsubscribe_confirmation_email(), simple_listing(), smtp_attempt_delivery(), smtp_auth(), smtp_auth_greeting(), smtp_command_loop(), smtp_data(), smtp_get_pass(), smtp_get_user(), smtp_greeting(), smtp_hello(), smtp_help(), smtp_mail(), smtp_noop(), smtp_quit(), smtp_rcpt(), smtp_rset(), smtp_try_plain(), vcard_fixed_output(), wiki_history(), wiki_history_callback(), wiki_rev(), xmpp_destroy_buddy(), xmpp_indicate_presence(), xmpp_iq_roster_query(), xmpp_non_sasl_authenticate(), xmpp_output_auth_mechs(), xmpp_output_incoming_messages(), xmpp_presence_notify(), xmpp_query_namespace(), xmpp_roster_item(), xmpp_sasl_auth(), xmpp_stream_start(), and xmpp_xml_end().

◆ cputbuf()

void cputbuf ( const StrBuf *  Buf)

Definition at line 362 of file sysdep.c.

References client_write().

Referenced by cmd_gvdn(), headers_brief_filter(), IUnbuffer(), and smtp_data().

◆ ctdl_tcp_server()

int ctdl_tcp_server ( char *  ip_addr,
int  port_number,
int  queue_len 

Definition at line 107 of file sysdep.c.

Referenced by CtdlRegisterServiceHook().

◆ ctdl_uds_server()

int ctdl_uds_server ( char *  sockpath,
int  queue_len 

Definition at line 190 of file sysdep.c.

Referenced by CtdlRegisterServiceHook().

◆ CtdlClientGetLine()

int CtdlClientGetLine ( StrBuf *  Target)

◆ flush_output()

void flush_output ( void  )

Definition at line 277 of file sysdep.c.

References CC, off, and on.

Referenced by imap_append(), and imap_command_loop().

◆ init_master_fdset()

void init_master_fdset ( void  )

◆ init_sysdep()

void init_sysdep ( void  )

Definition at line 54 of file sysdep.c.

References MyConKey, signal_cleanup(), and ThreadKey.

Referenced by main().

◆ kill_session()

void kill_session ( int  session_to_kill)

◆ start_daemon()

void start_daemon ( int  do_close_stdio)

◆ sysdep_master_cleanup()

void sysdep_master_cleanup ( void  )

Definition at line 559 of file sysdep.c.

References context_cleanup().

Referenced by master_cleanup().

◆ SyslogFacility()

int SyslogFacility ( char *  name)

Definition at line 1011 of file sysdep.c.

Referenced by main().

◆ unbuffer_output()

◆ worker_thread()

Variable Documentation

◆ exit_signal

volatile int exit_signal

Definition at line 40 of file sysdep.c.

Referenced by main(), and signal_cleanup().

◆ rescan

int rescan[]

◆ restart_server

volatile int restart_server

Definition at line 42 of file sysdep.c.

Referenced by cmd_down(), cmd_scdn(), main(), and master_cleanup().

◆ running_as_daemon

volatile int running_as_daemon

Definition at line 43 of file sysdep.c.

Referenced by main(), and master_cleanup().

◆ shutdown_and_halt

volatile int shutdown_and_halt

Definition at line 41 of file sysdep.c.

Referenced by cmd_halt(), and master_cleanup().

◆ verbosity

int verbosity