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

fo_tid_index.c File Reference

This program creates a tid index. More...

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

Go to the source code of this file.

Functions

int is_digit (struct dirent *ent)
int is_thread (const char *path)
void index_month (char *year, char *month)
void do_year (char *year)
int main (int argc, char *argv[], char *envp[])

Variables

t_array idx


Detailed Description

This program creates a tid index.

Author:
Christian Kruse, <cjk@wwwtech.de>
This file creates an mid index to ensure access to messages in the archive by tid

Definition in file fo_tid_index.c.


Function Documentation

void do_year char *  year  ) 
 

Function for indexing a complete year

Parameters:
year The year

Definition at line 142 of file fo_tid_index.c.

void index_month char *  year,
char *  month
 

Function to create the index for a month

Parameters:
year The year
month The month

Definition at line 98 of file fo_tid_index.c.

int is_digit struct dirent *  ent  ) 
 

function checking if a directory entry consists of numbers

Parameters:
ent The directory entry
Returns:
-1 if it consits not only of numbers, 0 if it does

Definition at line 59 of file fo_tid_index.c.

int is_thread const char *  path  ) 
 

Function checking if a string describes a thread file

Parameters:
path The path to check

Definition at line 75 of file fo_tid_index.c.

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

Main function

Parameters:
argc Argument count
argv Argument vector
envp Environment vector

Definition at line 187 of file fo_tid_index.c.


Variable Documentation

t_array idx
 

Array containig the index entries

Definition at line 51 of file fo_tid_index.c.


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