rpm 4.9.1
|
Typedefs | |
typedef enum rpmFileTypes_e | rpmFileTypes |
File types. | |
typedef enum rpmFileAction_e | rpmFileAction |
File disposition(s) during package install/erase transaction. | |
Enumerations | |
enum | rpmFileTypes_e { PIPE = 1, CDEV = 2, XDIR = 4, BDEV = 6, REG = 8, LINK = 10, SOCK = 12 } |
File types. More... | |
enum | rpmFileAction_e { FA_UNKNOWN = 0, FA_CREATE, FA_COPYIN, FA_COPYOUT, FA_BACKUP, FA_SAVE, FA_SKIP, FA_ALTNAME, FA_ERASE, FA_SKIPNSTATE, FA_SKIPNETSHARED, FA_SKIPCOLOR } |
File disposition(s) during package install/erase transaction. More... | |
Functions | |
rpmfi | rpmfiLink (rpmfi fi) |
Reference a file info set instance. | |
rpm_count_t | rpmfiFC (rpmfi fi) |
Return file count from file info set. | |
int | rpmfiFX (rpmfi fi) |
Return current file index from file info set. | |
int | rpmfiSetFX (rpmfi fi, int fx) |
Set current file index in file info set. | |
rpm_count_t | rpmfiDC (rpmfi fi) |
Return directory count from file info set. | |
int | rpmfiDX (rpmfi fi) |
Return current directory index from file info set. | |
int | rpmfiSetDX (rpmfi fi, int dx) |
Set current directory index in file info set. | |
const char * | rpmfiBN (rpmfi fi) |
Return current base name from file info set. | |
const char * | rpmfiDN (rpmfi fi) |
Return current directory name from file info set. | |
const char * | rpmfiFN (rpmfi fi) |
Return current file name from file info set. | |
rpmfileAttrs | rpmfiFFlags (rpmfi fi) |
Return current file flags from file info set. | |
rpmVerifyAttrs | rpmfiVFlags (rpmfi fi) |
Return current file verify flags from file info set. | |
rpm_mode_t | rpmfiFMode (rpmfi fi) |
Return current file mode from file info set. | |
rpmfileState | rpmfiFState (rpmfi fi) |
Return current file state from file info set. | |
int | rpmfiDigestAlgo (rpmfi fi) |
Return digest algorithm of a file info set. | |
const unsigned char * | rpmfiFDigest (rpmfi fi, int *algo, size_t *diglen) |
Return current file (binary) digest of file info set. | |
char * | rpmfiFDigestHex (rpmfi fi, int *algo) |
Return current file (hex) digest of file info set. | |
const unsigned char * | rpmfiMD5 (rpmfi fi) RPM_GNUC_DEPRECATED |
Return current file (binary) md5 digest from file info set. | |
const char * | rpmfiFLink (rpmfi fi) |
Return current file linkto (i.e. | |
rpm_loff_t | rpmfiFSize (rpmfi fi) |
Return current file size from file info set. | |
rpm_rdev_t | rpmfiFRdev (rpmfi fi) |
Return current file rdev from file info set. | |
rpm_ino_t | rpmfiFInode (rpmfi fi) |
Return current file inode from file info set. | |
rpm_color_t | rpmfiColor (rpmfi fi) |
Return union of all file color bits from file info set. | |
rpm_color_t | rpmfiFColor (rpmfi fi) |
Return current file color bits from file info set. | |
const char * | rpmfiFClass (rpmfi fi) |
Return current file class from file info set. | |
uint32_t | rpmfiFDepends (rpmfi fi, const uint32_t **fddictp) |
Return current file depends dictionary from file info set. | |
uint32_t | rpmfiFNlink (rpmfi fi) |
Return (calculated) current file nlink count from file info set. | |
rpm_time_t | rpmfiFMtime (rpmfi fi) |
Return current file modify time from file info set. | |
const char * | rpmfiFUser (rpmfi fi) |
Return current file owner from file info set. | |
const char * | rpmfiFGroup (rpmfi fi) |
Return current file group from file info set. | |
const char * | rpmfiFCaps (rpmfi fi) |
Return textual representation of current file capabilities from file info set. | |
const char * | rpmfiFLangs (rpmfi fi) |
Return current file language(s) from file info set. | |
int | rpmfiNext (rpmfi fi) |
Return next file iterator index. | |
rpmfi | rpmfiInit (rpmfi fi, int fx) |
Initialize file iterator index. | |
int | rpmfiNextD (rpmfi fi) |
Return next directory iterator index. | |
rpmfi | rpmfiInitD (rpmfi fi, int dx) |
Initialize directory iterator index. | |
rpmfi | rpmfiFree (rpmfi fi) |
Destroy a file info set. | |
rpmfi | rpmfiNew (const rpmts ts, Header h, rpmTagVal tagN, rpmfiFlags flags) |
Create and load a file info set. | |
rpmFileTypes | rpmfiWhatis (rpm_mode_t mode) |
Return file type from mode_t. | |
int | rpmfiCompare (const rpmfi afi, const rpmfi bfi) |
Return file info comparison. | |
rpmFileAction | rpmfiDecideFate (const rpmfi ofi, rpmfi nfi, int skipMissing) |
Return file disposition. | |
int | rpmfiConfigConflict (const rpmfi fi) |
Return whether file is conflicting config. |
typedef enum rpmFileAction_e rpmFileAction |
File disposition(s) during package install/erase transaction.
typedef enum rpmFileTypes_e rpmFileTypes |
File types.
These are the file types used internally by rpm. The file type is determined by applying stat(2) macros like S_ISDIR to the file mode tag from a header. The values are arbitrary, but are identical to the linux stat(2) file types.
enum rpmFileAction_e |
File disposition(s) during package install/erase transaction.
enum rpmFileTypes_e |
File types.
These are the file types used internally by rpm. The file type is determined by applying stat(2) macros like S_ISDIR to the file mode tag from a header. The values are arbitrary, but are identical to the linux stat(2) file types.
const char* rpmfiBN | ( | rpmfi | fi | ) |
Return current base name from file info set.
fi | file info set |
rpm_color_t rpmfiColor | ( | rpmfi | fi | ) |
Return union of all file color bits from file info set.
fi | file info set |
Return file info comparison.
afi | 1st file info |
bfi | 2nd file info |
int rpmfiConfigConflict | ( | const rpmfi | fi | ) |
Return whether file is conflicting config.
fi | file info |
rpm_count_t rpmfiDC | ( | rpmfi | fi | ) |
Return directory count from file info set.
fi | file info set |
rpmFileAction rpmfiDecideFate | ( | const rpmfi | ofi, |
rpmfi | nfi, | ||
int | skipMissing | ||
) |
Return file disposition.
ofi | old file info |
nfi | new file info |
skipMissing | OK to skip missing files? |
int rpmfiDigestAlgo | ( | rpmfi | fi | ) |
Return digest algorithm of a file info set.
fi | file info set |
const char* rpmfiDN | ( | rpmfi | fi | ) |
Return current directory name from file info set.
fi | file info set |
int rpmfiDX | ( | rpmfi | fi | ) |
Return current directory index from file info set.
fi | file info set |
rpm_count_t rpmfiFC | ( | rpmfi | fi | ) |
Return file count from file info set.
fi | file info set |
const char* rpmfiFCaps | ( | rpmfi | fi | ) |
Return textual representation of current file capabilities from file info set.
See cap_from_text(3) for details.
fi | file info set |
const char* rpmfiFClass | ( | rpmfi | fi | ) |
Return current file class from file info set.
fi | file info set |
rpm_color_t rpmfiFColor | ( | rpmfi | fi | ) |
Return current file color bits from file info set.
fi | file info set |
uint32_t rpmfiFDepends | ( | rpmfi | fi, |
const uint32_t ** | fddictp | ||
) |
Return current file depends dictionary from file info set.
fi | file info set |
*fddictp | file depends dictionary array (or NULL) |
const unsigned char* rpmfiFDigest | ( | rpmfi | fi, |
int * | algo, | ||
size_t * | diglen | ||
) |
Return current file (binary) digest of file info set.
fi | file info set |
algo | digest hash algoritm used (pass NULL to ignore) |
diglen | digest hash length (pass NULL to ignore) |
char* rpmfiFDigestHex | ( | rpmfi | fi, |
int * | algo | ||
) |
Return current file (hex) digest of file info set.
The file info set stores file digests in binary format to conserve memory, this converts the binary data back to hex presentation used in headers.
fi | file info set |
algo | digest hash algoritm used (pass NULL to ignore) |
rpmfileAttrs rpmfiFFlags | ( | rpmfi | fi | ) |
Return current file flags from file info set.
fi | file info set |
const char* rpmfiFGroup | ( | rpmfi | fi | ) |
Return current file group from file info set.
fi | file info set |
Return current file inode from file info set.
fi | file info set |
const char* rpmfiFLangs | ( | rpmfi | fi | ) |
Return current file language(s) from file info set.
fi | file info set |
const char* rpmfiFLink | ( | rpmfi | fi | ) |
Return current file linkto (i.e.
symlink(2) target) from file info set.
fi | file info set |
rpm_mode_t rpmfiFMode | ( | rpmfi | fi | ) |
Return current file mode from file info set.
fi | file info set |
rpm_time_t rpmfiFMtime | ( | rpmfi | fi | ) |
Return current file modify time from file info set.
fi | file info set |
const char* rpmfiFN | ( | rpmfi | fi | ) |
Return current file name from file info set.
fi | file info set |
uint32_t rpmfiFNlink | ( | rpmfi | fi | ) |
Return (calculated) current file nlink count from file info set.
fi | file info set |
rpm_rdev_t rpmfiFRdev | ( | rpmfi | fi | ) |
Return current file rdev from file info set.
fi | file info set |
Destroy a file info set.
fi | file info set |
rpm_loff_t rpmfiFSize | ( | rpmfi | fi | ) |
Return current file size from file info set.
fi | file info set |
rpmfileState rpmfiFState | ( | rpmfi | fi | ) |
Return current file state from file info set.
fi | file info set |
const char* rpmfiFUser | ( | rpmfi | fi | ) |
Return current file owner from file info set.
fi | file info set |
int rpmfiFX | ( | rpmfi | fi | ) |
Return current file index from file info set.
fi | file info set |
Initialize file iterator index.
fi | file info set |
fx | file iterator index |
Initialize directory iterator index.
fi | file info set |
dx | directory iterator index |
Reference a file info set instance.
fi | file info set |
const unsigned char* rpmfiMD5 | ( | rpmfi | fi | ) |
Return current file (binary) md5 digest from file info set.
fi | file info set |
rpmfi rpmfiNew | ( | const rpmts | ts, |
Header | h, | ||
rpmTagVal | tagN, | ||
rpmfiFlags | flags | ||
) |
Create and load a file info set.
ts | unused |
h | header |
tagN | unused |
flags | Flags to control what information is loaded. |
int rpmfiNext | ( | rpmfi | fi | ) |
Return next file iterator index.
fi | file info set |
int rpmfiNextD | ( | rpmfi | fi | ) |
Return next directory iterator index.
fi | file info set |
int rpmfiSetDX | ( | rpmfi | fi, |
int | dx | ||
) |
Set current directory index in file info set.
fi | file info set |
dx | new directory index |
int rpmfiSetFX | ( | rpmfi | fi, |
int | fx | ||
) |
Set current file index in file info set.
fi | file info set |
fx | new file index |
rpmVerifyAttrs rpmfiVFlags | ( | rpmfi | fi | ) |
Return current file verify flags from file info set.
fi | file info set |
rpmFileTypes rpmfiWhatis | ( | rpm_mode_t | mode | ) |
Return file type from mode_t.
mode | file mode bits (from header) |