Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

fo_cleanup.c File Reference

This program does cleanup work. More...

#include "config.h"
#include "defines.h"
#include <stdio.h>
#include <stdlib.h>
#include <dlfcn.h>
#include <dirent.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <netdb.h>
#include <unistd.h>
#include <sys/un.h>
#include "readline.h"
#include "hashlib.h"
#include "utils.h"
#include "configparser.h"
#include "cfcgi.h"
#include "template.h"
#include "clientlib.h"

Go to the source code of this file.

Functions

int cleanup_deleted_file (int sock, struct stat *st, t_string *str)
int cleanup_visited_file (int sock, struct stat *st, t_string *str)
int cleanup_files (int sock)
int main (int argc, char *argv[], char *envp[])


Detailed Description

This program does cleanup work.

Author:
Christian Kruse, <cjk@wwwtech.de>
This file cleans up all visited and deleted files

Definition in file fo_cleanup.c.


Function Documentation

int cleanup_deleted_file int  sock,
struct stat *  st,
t_string str
 

function for cleaning up a file containing message ids of deleted threads

Parameters:
sock The socket to the server
st Reference pointer to the stat buffer
str Reference to a string containing the filename

Definition at line 54 of file fo_cleanup.c.

int cleanup_files int  sock  ) 
 

Function for reading all users visited and deleted files

Parameters:
sock The socket to the server

Definition at line 219 of file fo_cleanup.c.

int cleanup_visited_file int  sock,
struct stat *  st,
t_string str
 

function for cleaning up a file containing the visited postings of a user

Parameters:
sock The socket to the server
st The stat buffer
str Reference pointer to a string containing the filename

Definition at line 129 of file fo_cleanup.c.

int main int  argc,
char *  argv[],
char *  envp[]
 

The main function

Parameters:
argc Argument count
argv Argument vector
envp Environment vector
Returns:
EXIT_SUCCESS or EXIT_FAILURE

Definition at line 299 of file fo_cleanup.c.


Generated on Sun Apr 25 16:37:39 2004 for Classic Forum by doxygen 1.3.5