]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] 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:46:47 +0000 (13:46 +0200)
committerGitHub <noreply@github.com>
Fri, 24 Jul 2026 11:46:47 +0000 (11:46 +0000)
commita5d357c9dac21b2146f02ca4b13747eab09711b6
treeab3c8bd30767ed44b223abaea4b9d02c01e47906
parent5bf6a7449f4a7a796a034bebaf0f65da762b128a
[3.15] gh-154435: Fix os.posix_fadvise() and os.posix_fallocate() on DragonFly BSD (GH-154436) (GH-154451)

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