gh-154435: Fix os.posix_fadvise() and os.posix_fallocate() on DragonF… · python/cpython@08a0d10 · GitHub
Skip to content

Commit 08a0d10

Browse files
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>
1 parent 2cf8e59 commit 08a0d10

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions

Modules/posixmodule.c

Lines changed: 8 additions & 0 deletions

0 commit comments

Comments
 (0)