]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-154435: Fix os.posix_fadvise() and os.posix_fallocate() on DragonFly BSD...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 24 Jul 2026 11:45:34 +0000 (13:45 +0200)
committerGitHub <noreply@github.com>
Fri, 24 Jul 2026 11:45:34 +0000 (11:45 +0000)
commitac0b2b82e553987824ac35a228f7bb7d8f2486ab
treefce4abc3b31d81b47b620d231138142504ce5d35
parent29739c790e55d97526400bbd8f0cea93bbd11034
[3.14] gh-154435: Fix os.posix_fadvise() and os.posix_fallocate() on DragonFly BSD (GH-154436) (GH-154452)

They return -1 and set errno instead of returning the error number, so
OSError was raised with a meaningless error code.
(cherry picked from commit 08a0d10709f04cf03260e5e852381cecb1c531e1)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Misc/NEWS.d/next/Library/2026-07-22-10-30-08.gh-issue-154435.xCxm0T.rst [new file with mode: 0644]
Modules/posixmodule.c