[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/45572: EFAULT from time(3)
The following reply was made to PR lib/45572; it has been noted by GNATS.
From: David Holland <dholland-bugs%netbsd.org@localhost>
Subject: Re: lib/45572: EFAULT from time(3)
Date: Sat, 5 Nov 2011 18:37:49 +0000
On Sat, Nov 05, 2011 at 06:20:04PM +0000, Christos Zoulas wrote:
> | But then the bug is in the manual page.
> Absolutely. I fixed it.
If the stars are aligned just so, it *can* fail and return EFAULT.
Also, based on this text in errno(2) I think it would be better to
change the man page back:
14 EFAULT Bad address. The system detected an invalid address in
attempting to use an argument of a call. The reliable detection
of this error cannot be guaranteed and when not detected may
result in the generation of a signal, indicating an address vio-
lation, which is sent to the process.
I have argued in the past that all syscalls returning EFAULT should
also post SIGSEGV; there are a number of reasons that's desirable.
David A. Holland
Main Index |
Thread Index |