sarg  2.4.0
About: SARG ia a Squid Analysis Report Generator.
  Fossies Dox: sarg-2.4.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

decomp.c File Reference
#include "include/conf.h"
#include "include/defs.h"
Include dependency graph for decomp.c:

Go to the source code of this file.

Functions

FileObjectdecomp (const char *arq)
 

Function Documentation

◆ decomp()

FileObject* decomp ( const char *  arq)

Open the log file. If it is compressed, uncompress it with the proper library.

Log files compressed with gzip, bzip2 can be uncompressed if sarg is compiled with the proper library.

If the log file does not exist, the process terminates with an error message.

Parameters
arqThe log file to process.

Definition at line 481 of file decomp.c.

References _, debuga(), and FileObject_FdOpen().

Referenced by read_log(), ReadOneLogFile(), splitlog(), and UserAgent_Readlog().

Here is the caller graph for this function: