compress.c File Reference

#include "system.h"
#include "file.h"
#include "debug.h"

Go to the source code of this file.

Functions

static const char * rcsid (const char *p)
static int swrite (int fd, const void *buf, size_t n)
static int sread (int fd, void *buf, size_t n)
int file_pipe2file (int fd, const void *startbuf, size_t nbytes)
static int uncompressbuf (int method, const unsigned char *old, unsigned char **newch, int n)
int fmagicZ (fmagic fm)

Variables

struct {
   const char *   magic
   int   maglen
   const char *const   argv [3]
   int   silent
   const char *   human
   const char *   mime
   rpmop_s   ops [FDSTAT_MAX]
compr []
static int ncompr = sizeof(compr) / sizeof(compr[0])


Function Documentation

int file_pipe2file int  fd,
const void *  startbuf,
size_t  nbytes
 

Definition at line 90 of file compress.c.

References errno, error(), EXIT_FAILURE, SEEK_SET, sread(), strerror(), and swrite().

int fmagicZ fmagic  fm  ) 
 

Definition at line 311 of file compress.c.

References fmagic_s::buf, fmagicF(), maglen, fmagic_s::nb, ncompr, and uncompressbuf().

Referenced by fmagicF().

static const char* rcsid const char *  p  )  [inline, static]
 

Definition at line 6 of file compress.c.

static int sread int  fd,
void *  buf,
size_t  n
[static]
 

Definition at line 66 of file compress.c.

References errno.

Referenced by file_pipe2file(), and uncompressbuf().

static int swrite int  fd,
const void *  buf,
size_t  n
[static]
 

Definition at line 40 of file compress.c.

References errno.

Referenced by file_pipe2file(), and uncompressbuf().

static int uncompressbuf int  method,
const unsigned char *  old,
unsigned char **  newch,
int  n
[static]
 

Definition at line 234 of file compress.c.

References argv, errno, error(), EXIT_FAILURE, HOWMANY, silent, sread(), strerror(), swrite(), and xmalloc().

Referenced by fmagicZ().


Variable Documentation

const char* const argv[3]
 

Definition at line 17 of file compress.c.

Referenced by addOrAppendListEntry(), doScript(), doSetupMacro(), execCommand(), grabArgs(), main(), mireSkip(), parseDescription(), parseFiles(), parseScript(), poptParseArgvString(), processBinaryFile(), rpmfcExpandAppend(), rpmGlob(), rpmGraph(), rpmInstallLoadMacros(), rpmReadPackageManifest(), runInstScript(), runScript(), uncompressbuf(), and XpoptParseArgvString().

struct { ... } compr[] [static]
 

const char* magic
 

Definition at line 14 of file compress.c.

int maglen
 

Definition at line 15 of file compress.c.

Referenced by fmagicZ().

int ncompr = sizeof(compr) / sizeof(compr[0]) [static]
 

Definition at line 34 of file compress.c.

Referenced by fmagicZ().

int silent
 

Definition at line 18 of file compress.c.

Referenced by uncompressbuf().


Generated on Fri Feb 24 08:33:40 2006 for rpm by  doxygen 1.4.5