rpm  4.5
Data Structures | Files | Functions
LEAD.
Collaboration diagram for LEAD.:

Data Structures

struct  rpmlead
 The lead data structure. More...

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.


Functions

rpmRC writeLead (FD_t fd, const struct rpmlead *lead)
 Write lead to file handle.
rpmRC readLead (FD_t fd, struct rpmlead *lead)
 Read lead from file handle.

Function Documentation

rpmRC readLead ( FD_t  fd,
struct rpmlead lead 
)

Read lead from file handle.

Parameters:
fdfile handle
Return values:
leadpackage lead
Returns:
RPMRC_OK on success, RPMRC_FAIL/RPMRC_NOTFOUND on error

Definition at line 48 of file rpmlead.c.

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

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

rpmRC writeLead ( FD_t  fd,
const struct rpmlead lead 
)

Write lead to file handle.

Parameters:
fdfile handle
leadpackage lead
Returns:
RPMRC_OK on success, RPMRC_FAIL on error

Definition at line 26 of file rpmlead.c.

References rpmlead::archnum, Fwrite(), lead_magic, rpmlead::magic, rpmlead::osnum, RPMRC_FAIL, RPMRC_OK, rpmlead::signature_type, and rpmlead::type.

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