dpkg 1.21.11
Macros | Enumerations | Functions
db-fsys.h File Reference

(a4dfcc1ef)

#include <dpkg/file.h>
#include <dpkg/fsys.h>
Include dependency graph for db-fsys.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LISTFILE   "list"
 
#define HASHFILE   "md5sums"
 

Enumerations

enum  statdb_parse_flags { STATDB_PARSE_NORMAL = 0 , STATDB_PARSE_LAX = 1 }
 

Functions

void ensure_diversions (void)
 
uid_t statdb_parse_uid (const char *str)
 
gid_t statdb_parse_gid (const char *str)
 
mode_t statdb_parse_mode (const char *str)
 
void ensure_statoverrides (enum statdb_parse_flags flags)
 
void ensure_packagefiles_available (struct pkginfo *pkg)
 Load the list of files in this package into memory, or update the list if it is there but stale. More...
 
void ensure_allinstfiles_available (void)
 
void ensure_allinstfiles_available_quiet (void)
 
void note_must_reread_files_inpackage (struct pkginfo *pkg)
 
void parse_filehash (struct pkginfo *pkg, struct pkgbin *pkgbin)
 
void write_filelist_except (struct pkginfo *pkg, struct pkgbin *pkgbin, struct fsys_namenode_list *list, enum fsys_namenode_flags mask)
 
void write_filehash_except (struct pkginfo *pkg, struct pkgbin *pkgbin, struct fsys_namenode_list *list, enum fsys_namenode_flags mask)
 

Macro Definition Documentation

◆ HASHFILE

#define HASHFILE   "md5sums"

◆ LISTFILE

#define LISTFILE   "list"

Enumeration Type Documentation

◆ statdb_parse_flags

Enumerator
STATDB_PARSE_NORMAL 
STATDB_PARSE_LAX 

Function Documentation

◆ ensure_allinstfiles_available()

void ensure_allinstfiles_available ( void  )

◆ ensure_allinstfiles_available_quiet()

void ensure_allinstfiles_available_quiet ( void  )

◆ ensure_diversions()

void ensure_diversions ( void  )

References MAXDIVERTFILENAME.

Referenced by verify().

Here is the caller graph for this function:

◆ ensure_packagefiles_available()

void ensure_packagefiles_available ( struct pkginfo pkg)

Load the list of files in this package into memory, or update the list if it is there but stale.

◆ ensure_statoverrides()

void ensure_statoverrides ( enum statdb_parse_flags  flags)

◆ note_must_reread_files_inpackage()

void note_must_reread_files_inpackage ( struct pkginfo pkg)

Referenced by write_filelist_except().

Here is the caller graph for this function:

◆ parse_filehash()

void parse_filehash ( struct pkginfo pkg,
struct pkgbin pkgbin 
)

References _, varbuf::buf, DPKG_ERROR_INIT, dpkg_error_print(), file_slurp(), HASHFILE, pkg_infodb_get_file(), pkg_name(), pnaw_nonambig, dpkg_error::syserrno, varbuf::used, and VARBUF_INIT.

Here is the call graph for this function:

◆ statdb_parse_gid()

gid_t statdb_parse_gid ( const char *  str)

References _, and ohshit().

Here is the call graph for this function:

◆ statdb_parse_mode()

mode_t statdb_parse_mode ( const char *  str)

References _, and ohshit().

Here is the call graph for this function:

◆ statdb_parse_uid()

uid_t statdb_parse_uid ( const char *  str)

References _, and ohshit().

Here is the call graph for this function:

◆ write_filehash_except()

void write_filehash_except ( struct pkginfo pkg,
struct pkgbin pkgbin,
struct fsys_namenode_list list,
enum fsys_namenode_flags  mask 
)

◆ write_filelist_except()

void write_filelist_except ( struct pkginfo pkg,
struct pkgbin pkgbin,
struct fsys_namenode_list list,
enum fsys_namenode_flags  mask 
)