Date: Wed, 25 Jun 1997 20:31:06 +1000 From: Giles Lean <giles@nemeton.com.au> To: Michael Smith <msmith@atrad.adelaide.edu.au> Cc: joerg_wunsch@uriah.heep.sax.de, hackers@freebsd.org Subject: Re: libedit, etc. (CVS issues) Message-ID: <4856.867234666@nemeton.com.au> In-Reply-To: <199706250820.RAA00477@genesis.atrad.adelaide.edu.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 25 Jun 1997 17:50:47 +0930 (CST) Michael Smith wrote:
> Does anyone know what the NetBSD function "timersub()" is supposed to do?
You can find it in src/sys/sys/time.h. The following excerpt
is from a NetBSD-current tree.
#define timersub(tvp, uvp, vvp) \
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)
Regards,
Giles
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4856.867234666>
