[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/45148: dup2(3) and dup3(3) should support EINVAL
The following reply was made to PR lib/45148; it has been noted by GNATS.
From: David Holland <dholland-bugs%netbsd.org@localhost>
Subject: Re: lib/45148: dup2(3) and dup3(3) should support EINVAL
Date: Thu, 21 Jul 2011 03:30:48 +0000
On Tue, Jul 19, 2011 at 03:30:09PM +0000, Jukka Ruohonen wrote:
>> dup3 should be a superset of dup2, IOW, dup2(a, b) === dup3(a, b, 0).
>> Anything else is insane and begging for bizarre problems in the future.
> dup3() is Linux-specific function. I think it is important to do what Linux
> does. (If it was up to NetBSD, I doubt whether we would even have it.)
That's true, but if they do it stupidly, and we (and everyone else)
goes along, it'll end up standardized stupidly and then it's wrong for
David A. Holland
Main Index |
Thread Index |