NetBSD-Bugs archive

[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

On Fri, Jul 15, 2011 at 11:56:58AM +0300, Jukka Ruohonen wrote:
> From a quick look, there is also a small defect in the manual page: how can
> dup2(2) or dup3(2) ever fail with EMFILE? (Also SUSv4 omits this for dup2(2).)

Can martin@ or christos@ comment about the avove? Surely it must be
impossible to fail with EMFAIL if these always close a descriptor...

Otherwise this is fixed, thanks, and should be closed.


(P.S. Not that it really matters here, but testing the corner cases have
generally revealed few obvious, stupid panics.)

Home | Main Index | Thread Index | Old Index