Add timeradd() and timersub() to <sys/time.h>. [PSARC/2008/368 FastTrack timeout 06/16/2008]

John Levon john.levon at sun.com
Mon Jun 9 11:31:52 PDT 2008


On Mon, Jun 09, 2008 at 02:19:23PM -0400, Dan McDonald wrote:

> Until you do something like:
> 
> 	if (foo)
> 		timerclear(&t);  /* XXX KEBE SAYS SYNTAX ERROR */
> 	else
> 		something_else();
> 
> I thought we were trying to not be different than the rest of the world now?

Lint should be fixed to understand do {} while (0). We already have a
workaround (__lintzero) in kernelspace for this. The relevant bug:

4821302 lint should not complain about the safest way to construct complicated macros

regards
john



More information about the opensolaris-arc mailing list