#include <rpmio.h>
#include <rpmurl.h>
Go to the source code of this file.
Compounds | |
struct | _FD_s |
struct | _FDSTACK_s |
struct | OPSTAT_t |
Defines | |
#define | RPMIO_DEBUG_IO 0x40000000 |
#define | RPMIO_DEBUG_REFS 0x20000000 |
#define | FDMAGIC 0x04463138 |
#define | FDSANE(fd) assert(fd && fd->magic == FDMAGIC) |
#define | DBG(_f, _m, _x) |
#define | DBGIO(_f, _x) DBG((_f), RPMIO_DEBUG_IO, _x) |
#define | DBGREFS(_f, _x) DBG((_f), RPMIO_DEBUG_REFS, _x) |
Typedefs | |
typedef struct _FDSTACK_s | FDSTACK_t |
struct { | |
struct timeval create | |
struct timeval begin | |
OPSTAT_t ops [4] | |
}* | FDSTAT_t |
typedef enum rpmDigestFlags_e | rpmDigestFlags |
typedef struct DIGEST_CTX_s* | DIGEST_CTX |
Enumerations | |
enum | FDSTAT_e { FDSTAT_READ = 0, FDSTAT_WRITE = 1, FDSTAT_SEEK = 2, FDSTAT_CLOSE = 3 } |
enum | rpmDigestFlags_e { RPMDIGEST_MD5 = (1 << 0), RPMDIGEST_SHA1 = (1 << 1), RPMDIGEST_NATIVE = (1 << 16) } |
Functions | |
int | fdFileno (void *cookie) |
DIGEST_CTX | rpmDigestInit (rpmDigestFlags flags) |
void | rpmDigestUpdate (DIGEST_CTX ctx, const void *data, size_t len) |
void | rpmDigestFinal (DIGEST_CTX ctx, void **datap, size_t *lenp, int asAscii) |
int | fdFgets (FD_t fd, char *buf, size_t len) |
FD_t | ftpOpen (const char *url, int flags, mode_t mode, urlinfo *uret) |
int | ftpReq (FD_t data, const char *ftpCmd, const char *ftpArg) |
int | ftpCmd (const char *cmd, const char *url, const char *arg2) |
int | ufdClose (void *cookie) |
const FDIO_t | fdGetIo (FD_t fd) |
void | fdSetIo (FD_t fd, FDIO_t io) |
FILE* | fdGetFILE (FD_t fd) |
void* | fdGetFp (FD_t fd) |
void | fdSetFp (FD_t fd, void *fp) |
int | fdGetFdno (FD_t fd) |
void | fdSetFdno (FD_t fd, int fdno) |
void | fdSetContentLength (FD_t fd, ssize_t contentLength) |
void | fdPush (FD_t fd, FDIO_t io, void *fp, int fdno) |
void | fdPop (FD_t fd) |
void | fdstat_enter (FD_t fd, int opx) |
time_t | tvsub (struct timeval *etv, struct timeval *btv) |
void | fdstat_exit (FD_t fd, int opx, ssize_t rc) |
void | fdstat_print (FD_t fd, const char *msg, FILE *fp) |
void | fdSetSyserrno (FD_t fd, int syserrno, const void *errcookie) |
int | fdGetRdTimeoutSecs (FD_t fd) |
long int | fdGetCpioPos (FD_t fd) |
void | fdSetCpioPos (FD_t fd, long int cpioPos) |
FD_t | c2f (void *cookie) |
void | fdInitMD5 (FD_t fd, int flags) |
void | fdInitSHA1 (FD_t fd) |
void | fdFiniMD5 (FD_t fd, void **datap, size_t *lenp, int asAscii) |
void | fdFiniSHA1 (FD_t fd, void **datap, size_t *lenp, int asAscii) |
Variables | |
int | _rpmio_debug |
Definition in file rpmio_internal.h.
|
Value: if ((_rpmio_debug | ((_f) ? ((FD_t)(_f))->flags : 0)) & (_m)) fprintf _x Definition at line 127 of file rpmio_internal.h. |
|
Definition at line 130 of file rpmio_internal.h. Referenced by Fclose(), Fdopen(), Ferror(), Fileno(), Fread(), Fseek(), Fwrite(), fdClose(), fdDup(), fdOpen(), fdRead(), fdSeek(), fdSize(), fdWrite(), ftpAbort(), ufdCopy(), and ufdOpen(). |
|
Definition at line 131 of file rpmio_internal.h. |
|
Definition at line 98 of file rpmio_internal.h. |
|
Definition at line 123 of file rpmio_internal.h. Referenced by Fclose(), Fdopen(), Fread(), Fseek(), Fstrerror(), Fwrite(), XfdFree(), c2f(), fdGetCpioPos(), fdGetFILE(), fdGetFdno(), fdGetFp(), fdGetIo(), fdGetRdTimeoutSecs(), fdPop(), fdPush(), fdSeekNot(), fdSetContentLength(), fdSetCpioPos(), fdSetFdno(), fdSetFp(), fdSetIo(), fdSetSyserrno(), fdSize(), ufdGetFile(), ufdGetUrlinfo(), and ufdio(). |
|
Definition at line 95 of file rpmio_internal.h. |
|
Definition at line 96 of file rpmio_internal.h. |
|
Definition at line 58 of file rpmio_internal.h. |
|
|
|
Cumulative statistics for a descriptor. |
|
Bit(s) to control digest operation. |
|
Definition at line 465 of file rpmio.c. Referenced by DBGREFS(), checkResponse(), and ftpNLST(). |
|
Definition at line 1198 of file rpmio.c. Referenced by DBGREFS(), ftpChdir(), ftpMkdir(), ftpRename(), ftpRmdir(), and ftpUnlink(). |
|
|
|
|
|
Definition at line 1569 of file rpmio.c. Referenced by DBGREFS(), Fclose(), ftpNLST(), and ufdOpen(). |
|
Definition at line 125 of file rpmio_internal.h. |
|
Operation start time. Definition at line 45 of file rpmio_internal.h. |
|
Structure creation time. Definition at line 44 of file rpmio_internal.h. |
|
Cumulative statistics. Definition at line 46 of file rpmio_internal.h. |