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);
const char * Fdescr(FD_t fd)
Get informative description (eg file name) from fd for diagnostic output.
int Fseek(FD_t fd, off_t offset, int whence)
fseek(3) clone.
const char * Fstrerror(FD_t fd)
strerror(3) clone.
off_t Ftell(FD_t fd)
ftell(3) clone.
int Ferror(FD_t fd)
ferror(3) clone.
FD_t Fdopen(FD_t ofd, const char *fmode)
off_t ufdCopy(FD_t sfd, FD_t tfd)
FD_t Fopen(const char *path, const char *fmode)
fopen(3) clone.
const struct FDIO_s * FDIO_t
fdOpX_e
Identify per-desciptor I/O operation statistics.
enum fdOpX_e fdOpX
Identify per-desciptor I/O operation statistics.
int Fflush(FD_t fd)
fflush(3) clone.
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 Fclose(FD_t fd)
fclose(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.
int Fcntl(FD_t fd, int op, void *lip)
fcntl(2) clone.
int Fileno(FD_t fd)
fileno(3) clone.
rpmop fdOp(FD_t fd, fdOpX opx)
struct _FD_s * FD_t
RPM IO file descriptor type.
Cumulative statistics for an operation.