]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-154435: Fix os.posix_fadvise() and os.posix_fallocate() on DragonFly BSD (GH-154436)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 22 Jul 2026 08:39:11 +0000 (11:39 +0300)
committerGitHub <noreply@github.com>
Wed, 22 Jul 2026 08:39:11 +0000 (11:39 +0300)
commit08a0d10709f04cf03260e5e852381cecb1c531e1
tree1d5ec2714bbfbbdf06a9c1e04d40adae073eb458
parent2cf8e59a38251ff6dfbcd326104068be01c95385
gh-154435: Fix os.posix_fadvise() and os.posix_fallocate() on DragonFly BSD (GH-154436)

They return -1 and set errno instead of returning the error number, so
OSError was raised with a meaningless error code.

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