Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

LEAD.


Files

file  rpmlead.c
file  rpmlead.h
 Routines to read and write an rpm lead structure for a a package.

file  rpmlib.h
 In Memoriam: Steve Taylor <staylor@redhat.com> was here, now he's not.


Data Structures

struct  rpmlead

Functions

rpmRC writeLead (FD_t fd, const struct rpmlead *lead)
rpmRC readLead (FD_t fd, struct rpmlead *lead)

Function Documentation

rpmRC readLead FD_t  fd,
struct rpmlead lead
 

Read lead from file handle.

Parameters:
fd file handle
Return values:
lead package lead
Returns:
RPMRC_OK on success, RPMRC_FAIL/RPMRC_NOTFOUND on error

Definition at line 48 of file rpmlead.c.

References _, errno, FD_t, Ferror(), Fstrerror(), lead_magic, RPMERR_READ, rpmError, rpmRC, RPMRC_FAIL, RPMRC_NOTFOUND, RPMRC_OK, RPMSIGTYPE_HEADERSIG, and timedRead.

Referenced by main(), rpmReadPackageFile(), rpmReSign(), and rpmVerifySignatures().

rpmRC writeLead FD_t  fd,
const struct rpmlead lead
 

Write lead to file handle.

Parameters:
fd file handle
lead package lead
Returns:
RPMRC_OK on success, RPMRC_FAIL on error

Definition at line 26 of file rpmlead.c.

References FD_t, Fwrite(), lead_magic, rpmRC, RPMRC_FAIL, and RPMRC_OK.

Referenced by main(), rpmpsmStage(), rpmReSign(), and writeRPM().


Generated on Tue Dec 28 15:17:20 2004 for rpm by doxygen 1.3.6