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

lib/rpmlead.h File Reference

Routines to read and write an rpm lead structure for a a package. More...

#include <rpmlib.h>

Go to the source code of this file.

Functions

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


Detailed Description

Routines to read and write an rpm lead structure for a a package.

Definition in file rpmlead.h.


Function Documentation

int readLead FD_t    fd,
struct rpmlead   lead
 

Read lead from file handle.

Parameters:
fd  file handle
Return values:
lead  data address
Returns:
0 on success, 1 on error

Definition at line 45 of file rpmlead.c.

References _, rpmlead::archnum, errno, Fstrerror(), rpmlead::major, rpmlead::osnum, RPMERR_READ, rpmError, rpmlead::signature_type, timedRead, and rpmlead::type.

Referenced by main(), readPackageHeaders(), rpmCheckSig(), and rpmReSign().

int writeLead FD_t    fd,
const struct rpmlead   lead
 

Write lead to file handle.

Parameters:
fd  file handle
lead  data address
Returns:
0 on success, 1 on error

Definition at line 20 of file rpmlead.c.

References rpmlead::archnum, Fwrite(), rpmlead::magic, rpmlead::osnum, RPMLEAD_MAGIC0, RPMLEAD_MAGIC1, RPMLEAD_MAGIC2, RPMLEAD_MAGIC3, rpmlead::signature_type, and rpmlead::type.

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


Generated on Sun Feb 2 23:32:09 2003 for rpm by doxygen1.2.18