# _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(), and urlConnect().

ssize_t _FD_s::contentLength

| Definition at line 125 of file rpmio_internal.h. Referenced by checkResponse(), fdSetContentLength(), fdSize(), and urlConnect().

struct _FDDIGEST_s _FD_s::digests[ 4 ]

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

const void* _FD_s::errcookie

| Definition at line 130 of file rpmio_internal.h. Referenced by fdSetSyserrno(), 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 fdbg(), fdFileno(), fdGetFdno(), fdGetFILE(), fdGetFp(), fdGetIo(), fdPush(), fdSetFdno(), fdSetFp(), and fdSetIo().

int _FD_s::ftpFileDoneNeeded

| Definition at line 138 of file rpmio_internal.h. Referenced by ftpFileDone(), 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(), fdWrite(), and XfdFree().

int _FD_s::nfps

| Definition at line 118 of file rpmio_internal.h. Referenced by fdbg(), fdGetFdno(), fdGetFILE(), fdGetFp(), fdGetIo(), fdPop(), fdPush(), fdSetFdno(), fdSetFp(), and fdSetIo().

int _FD_s::nrefs

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

int _FD_s::persist

| Definition at line 126 of file rpmio_internal.h. Referenced by checkResponse().

int _FD_s::rd_timeoutsecs

| Definition at line 123 of file rpmio_internal.h. Referenced by fdbg(), fdFgets(), fdGetRdTimeoutSecs(), and urlConnect().

FDSTAT_t _FD_s::stats

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

int _FD_s::syserrno

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

void* _FD_s::url

| Definition at line 122 of file rpmio_internal.h. Referenced by urlConnect().

int _FD_s::urlType

| Definition at line 120 of file rpmio_internal.h. Referenced by fdSize().

int _FD_s::wr_chunked

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

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

- rpmio/rpmio_internal.h