rpm  4.5
Files | Data Structures | Functions
LEAD.
Collaboration diagram for 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 stayl.nosp@m.or@r.nosp@m.edhat.nosp@m..com was here, now he's not.
 

Data Structures

struct  rpmlead
 The lead data structure. More...
 

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.
 

Detailed Description

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 _, rpmlead::archnum, errno, Ferror(), Fstrerror(), lead_magic, rpmlead::magic, rpmlead::osnum, RPMERR_READ, rpmError, RPMRC_FAIL, RPMRC_NOTFOUND, RPMRC_OK, RPMSIGTYPE_HEADERSIG, rpmlead::signature_type, timedRead(), and rpmlead::type.

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().