# _FD_s Struct Reference
[RPMIO.]

`#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(), ftpOpen(), httpOpen(), ufdClose(), ufdOpen(), ufdRead(), ufdWrite(), urlConnect(), and XfdNew().

ssize_t _FD_s::contentLength

| Definition at line 125 of file rpmio_internal.h. Referenced by checkResponse(), fdSetContentLength(), fdSize(), ftpOpen(), ftpReq(), httpOpen(), ufdClose(), ufdOpen(), urlConnect(), and XfdNew().

struct _FDDIGEST_s _FD_s::digests[4]

| Definition at line 136 of file rpmio_internal.h. Referenced by fdFiniDigest(), fdInitDigest(), fdUpdateDigests(), XfdFree(), and XfdNew().

const void* _FD_s::errcookie

| Definition at line 130 of file rpmio_internal.h. Referenced by fdSetSyserrno(), Ferror(), getFdErrstr(), and XfdNew().

long int _FD_s::fd_cpioPos

| Definition at line 141 of file rpmio_internal.h. Referenced by fdGetCpioPos(), fdSetCpioPos(), and XfdNew().

long int _FD_s::fileSize

| Definition at line 140 of file rpmio_internal.h. Referenced by fadGetFileSize(), fadSetFileSize(), and XfdNew().

unsigned int _FD_s::firstFree

| Definition at line 139 of file rpmio_internal.h. Referenced by fadGetFirstFree(), fadSetFirstFree(), and XfdNew().

int _FD_s::flags

| Definition at line 113 of file rpmio_internal.h. Referenced by fdOpen(), and XfdNew().

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(), ftpAbort(), and XfdNew().

int _FD_s::ftpFileDoneNeeded

| Definition at line 138 of file rpmio_internal.h. Referenced by ftpAbort(), ftpFileDone(), ftpOpen(), ftpReq(), httpOpen(), ufdClose(), urlConnect(), and XfdNew().

int _FD_s::magic

| Definition at line 116 of file rpmio_internal.h. Referenced by XfdNew().

int _FD_s::ndigests

| Definition at line 134 of file rpmio_internal.h. Referenced by fdFiniDigest(), fdInitDigest(), fdRead(), fdUpdateDigests(), fdWrite(), XfdFree(), and XfdNew().

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(), Fileno(), and XfdNew().

int _FD_s::nrefs

| Definition at line 112 of file rpmio_internal.h. Referenced by httpOpen(), XfdFree(), XfdLink(), and XfdNew().

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(), ftpOpen(), httpOpen(), ufdOpen(), ufdRead(), urlConnect(), and XfdNew().

FDSTAT_t _FD_s::stats

| Definition at line 132 of file rpmio_internal.h. Referenced by fdstat_enter(), fdstat_exit(), fdstat_print(), XfdFree(), and XfdNew().

int _FD_s::syserrno

| Definition at line 129 of file rpmio_internal.h. Referenced by fdFgets(), fdSetSyserrno(), fdstat_exit(), fdWrite(), Ferror(), getFdErrstr(), and XfdNew().

void* _FD_s::url

| Definition at line 122 of file rpmio_internal.h. Referenced by ftpOpen(), ftpReq(), httpOpen(), httpReq(), ufdClose(), ufdGetUrlinfo(), urlConnect(), and XfdNew().

int _FD_s::urlType

| Definition at line 120 of file rpmio_internal.h. Referenced by fdSize(), ftpOpen(), httpOpen(), ufdOpen(), ufdSeek(), and XfdNew().

int _FD_s::wr_chunked

| Definition at line 127 of file rpmio_internal.h. Referenced by checkResponse(), fdbg(), fdWrite(), httpReq(), ufdClose(), ufdOpen(), and XfdNew().

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

- rpmio/rpmio_internal.h