rpm
5.4.14
|
#include "system.h"
#include <glob.h>
#include <dirent.h>
#include <rpmio_internal.h>
#include <rpmcb.h>
#include <rpmtypes.h>
#include <rpmtag.h>
#include "header-py.h"
#include "rpmfd-py.h"
#include "debug.h"
Go to the source code of this file.
Data Structures | |
struct | FDlist_t |
Functions | |
rpmfdObject * | rpmfd_Wrap (FD_t fd) |
Variables | |
static int | _rpmfd_debug = 1 |
static struct PyMethodDef | rpmfd_methods [] |
static | void |
PyTypeObject | rpmfd_Type |
Class: Rpmfd | |
typedef struct FDlist_t | FDlist |
static FDlist * | fdhead = NULL |
static FDlist * | fdtail = NULL |
static PyObject *char * | mode = "r.fdio" |
FDlist * | node = xmalloc (sizeof(FDlist)) |
char * | kwlist [] = {"path", "mode", NULL} |
return | NULL |
node | fd = Fopen(path, mode) |
node | note = xstrdup (path) |
node | f = fdGetFp(node->fd) |
node | next = NULL |
else | |
static int | closeCallback (FILE *f) |
static PyObject * | rpmfd_Debug (rpmfdObject *s, PyObject *args, PyObject *kwds) |
if (!node->fd) | |
if (Ferror(node->fd)) | |
if (!fdhead) | |
else | if (fdtail) |
return | PyFile_FromFile (node->f, path, mode, closeCallback) |
Definition at line 32 of file rpmfd-py.c.
|
static |
Definition at line 53 of file rpmfd-py.c.
References _free(), FDlist_t::f, Fclose(), FDlist_t::fd, fdFree(), fdhead, fdLink(), FDlist_t::next, node, FDlist_t::note, NULL, and void.
if | ( | !node-> | fd | ) |
Definition at line 128 of file rpmfd-py.c.
References _free(), NULL, pyrpmError, and void.
Definition at line 134 of file rpmfd-py.c.
References _free(), FDlist_t::fd, Fstrerror(), NULL, and pyrpmError.
if | ( | ! | fdhead | ) |
Definition at line 151 of file rpmfd-py.c.
References node.
Definition at line 153 of file rpmfd-py.c.
return PyFile_FromFile | ( | node-> | f, |
path | , | ||
mode | , | ||
closeCallback | |||
) |
|
static |
Definition at line 92 of file rpmfd-py.c.
References _rpmfd_debug, kwlist, NULL, Py_INCREF(), and Py_None.
|
static |
Definition at line 22 of file rpmfd-py.c.
Referenced by rpmfd_Debug().
else |
Definition at line 155 of file rpmfd-py.c.
Definition at line 124 of file rpmfd-py.c.
Referenced by __fdClose(), __fdOpen(), __fdRead(), __fdWrite(), addFileToTagAux(), argvFgets(), c2f(), dodigest(), doIcon(), doScript(), fdDup(), fdFileno(), fdFini(), fdGetPool(), Fdopen(), fdSeek(), fdSeekNot(), Fopen(), Fread(), fsmStage(), ftpNLST(), ftpOpen(), Fts_children(), fts_safe_changedir(), httpOpen(), IDTXglob(), isCompressed(), makeGPGSignature(), makeHDRSignature(), manageFile(), processPackageFiles(), rpmcliSign(), rpmdbExportHR_MIB(), rpmdsSysinfoFile(), rpmfd_Wrap(), rpmgiLoadManifest(), rpmgiOpen(), rpmgiReadHeader(), rpmHeaderFromFD(), rpmHeaderFromFile(), rpmHeaderToFD(), rpmHeaderToFile(), rpmInstallSource(), rpmInstallSourcePackage(), rpmiobSlurp(), rpmLoadMacroFile(), rpmmgFile(), rpmReadPackageManifest(), rpmrepoReadHeader(), rpmrepoRfileDigest(), rpmReSign(), rpmShowProgress(), rpmSingleHeaderFromFD(), rpmTempFile(), rpmtsCallback(), rpmtsRollback(), rpmtsSolve(), rpmVerifySignatures(), runScript(), statFormat(), strdup_iconv_check(), ufdOpen(), unsatisfiedDepend(), urlConnect(), writeRPM(), wrLead(), wrSignature(), xarRead(), and XfdNew().
Definition at line 45 of file rpmfd-py.c.
Referenced by closeCallback().
|
static |
Definition at line 49 of file rpmfd-py.c.
char* kwlist[] = {"path", "mode", NULL} |
Definition at line 117 of file rpmfd-py.c.
PyObject* char* mode = "r.fdio" |
Definition at line 115 of file rpmfd-py.c.
Referenced by dbiFindMatches(), doFoo(), extractRegular(), fdSetOpen(), fsmStage(), mireNew(), mireSetCOptions(), rpmfcClassify(), rpmReadConfigFiles(), rpmReSign(), and rpmvfVerify().
Definition at line 149 of file rpmfd-py.c.
Referenced by Fts_read(), glob(), glob_in_dir(), parseFormat(), rpmdbClose(), rpmmiFini(), rpmmiNext(), and rpmReadPackageManifest().
Definition at line 116 of file rpmfd-py.c.
Referenced by closeCallback(), and if().
Definition at line 126 of file rpmfd-py.c.
return NULL |
Definition at line 120 of file rpmfd-py.c.