lib/manifest.c File Reference

#include "system.h"
#include <rpmio_internal.h>
#include <rpmlog.h>
#include <rpmlib.h>
#include <rpmmacro.h>
#include "stringbuf.h"
#include "manifest.h"
#include "debug.h"

Include dependency graph for manifest.c:

Go to the source code of this file.

Defines

#define DOCTYPE_HTML_PUBLIC   "<!DOCTYPE HTML PUBLIC"

Functions

char * rpmPermsString (int mode)
 Return ls(1)-like formatted mode string.
rpmRC rpmReadPackageManifest (FD_t fd, int *argcPtr, const char ***argvPtr)
 Read manifest, glob items, and append to existing args.


Detailed Description

Definition in file manifest.c.


Define Documentation

#define DOCTYPE_HTML_PUBLIC   "<!DOCTYPE HTML PUBLIC"

Referenced by rpmReadPackageManifest().


Function Documentation

char* rpmPermsString ( int  mode  ) 

Return ls(1)-like formatted mode string.

Parameters:
mode file mode
Returns:
(malloc'd) formatted mode string

Definition at line 18 of file manifest.c.

References S_ISLNK, S_ISSOCK, and xstrdup().

Referenced by permsFormat(), and printFileInfo().

rpmRC rpmReadPackageManifest ( FD_t  fd,
int *  argcPtr,
const char ***  argvPtr 
)

Read manifest, glob items, and append to existing args.

Todo:
Infinite loops through manifest files exist, operator error for now.

Definition at line 66 of file manifest.c.

References _free(), appendStringBuf, D_, DOCTYPE_HTML_PUBLIC, fdGetFp(), Fdopen(), freeStringBuf(), getStringBuf(), newStringBuf(), next, rpmGlob(), rpmlog(), RPMLOG_DEBUG, RPMRC_FAIL, RPMRC_NOTFOUND, RPMRC_OK, and xcalloc().

Referenced by rpmgiLoadManifest().


Generated on Tue Apr 21 04:26:47 2009 for rpm by  doxygen 1.5.8