"Fossies" - the Fresh Open Source Software Archive

Member "citadel/modules/checkpoint/serv_checkpoint.c" (5 Jun 2021, 1058 Bytes) of package /linux/www/citadel.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "serv_checkpoint.c" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * checkpointing module for the database
    3  *
    4  * Copyright (c) 1987-2012 by the citadel.org team
    5  *
    6  * This program is open source software; you can redistribute it and/or
    7  * modify it under the terms of the GNU General Public License, version 3.
    8  *
    9  * This program is distributed in the hope that it will be useful,
   10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   12  * GNU General Public License for more details.
   13  */
   14  
   15 #include "sysdep.h"
   16 #include <stdlib.h>
   17 #include <unistd.h>
   18 #include <stdio.h>
   19 #include <ctype.h>
   20 #include <string.h>
   21 #include <errno.h>
   22 
   23 #include <libcitadel.h>
   24 
   25 #include "citadel.h"
   26 #include "server.h"
   27 #include "citserver.h"
   28 #include "msgbase.h"
   29 #include "sysdep_decls.h"
   30 #include "config.h"
   31 #include "threads.h"
   32 
   33 #include "ctdl_module.h"
   34 #include "context.h"
   35 
   36 CTDL_MODULE_INIT(checkpoint)
   37 {
   38     if (threading)
   39     {
   40         CtdlRegisterSessionHook(cdb_checkpoint, EVT_TIMER, PRIO_CLEANUP + 10);
   41     }
   42     /* return our module name for the log */
   43     return "checkpoint";
   44 }