[Bug 245773] lang/python3: Missing errno.EDEADLOCK

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 16 Sep 2021 12:43:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245773

Willem Jan Withagen <wjw@digiware.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wjw@digiware.nl

--- Comment #2 from Willem Jan Withagen <wjw@digiware.nl> ---
(In reply to Gleb Popov from comment #1)

Yes you are corect. And even on Linux `man 3 errno` tells:
```
       EDEADLOCK
              On most architectures, a synonym for EDEADLK.  On some
              architectures (e.g., Linux MIPS, PowerPC, SPARC), it is a
              separate error code "File locking deadlock error".
```
and in the errno file itself:
```
asm-generic/errno.h:#define     EDEADLK         35      /* Resource deadlock
would occur */
asm-generic/errno.h:#define     EDEADLOCK       EDEADLK
```

But it would be a lot more conveinient if it did exist and worked as expected.

The problem of the requestor is not fixed with this, since on FreeBSD `EDEADLK`
has value 11, so things will not work as expected.
And sending error codes between FreeBSD and Linux will require translation for
more than just this one.

Then again Python claims that it errno.EDEADLOCK is there, so we should atleast
fix that omission.

-- 
You are receiving this mail because:
You are the assignee for the bug.