SM0 She11
Path:
/
/
usr
/
include
/
rpm
Full Path (server): /usr/include/rpm
Create Fil3
Upl04d Fil3
📄 argv.h
[E]
[D]
[R]
📄 header.h
[E]
[D]
[R]
📄 rpmbase64.h
[E]
[D]
[R]
📄 rpmbuild.h
[E]
[D]
[R]
📄 rpmcallback.h
[E]
[D]
[R]
📄 rpmcli.h
[E]
[D]
[R]
📄 rpmdb.h
[E]
[D]
[R]
📄 rpmds.h
[E]
[D]
[R]
📄 rpmfc.h
[E]
[D]
[R]
📄 rpmfi.h
[E]
[D]
[R]
📄 rpmfileutil.h
[E]
[D]
[R]
📄 rpmio.h
[E]
[D]
[R]
📄 rpmkeyring.h
[E]
[D]
[R]
📄 rpmlegacy.h
[E]
[D]
[R]
📄 rpmlib.h
[E]
[D]
[R]
📄 rpmlog.h
[E]
[D]
[R]
📄 rpmmacro.h
[E]
[D]
[R]
📄 rpmpgp.h
[E]
[D]
[R]
📄 rpmpol.h
[E]
[D]
[R]
📄 rpmprob.h
[E]
[D]
[R]
📄 rpmps.h
[E]
[D]
[R]
📄 rpmsign.h
[E]
[D]
[R]
📄 rpmspec.h
[E]
[D]
[R]
📄 rpmsq.h
[E]
[D]
[R]
📄 rpmstring.h
[E]
[D]
[R]
📄 rpmstrpool.h
[E]
[D]
[R]
📄 rpmsw.h
[E]
[D]
[R]
📄 rpmtag.h
[E]
[D]
[R]
📄 rpmtd.h
[E]
[D]
[R]
📄 rpmte.h
[E]
[D]
[R]
📄 rpmts.h
[E]
[D]
[R]
📄 rpmtypes.h
[E]
[D]
[R]
📄 rpmurl.h
[E]
[D]
[R]
📄 rpmutil.h
[E]
[D]
[R]
📄 rpmvf.h
[E]
[D]
[R]
Editing: rpmsw.h
#ifndef H_RPMSW #define H_RPMSW /** \ingroup rpmio * \file rpmio/rpmsw.h */ #include <unistd.h> #include <sys/time.h> #ifdef __cplusplus extern "C" { #endif /** \ingroup rpmsw */ typedef unsigned long int rpmtime_t; /** \ingroup rpmsw */ typedef struct rpmsw_s * rpmsw; /** \ingroup rpmsw */ typedef struct rpmop_s * rpmop; /** \ingroup rpmsw */ struct rpmsw_s { union { struct timeval tv; unsigned long long int ticks; unsigned long int tocks[2]; } u; }; /** \ingroup rpmsw * Cumulative statistics for an operation. */ struct rpmop_s { struct rpmsw_s begin; /*!< Starting time stamp. */ int count; /*!< Number of operations. */ size_t bytes; /*!< Number of bytes transferred. */ rpmtime_t usecs; /*!< Number of ticks. */ }; /** \ingroup rpmsw * Return benchmark time stamp. * @param *sw time stamp * @return 0 on success */ rpmsw rpmswNow(rpmsw sw); /** \ingroup rpmsw * Return benchmark time stamp difference. * @param *end end time stamp * @param *begin begin time stamp * @return difference in micro-seconds */ rpmtime_t rpmswDiff(rpmsw end, rpmsw begin); /** \ingroup rpmsw * Return benchmark time stamp overhead. * @return overhead in micro-seconds */ rpmtime_t rpmswInit(void); /** \ingroup rpmsw * Enter timed operation. * @param op operation statistics * @param rc -1 clears usec counter * @return 0 always */ int rpmswEnter(rpmop op, ssize_t rc); /** \ingroup rpmsw * Exit timed operation. * @param op operation statistics * @param rc per-operation data (e.g. bytes transferred) * @return cumulative usecs for operation */ rpmtime_t rpmswExit(rpmop op, ssize_t rc); /** \ingroup rpmsw * Sum statistic counters. * @param to result statistics * @param from operation statistics * @return cumulative usecs for operation */ rpmtime_t rpmswAdd(rpmop to, rpmop from); /** \ingroup rpmsw * Subtract statistic counters. * @param to result statistics * @param from operation statistics * @return cumulative usecs for operation */ rpmtime_t rpmswSub(rpmop to, rpmop from); #ifdef __cplusplus } #endif #endif /* H_RPMSW */
Save