https://bugs.kde.org/show_bug.cgi?id=431157
--- Comment #26 from Carl Love <c...@us.ibm.com> --- Julian: Yes, that is correct, the return value for an error is negative. The condition code register is not used. On Fri, 2021-03-05 at 09:57 +0000, Julian Seward wrote: > https://urldefense.proofpoint.com/v2/url?u=https-3A__bugs.kde.org_show-5Fbug.cgi-3Fid-3D431157&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=RFEmMkZAk--_wFGN5tkM_A&m=LDVfEmUd-H_cdiL0yAJIDD4f9GlVpf4oXZSJe8xr5xU&s=xZmlKz03m2k_wUJhzUNSKgExgb7_Drdzz2_0WAG3yrg&e= > > > --- Comment #23 from Julian Seward <jsew...@acm.org> --- > (In reply to Tom Hughes from comment #22) > > So if thinks the open was a success with a negative file descriptor > > returned? > > Ah, maybe it's trying to tell us something :-) I vaguely remember > reading > that this new syscall convention denotes failure by returning a value > between > -1 and -4096 [bizarrely, like x86-32 in the earliest days of > Linux]. If that's > true, it would imply that the call was passed to the kernel using the > new > convention, it failed, but we mistakenly believe, in the post-syscall > handling, > that it succeeded. > -- You are receiving this mail because: You are watching all bug changes.