Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Sep 1999 21:27:40 +0200
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        "Kelly Yancey" <kbyanc@alcnet.com>
Cc:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: misc/13326: additional timeval interfaces for <sys/time.h> 
Message-ID:  <2477.936300460@critter.freebsd.dk>
In-Reply-To: Your message of "Thu, 02 Sep 1999 12:20:02 PDT." <199909021920.MAA65531@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> the #ifdef KERNEL restriction). In addition, I made 4 new interfaces
> including:
> 	multiplying and dividing timespec's by integral factors to get new
> timespecs

Your multiplication code is only valid for x <= 2 anything larger
and your nanoseconds roll over faster than you can pick them up.

--
Poul-Henning Kamp             FreeBSD coreteam member
phk@FreeBSD.ORG               "Real hackers run -current on their laptop."
FreeBSD -- It will take a long time before progress goes too far!


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2477.936300460>