# _FD_s Struct Reference
[RPMIO.]

The FD_t File Handle data structure. More...

`#include <rpmio_internal.h>`

## Data Fields

int | nrefs
int | flags
int | magic
int | nfps
FDSTACK_t | fps [8]
int | urlType
void * | url
int | rd_timeoutsecs
ssize_t | bytesRemain
ssize_t | contentLength
int | persist
int | wr_chunked
int | syserrno
const void * | errcookie
FDSTAT_t | stats
int | ndigests
_FDDIGEST_s | digests [4]
int | ftpFileDoneNeeded
unsigned int | firstFree
long int | fileSize
long int | fd_cpioPos

## Detailed Description

The FD_t File Handle data structure.

Definition at line 111 of file rpmio_internal.h.

## Field Documentation

ssize_t _FD_s::bytesRemain

Definition at line 124 of file rpmio_internal.h.

Referenced by fdbg(), fdRead(), fdSeek(), fdSetContentLength(), fdstat_exit(), fdWrite(), ufdClose(), ufdOpen(), ufdRead(), ufdWrite(), and urlConnect().

ssize_t _FD_s::contentLength

Definition at line 125 of file rpmio_internal.h.

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

struct _FDDIGEST_s _FD_s::digests[4]

Definition at line 136 of file rpmio_internal.h.

Referenced by fdFiniDigest(), fdInitDigest(), and fdUpdateDigests().

const void* _FD_s::errcookie

Definition at line 130 of file rpmio_internal.h.

Referenced by fdSetSyserrno(), Ferror(), and getFdErrstr().

long int _FD_s::fd_cpioPos

Definition at line 141 of file rpmio_internal.h.

Referenced by fdGetCpioPos(), and fdSetCpioPos().

long int _FD_s::fileSize

Definition at line 140 of file rpmio_internal.h.

Referenced by fadGetFileSize(), and fadSetFileSize().

unsigned int _FD_s::firstFree

Definition at line 139 of file rpmio_internal.h.

Referenced by fadGetFirstFree(), and fadSetFirstFree().

int _FD_s::flags

Definition at line 113 of file rpmio_internal.h.

Referenced by fdOpen().

FDSTACK_t _FD_s::fps[8]

Definition at line 119 of file rpmio_internal.h.

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

int _FD_s::ftpFileDoneNeeded

Definition at line 138 of file rpmio_internal.h.

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

int _FD_s::magic

Definition at line 116 of file rpmio_internal.h.

int _FD_s::ndigests

Definition at line 134 of file rpmio_internal.h.

Referenced by fdFiniDigest(), fdInitDigest(), fdRead(), fdUpdateDigests(), and fdWrite().

int _FD_s::nfps

Definition at line 118 of file rpmio_internal.h.

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

int _FD_s::nrefs

Definition at line 112 of file rpmio_internal.h.

Referenced by httpOpen(), and XfdLink().

int _FD_s::persist

Definition at line 126 of file rpmio_internal.h.

Referenced by checkResponse(), and ufdClose().

int _FD_s::rd_timeoutsecs

Definition at line 123 of file rpmio_internal.h.

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

FDSTAT_t _FD_s::stats

Definition at line 132 of file rpmio_internal.h.

Referenced by fdstat_enter(), fdstat_exit(), and fdstat_print().

int _FD_s::syserrno

Definition at line 129 of file rpmio_internal.h.

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

void* _FD_s::url

Definition at line 122 of file rpmio_internal.h.

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

int _FD_s::urlType

Definition at line 120 of file rpmio_internal.h.

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

int _FD_s::wr_chunked

Definition at line 127 of file rpmio_internal.h.

Referenced by checkResponse(), fdbg(), fdWrite(), httpReq(), ufdClose(), and ufdOpen().

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

- rpmio/rpmio_internal.h