# _FD_s Struct Reference
[RPMIO.]

The FD_t File Handle data structure. More...

`#include <rpmio/rpmio_internal.h>`

Collaboration diagram for _FD_s:
[legend]

## Data Fields
int | nrefs
int | flags
int | magic
int | nfps
FDSTACK_t | fps [8]
int | urlType
void * | url
void * | req
int | rd_timeoutsecs
ssize_t | bytesRemain
ssize_t | contentLength
int | persist
int | wr_chunked
int | syserrno
const void * | errcookie
const char * | opath
int | oflags
mode_t | omode
rpmxar | xar
pgpDig | dig
FDSTAT_t | stats
int | ndigests
struct _FDDIGEST_s | digests [4]
int | ftpFileDoneNeeded
unsigned long long | fd_cpioPos

## Detailed Description

The FD_t File Handle data structure.

Definition at line 55 of file rpmio_internal.h.

## Field Documentation

int _FD_s::nrefs

Definition at line 57 of file rpmio_internal.h.

Referenced by XfdFree(), XfdLink(), and XfdNew().

int _FD_s::flags

Definition at line 58 of file rpmio_internal.h.

Referenced by __fdOpen(), and XfdNew().

int _FD_s::magic

Definition at line 61 of file rpmio_internal.h.

Referenced by XfdNew().

int _FD_s::nfps

Definition at line 63 of file rpmio_internal.h.

Referenced by Fclose(), fdbg(), fdGetFdno(), fdGetFILE(), fdGetFp(), fdGetIo(), fdPop(), fdPush(), fdSetFdno(), fdSetFp(), fdSetIo(), Ferror(), Fileno(), lzdFileno(), and XfdNew().

FDSTACK_t _FD_s::fps[8]

Definition at line 64 of file rpmio_internal.h.

Referenced by Fclose(), fdbg(), fdFileno(), fdGetFdno(), fdGetFILE(), fdGetFp(), fdGetIo(), fdPush(), fdSetFdno(), fdSetFp(), fdSetIo(), Ferror(), Fileno(), ftpAbort(), lzdFileno(), and XfdNew().

int _FD_s::urlType

Definition at line 65 of file rpmio_internal.h.

Referenced by fdSize(), ftpOpen(), ufdOpen(), ufdSeek(), and XfdNew().

void* _FD_s::url

Definition at line 68 of file rpmio_internal.h.

Referenced by ftpOpen(), ftpReq(), httpReq(), ufdClose(), ufdGetUrlinfo(), urlConnect(), and XfdNew().

void* _FD_s::req

Definition at line 70 of file rpmio_internal.h.

Referenced by __fdClose(), __fdRead(), __fdWrite(), Fclose(), fdReadable(), fdWritable(), Ferror(), Fileno(), and Fopen().

int _FD_s::rd_timeoutsecs

Definition at line 72 of file rpmio_internal.h.

Referenced by fdbg(), fdFgets(), fdGetRdTimeoutSecs(), ftpAbort(), ftpOpen(), ufdOpen(), ufdRead(), urlConnect(), and XfdNew().

ssize_t _FD_s::bytesRemain

Definition at line 73 of file rpmio_internal.h.

Referenced by __fdRead(), __fdWrite(), fdbg(), fdSeek(), fdSetContentLength(), fdstat_exit(), ftpOpen(), lzdRead(), lzdWrite(), ufdClose(), ufdOpen(), ufdRead(), ufdWrite(), urlConnect(), and XfdNew().

ssize_t _FD_s::contentLength

Definition at line 74 of file rpmio_internal.h.

Referenced by checkResponse(), fdSetContentLength(), fdSize(), ftpOpen(), ftpReq(), ufdClose(), ufdOpen(), urlConnect(), and XfdNew().

int _FD_s::persist

Definition at line 75 of file rpmio_internal.h.

Referenced by checkResponse(), Fclose(), and ufdClose().

int _FD_s::wr_chunked

Definition at line 76 of file rpmio_internal.h.

Referenced by checkResponse(), fdbg(), httpReq(), ufdOpen(), and XfdNew().

int _FD_s::syserrno

Definition at line 78 of file rpmio_internal.h.

Referenced by fdFgets(), fdSetSyserrno(), fdstat_exit(), Ferror(), getFdErrstr(), httpResp(), and XfdNew().

const void* _FD_s::errcookie

Definition at line 80 of file rpmio_internal.h.

Referenced by fdSetSyserrno(), Ferror(), getFdErrstr(), lzdClose(), lzdRead(), lzdWrite(), and XfdNew().

const char* _FD_s::opath

Definition at line 83 of file rpmio_internal.h.

Referenced by fdGetOPath(), fdSetOpen(), XfdFree(), and XfdNew().

int _FD_s::oflags

Definition at line 84 of file rpmio_internal.h.

Referenced by fdGetOFlags(), fdSetOpen(), and XfdNew().

mode_t _FD_s::omode

Definition at line 85 of file rpmio_internal.h.

Referenced by fdGetOMode(), fdSetOpen(), and XfdNew().

rpmxar _FD_s::xar

Definition at line 88 of file rpmio_internal.h.

Referenced by __fdRead(), fdGetXAR(), fdSetXAR(), XfdFree(), and XfdNew().

pgpDig _FD_s::dig

Definition at line 90 of file rpmio_internal.h.

Referenced by fdGetDig(), fdSetDig(), XfdFree(), and XfdNew().

FDSTAT_t _FD_s::stats

Definition at line 92 of file rpmio_internal.h.

Referenced by fdstat_enter(), fdstat_exit(), fdstat_op(), fdstat_print(), rpmReadPackageFile(), XfdFree(), and XfdNew().

int _FD_s::ndigests

Definition at line 94 of file rpmio_internal.h.

Referenced by __fdRead(), __fdWrite(), fdFiniDigest(), fdInitDigest(), fdStealDigest(), fdUpdateDigests(), lzdRead(), lzdWrite(), XfdFree(), and XfdNew().

struct _FDDIGEST_s _FD_s::digests[4]`[read]`

Definition at line 96 of file rpmio_internal.h.

Referenced by fdFiniDigest(), fdInitDigest(), fdStealDigest(), fdUpdateDigests(), XfdFree(), and XfdNew().

int _FD_s::ftpFileDoneNeeded

Definition at line 98 of file rpmio_internal.h.

Referenced by ftpAbort(), ftpFileDone(), ftpOpen(), ftpReq(), ufdClose(), urlConnect(), and XfdNew().

unsigned long long _FD_s::fd_cpioPos

Definition at line 99 of file rpmio_internal.h.

Referenced by fdGetCpioPos(), fdSetCpioPos(), and XfdNew().

The documentation for this struct was generated from the following file:

- rpmio/rpmio_internal.h