Subject: Re: Problems with gdb under NetBSD 1.0
To: Chris G Demetriou <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>
From: Greg A. Woods <firstname.lastname@example.org>
Date: 12/12/1994 14:18:45
[ On Mon, December 12, 1994 at 14:13:50 (-0500), Chris G Demetriou wrote: ]
> Subject: Re: Problems with gdb under NetBSD 1.0
> for a long time, the second arg to lseek() was a 'long', and people would
> commonly cast it that way.
> Well, now, every instance of code that does that is broken.
Such code always was broken, right from the day off_t was devised. It
should be fixed, not worked around.
Note also the double hiding of the true parameter type that happens when
a prototype cast re-converts a manual cast like this. IMHO it makes
such code nearly un-maintainable (for everthing but "well known"
functions like lseek(2), that is).
Greg A. Woods
+1 416 443-1734 VE3TCP robohack!woods
Planix, Inc. <email@example.com>; UniForum Canada <firstname.lastname@example.org>