fdupes  2.1.2
About: FDUPES finds duplicate files in a given set of directories.
  Fossies Dox: fdupes-2.1.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

log.h File Reference
#include <stdio.h>
Include dependency graph for log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  log_file
 
struct  log_info
 

Macros

#define LOG_ERROR_NONE   0
 
#define LOG_ERROR_OUT_OF_MEMORY   1
 
#define LOG_ERROR_FOPEN_FAILED   2
 
#define LOG_ERROR_NOT_A_LOG_FILE   3
 

Functions

struct log_infolog_open (char *filename, int *error)
 
void log_begin_set (struct log_info *info)
 
int log_file_deleted (struct log_info *info, char *name)
 
int log_file_remaining (struct log_info *info, char *name)
 
void log_end_set (struct log_info *info)
 
void log_close (struct log_info *info)
 

Macro Definition Documentation

◆ LOG_ERROR_FOPEN_FAILED

#define LOG_ERROR_FOPEN_FAILED   2

Definition at line 26 of file log.h.

◆ LOG_ERROR_NONE

#define LOG_ERROR_NONE   0

Definition at line 24 of file log.h.

◆ LOG_ERROR_NOT_A_LOG_FILE

#define LOG_ERROR_NOT_A_LOG_FILE   3

Definition at line 27 of file log.h.

◆ LOG_ERROR_OUT_OF_MEMORY

#define LOG_ERROR_OUT_OF_MEMORY   1

Definition at line 25 of file log.h.

Function Documentation

◆ log_begin_set()

void log_begin_set ( struct log_info info)

Definition at line 110 of file log.c.

References log_free_set().

Referenced by cmd_prune(), deletefiles(), and deletesuccessor().

◆ log_close()

void log_close ( struct log_info info)

Definition at line 222 of file log.c.

References log_info::file, and log_free_set().

Referenced by cmd_prune(), deletefiles(), and main().

◆ log_end_set()

◆ log_file_deleted()

int log_file_deleted ( struct log_info info,
char *  name 
)

Definition at line 117 of file log.c.

References log_info::deleted, log_file::filename, and log_file::next.

Referenced by cmd_prune(), deletefiles(), and deletesuccessor().

◆ log_file_remaining()

int log_file_remaining ( struct log_info info,
char *  name 
)

Definition at line 135 of file log.c.

References log_file::filename, log_file::next, and log_info::remaining.

Referenced by cmd_prune(), deletefiles(), and deletesuccessor().

◆ log_open()