dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Data Structures | Functions | Variables
Atomic file operations
Collaboration diagram for Atomic file operations:

Data Structures

struct  atomic_file
 

Functions

struct atomic_fileatomic_file_new (const char *filename, enum atomic_file_flags flags)
 
void atomic_file_open (struct atomic_file *file)
 
void atomic_file_sync (struct atomic_file *file)
 
void atomic_file_close (struct atomic_file *file)
 
void atomic_file_commit (struct atomic_file *file)
 
void atomic_file_remove (struct atomic_file *file)
 
void atomic_file_free (struct atomic_file *file)
 

Variables

enum DPKG_ATTR_ENUM_FLAGS atomic_file_flags
 

Detailed Description

Function Documentation

◆ atomic_file_close()

void atomic_file_close ( struct atomic_file file)

References _, ehflag_normaltidy, ohshite(), and pop_cleanup().

Referenced by dpkg_arch_save_list(), write_filehash_except(), write_filelist_except(), and writedb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ atomic_file_commit()

void atomic_file_commit ( struct atomic_file file)

References _, ATOMIC_FILE_BACKUP, file::name, and ohshite().

Referenced by dpkg_arch_save_list(), write_filehash_except(), write_filelist_except(), and writedb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ atomic_file_free()

void atomic_file_free ( struct atomic_file file)

References file::name.

Referenced by dpkg_arch_save_list(), write_filehash_except(), write_filelist_except(), and writedb().

Here is the caller graph for this function:

◆ atomic_file_new()

struct atomic_file * atomic_file_new ( const char *  filename,
enum atomic_file_flags  flags 
)

References ATOMIC_FILE_NEW_EXT, atomic_file::flags, m_malloc(), m_strdup(), file::name, and str_fmt().

Referenced by dpkg_arch_save_list(), write_filehash_except(), write_filelist_except(), and writedb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ atomic_file_open()

void atomic_file_open ( struct atomic_file file)

References _, ATOMIC_FILE_MKPATH, cu_closestream(), dir_make_path_parent(), ehflag_normaltidy, file::name, ohshite(), and push_cleanup().

Referenced by dpkg_arch_save_list(), write_filehash_except(), write_filelist_except(), and writedb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ atomic_file_remove()

void atomic_file_remove ( struct atomic_file file)

References _, file::name, and ohshite().

Here is the call graph for this function:

◆ atomic_file_sync()

void atomic_file_sync ( struct atomic_file file)

References _, and ohshite().

Referenced by dpkg_arch_save_list(), write_filehash_except(), write_filelist_except(), and writedb().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ atomic_file_flags

enum DPKG_ATTR_ENUM_FLAGS atomic_file_flags

Referenced by writedb().