summaryrefslogtreecommitdiff
path: root/rpmio/rpmio.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpmio/rpmio.c')
-rw-r--r--rpmio/rpmio.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c
index fe399c2b1..33ddfa6a3 100644
--- a/rpmio/rpmio.c
+++ b/rpmio/rpmio.c
@@ -1687,6 +1687,15 @@ int Fcntl(FD_t fd, int op, void *lip)
return fcntl(Fileno(fd), op, lip);
}
+rpmop fdOp(FD_t fd, fdOpX opx)
+{
+ rpmop op = NULL;
+
+ if (fd != NULL && fd->stats != NULL && opx >= 0 && opx < FDSTAT_MAX)
+ op = fd->stats->ops + opx;
+ return op;
+}
+
int rpmioSlurp(const char * fn, byte ** bp, ssize_t * blenp)
{
static ssize_t blenmax = (32 * BUFSIZ);