NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/41085: sigaction returns EINVAL instead of -1



On Sat, Mar 28, 2009 at 04:45:02AM +0000, David Holland wrote:
>  
>  I've looked over the kernel and libc code involved and I don't see any
>  plausible way for it to mix the return value and error code, unless
>  something Xen-specific is causing the carry flag (which distinguishes
>  error returns from real return values) to get cleared in the low-level
>  code on the way back from the system call.

Or somehow some Linux system call code is being used/assumed...
Where, instead of using the carry flag, small negative return values
are taken as errno values.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index