#include <sys/types.h>#include <fcntl.h>#include <string.h>#include <rpmlib.h>#include <rpmdb.h>#include <rpmio.h>#include <rpmmacro.h>#include "legacy.h"Go to the source code of this file.
Data Structures | |
| struct | faFileHeader |
| struct | faHeader |
Defines | |
| #define | FA_MAGIC 0x02050920 |
Functions | |
| static ssize_t | Pread (FD_t fd, void *buf, size_t count, off_t offset) |
| static FD_t | fadOpen (const char *path) |
| static int | fadNextOffset (FD_t fd, unsigned int lastOffset) |
| static int | fadFirstOffset (FD_t fd) |
| static int | dncmp (const void *a, const void *b) |
| static void | compressFilelist (Header h) |
| int | main (int argc, char **argv) |
Variables | |
| static int | fadFileSize |
| static rpmdb | db |
| #define FA_MAGIC 0x02050920 |
| static void compressFilelist | ( | Header | h | ) | [static] |
Definition at line 127 of file convertdb1.c.
References alloca(), dncmp(), headerAddEntry(), headerFreeData(), headerGetEntryMinMemory(), headerIsEntry(), headerRemoveEntry(), RPM_INT32_TYPE, RPM_STRING_ARRAY_TYPE, RPMTAG_BASENAMES, RPMTAG_DIRINDEXES, RPMTAG_DIRNAMES, and RPMTAG_OLDFILENAMES.
| static int dncmp | ( | const void * | a, | |
| const void * | b | |||
| ) | [static] |
Definition at line 117 of file convertdb1.c.
| static int fadFirstOffset | ( | FD_t | fd | ) | [static] |
| static int fadNextOffset | ( | FD_t | fd, | |
| unsigned int | lastOffset | |||
| ) | [static] |
Definition at line 73 of file convertdb1.c.
References fadFileSize, Pread(), and faHeader::size.
Referenced by fadFirstOffset(), and main().
| static FD_t fadOpen | ( | const char * | path | ) | [static] |
Definition at line 41 of file convertdb1.c.
References FA_MAGIC, fadFileSize, Fclose(), Ferror(), Fileno(), Fopen(), and Pread().
Referenced by main().
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 223 of file convertdb1.c.
References compressFilelist(), db, fadFirstOffset(), fadNextOffset(), fadOpen(), Fclose(), Fileno(), HEADER_MAGIC_NO, headerFree(), headerNVR(), headerRead(), name, providePackageNVR(), rpmdbAdd(), rpmdbClose(), rpmdbFreeIterator(), rpmdbInitIterator(), rpmdbNextIterator(), rpmdbOpen(), rpmdbSetIteratorRE(), rpmDefineMacro(), rpmInitMacros(), RPMMIRE_DEFAULT, RPMTAG_NAME, RPMTAG_RELEASE, RPMTAG_VERSION, and SEEK_SET.
| static ssize_t Pread | ( | FD_t | fd, | |
| void * | buf, | |||
| size_t | count, | |||
| off_t | offset | |||
| ) | [static] |
Definition at line 35 of file convertdb1.c.
References Fread(), Fseek(), and SEEK_SET.
Referenced by fadNextOffset(), and fadOpen().
Definition at line 220 of file convertdb1.c.
Referenced by db3associate(), db3byteswapped(), db3cdel(), db3cget(), db3close(), db3copen(), db3cpget(), db3cput(), db3join(), db3open(), db3stat(), db3sync(), db_open(), db_put(), dbiOpen(), main(), newRpmdb(), openDatabase(), rpmdbAdd(), rpmdbCheckSignals(), rpmdbClose(), rpmdbCloseDBI(), rpmdbCountPackages(), rpmdbFindByFile(), rpmdbFindFpList(), rpmdbInit(), rpmdbInitIterator(), rpmdbOpenAll(), rpmdbRemove(), rpmdbSync(), rpmdbVerify(), XrpmdbLink(), and XrpmdbUnlink().
int fadFileSize [static] |
1.5.1