This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: The time(2) man page conflicts with glibc


On 15 Dec 2015 10:19, Zack Weinberg wrote:
> On Tue, Dec 15, 2015 at 9:55 AM, Mike Frysinger wrote:
> > On 15 Dec 2015 09:14, Zack Weinberg wrote:
> >> Given the extreme obsolescence of the argument to `time`, I would
> >> recommend that the *kernel* be changed to fire an actual SIGSEGV
> >> instead of returning -EFAULT from the syscall version of `time`, and
> >> then that can be the documented behavior, with the historic behavior
> >> relegated to the BUGS section of the manpage.
> >
> > meh.  it would be out of character for the kernel to do this.
> 
> Why?

because it returns EFAULT for other syscalls when you pass bad pointers.
projects like LTP utilize that to verify edge case functionality.
-mike

Attachment: signature.asc
Description: Digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]