dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Functions
Directory handling
Collaboration diagram for Directory handling:

Functions

int dir_make_path (const char *path, mode_t mode)
 Create the directory and all its parents if necessary.
 
int dir_make_path_parent (const char *path, mode_t mode)
 
void dir_sync_path (const char *path)
 Sync a directory to disk from a pathname.
 
void dir_sync_path_parent (const char *path)
 Sync to disk the parent directory of a pathname.
 
void dir_sync_contents (const char *path)
 Sync to disk the contents and the directory specified.
 

Detailed Description

Function Documentation

◆ dir_make_path()

int dir_make_path ( const char *  path,
mode_t  mode 
)

Create the directory and all its parents if necessary.

Parameters
pathThe pathname to create directories for.
modeThe pathname mode.

References m_strdup().

Referenced by do_auto(), and modstatdb_open().

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

◆ dir_make_path_parent()

int dir_make_path_parent ( const char *  path,
mode_t  mode 
)

References m_strdup().

Referenced by atomic_file_open().

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

◆ dir_sync_contents()

void dir_sync_contents ( const char *  path)

Sync to disk the contents and the directory specified.

Parameters
pathThe pathname to sync.

References _, and ohshite().

Referenced by process_archive().

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

◆ dir_sync_path()

void dir_sync_path ( const char *  path)

Sync a directory to disk from a pathname.

Parameters
pathThe name of the directory to sync.

References _, and ohshite().

Referenced by dir_sync_path_parent(), do_auto(), dpkg_arch_save_list(), modstatdb_checkpoint(), trig_file_interests_save(), trigdef_process_done(), write_filehash_except(), and write_filelist_except().

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

◆ dir_sync_path_parent()

void dir_sync_path_parent ( const char *  path)

Sync to disk the parent directory of a pathname.

Parameters
pathThe child pathname of the directory to sync.

References dir_sync_path(), and m_strdup().

Referenced by writedb().

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