svn commit: r304928 - in head/lib/libc: amd64/sys i386/sys sys
Konstantin Belousov
kostikbel at gmail.com
Mon Aug 29 15:34:46 UTC 2016
On Mon, Aug 29, 2016 at 06:05:50PM +0300, Andrey Chernov wrote:
> No surprise since they all share the same initial implementation. You
> can add NetBSD and OpenBSD too. Errno clearing as undocumented side
> effect is not what we need, and every system documents that user must
> clear errno.
Of course they do not share initial implementation. Solaris ptrace(2) is
the recent clean room implementation of the interface on top of their
procfs(4). Glibc provides the code specific to linux, and they only
clear errno for requests which might return -1 legitimately, and only do
it after.
I would understand your argument if I referenced Open/NetBSD, but I did not.
More information about the svn-src-head
mailing list