[RFC] Saving the latest errno from syscalls.
Marcel Moolenaar
xcllnt at mac.com
Thu Mar 11 22:55:37 UTC 2010
On Mar 11, 2010, at 1:24 PM, Jung-uk Kim wrote:
> While I was debugging syscalls, I found a very useful field in struct
> thread, td_errno. It seems it was added for dtrace but it is only
> populated on amd64 and i386. Is the attached patch acceptable for
> maintainers of other platforms?
Isn't it better to do it in cpu_set_syscall_retval()?
That way you catch all cases, plus you can save the
translated error as well...
--
Marcel Moolenaar
xcllnt at mac.com
More information about the freebsd-hackers
mailing list