]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-154435: Fix os.posix_fadvise() and os.posix_fallocate() on DragonFly BSD...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 22 Jul 2026 09:01:58 +0000 (11:01 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Jul 2026 09:01:58 +0000 (12:01 +0300)
commit67cdf27261bc3ee563285c1af6c7c73699b03604
tree122a632dab1246bbacab7f81a1693b5c4dd56797
parentf6eadb51147a3e11cc62c1cd540197e1249ab1fd
[3.13] gh-154435: Fix os.posix_fadvise() and os.posix_fallocate() on DragonFly BSD (GH-154436) (GH-154453)

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