10 #include <sys/types.h> 16 #include <rpm/rpmtypes.h> 17 #include <rpm/rpmsw.h> 25 typedef const struct FDIO_s *
FDIO_t;
40 ssize_t
Fread(
void * buf,
size_t size,
size_t nmemb,
FD_t fd);
45 ssize_t
Fwrite(
const void * buf,
size_t size,
size_t nmemb,
FD_t fd);
50 int Fseek(
FD_t fd, off_t offset,
int whence);
const char * Fdescr(FD_t fd)
Get informative description (eg file name) from fd for diagnostic output.
int Fileno(FD_t fd)
fileno(3) clone.
enum fdOpX_e fdOpX
Identify per-desciptor I/O operation statistics.
rpmop fdOp(FD_t fd, fdOpX opx)
ssize_t Fread(void *buf, size_t size, size_t nmemb, FD_t fd)
Like fread(3) but with read(3)-style return values.
int Fflush(FD_t fd)
fflush(3) clone.
const struct FDIO_s * FDIO_t
struct _FD_s * FD_t
RPM IO file descriptor type.
int Fseek(FD_t fd, off_t offset, int whence)
fseek(3) clone.
ssize_t Fwrite(const void *buf, size_t size, size_t nmemb, FD_t fd)
Like fwrite(3) but with write(3)-style return values.
FD_t Fdopen(FD_t ofd, const char *fmode)
off_t ufdCopy(FD_t sfd, FD_t tfd)
Cumulative statistics for an operation.
off_t Ftell(FD_t fd)
ftell(3) clone.
const char * Fstrerror(FD_t fd)
strerror(3) clone.
fdOpX_e
Identify per-desciptor I/O operation statistics.
FD_t Fopen(const char *path, const char *fmode)
fopen(3) clone.
int Fcntl(FD_t fd, int op, void *lip)
fcntl(2) clone.
int Ferror(FD_t fd)
ferror(3) clone.
int Fclose(FD_t fd)
fclose(3) clone.