rpm 5.3.12
Data Structures | Typedefs | Functions
build/buildio.h File Reference

Routines to read and write packages. More...

#include "rpmbuild.h"
Include dependency graph for buildio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cpioSourceArchive_s

Typedefs

typedef struct
cpioSourceArchive_s
CSA_t

Functions

rpmRC writeRPM (Header *hdrp, unsigned char **pkgidp, const char *fileName, CSA_t csa, char *passPhrase, const char **cookie, void *_dig)
 Write rpm package to file.

Detailed Description

Routines to read and write packages.

Deprecated:
this information will move elsewhere eventually.
Todo:
Eliminate, merge into rpmlib.

Definition in file buildio.h.


Typedef Documentation

typedef struct cpioSourceArchive_s * CSA_t

Function Documentation

rpmRC writeRPM ( Header hdrp,
unsigned char **  pkgidp,
const char *  fileName,
CSA_t  csa,
char *  passPhrase,
const char **  cookie,
void *  _dig 
)

Write rpm package to file.

Warning:
The first argument (header) is now passed by reference in order to return a reloaded contiguous header to the caller.
Return values:
*hdrpheader to write (final header is returned).
*pkgidpheader+payload MD5 of package (NULL to disable).
Parameters:
fileNamefile name of package
csa
passPhrase
Return values:
cookiegenerated cookie (i.e build host/time)
Parameters:
_digDSA keypair for auto-signing (or NULL)
Returns:
RPMRC_OK on success

Definition at line 634 of file pack.c.

References _, _free(), alloca(), _HE_s::append, rpmDataType_u::argv, buildHost(), _HE_s::c, cpio_copy(), cpio_doio(), cpioSourceArchive_s::cpioArchiveSize, cpioSourceArchive_s::cpioFdIn, _FD_s::digests, Fclose(), fdFiniDigest(), fdInitDigest(), Ferror(), Fflush(), cpioSourceArchive_s::fi, Fileno(), Fopen(), Fread(), Fstrerror(), Fwrite(), getBuildTime(), headerFree(), headerGet(), headerIsEntry(), headerLink(), headerMergeLegacySigs(), headerNEVRA(), headerNew(), headerPut(), headerReload(), headerUnload(), _FD_s::ndigests, nibble(), _HE_s::p, pgpArmorWrap(), pgpGetSignature(), PGPHASHALGO_SHA1, rpmDataType_u::ptr, RPM_BIN_TYPE, RPM_STRING_ARRAY_TYPE, RPM_STRING_TYPE, RPM_UINT32_TYPE, rpmAddSignature(), rpmbcExportSignature(), rpmDigestDup(), rpmExpand(), rpmlibNeedsFeature(), rpmlog(), RPMLOG_ERR, RPMLOG_NOTICE, rpmpkgRead(), rpmpkgSizeof(), rpmpkgWrite(), RPMRC_FAIL, RPMRC_OK, RPMSIGTAG_DSA, RPMSIGTAG_GPG, RPMSIGTAG_MD5, RPMSIGTAG_PADDING, RPMSIGTAG_PAYLOADSIZE, RPMSIGTAG_SHA1, RPMSIGTAG_SIZE, RPMTAG_HEADERIMMUTABLE, RPMTAG_HEADERSIGNATURES, rpmTempFile(), rpmDataType_u::str, _HE_s::t, _HE_s::tag, rpmDataType_u::ui32p, rpmDataType_u::ui8p, Unlink(), and xstrdup().

Referenced by packageBinaries(), and packageSources().