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.c File Reference
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "fmatch.h"
#include "dir.h"
#include "log.h"
Include dependency graph for log.c:

Go to the source code of this file.

Macros

#define LOG_HEADER   "[fdupes log]\n"
 

Functions

struct log_infolog_open (char *filename, int *error)
 
void log_free_set (struct log_info *info)
 
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_header (FILE *file)
 
void log_timestamp (FILE *file)
 
void log_cwd (FILE *file)
 
void log_end_set (struct log_info *info)
 
void log_close (struct log_info *info)
 

Macro Definition Documentation

◆ LOG_HEADER

#define LOG_HEADER   "[fdupes log]\n"

Definition at line 26 of file log.c.

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_cwd()

void log_cwd ( FILE *  file)

Definition at line 170 of file log.c.

References getworkingdirectory().

Referenced by log_end_set().

◆ 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_free_set()

void log_free_set ( struct log_info info)

Definition at line 79 of file log.c.

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

Referenced by log_begin_set(), and log_close().

◆ log_header()

void log_header ( FILE *  file)

Definition at line 153 of file log.c.

References LOG_HEADER.

Referenced by log_end_set().

◆ log_open()

◆ log_timestamp()

void log_timestamp ( FILE *  file)

Definition at line 160 of file log.c.

Referenced by log_end_set().