Rizin
unix-like reverse engineering framework and cli tools
io_gprobe.h File Reference

Go to the source code of this file.

Macros

#define Timercmp(tvp, uvp, cmp)    (((tvp)->tv_sec == (uvp)->tv_sec) ? ((tvp)->tv_usec cmp(uvp)->tv_usec) : ((tvp)->tv_sec cmp(uvp)->tv_sec))
 
#define Timeradd(tvp, uvp, vvp)
 
#define Timersub(tvp, uvp, vvp)
 

Macro Definition Documentation

◆ Timeradd

#define Timeradd (   tvp,
  uvp,
  vvp 
)
Value:
do { \
(vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \
(vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \
if ((vvp)->tv_usec >= 1000000) { \
(vvp)->tv_sec++; \
(vvp)->tv_usec -= 1000000; \
} \
} while (0)

Definition at line 6 of file io_gprobe.h.

◆ Timercmp

#define Timercmp (   tvp,
  uvp,
  cmp 
)     (((tvp)->tv_sec == (uvp)->tv_sec) ? ((tvp)->tv_usec cmp(uvp)->tv_usec) : ((tvp)->tv_sec cmp(uvp)->tv_sec))

Definition at line 4 of file io_gprobe.h.

◆ Timersub

#define Timersub (   tvp,
  uvp,
  vvp 
)
Value:
do { \
(vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
(vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \
if ((vvp)->tv_usec < 0) { \
(vvp)->tv_sec--; \
(vvp)->tv_usec += 1000000; \
} \
} while (0)

Definition at line 15 of file io_gprobe.h.