dpkg 1.21.11
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. More...
 
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. More...
 
void dir_sync_path_parent (const char *path)
 Sync to disk the parent directory of a pathname. More...
 
void dir_sync_contents (const char *path)
 Sync to disk the contents and the directory specified. More...
 

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

Here is the call 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().

Here is the call 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(), 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: