[Bug 91149] fix man page: read(2) and write(2) can return EINVAL for unaligned access to block devices
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 07 Oct 2022 11:39:39 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=91149 --- Comment #4 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=1c2be25f6080ee63baeae55e45761e1310d1b756 commit 1c2be25f6080ee63baeae55e45761e1310d1b756 Author: Benedict Reuschling <bcr@FreeBSD.org> AuthorDate: 2022-10-07 11:32:37 +0000 Commit: Benedict Reuschling <bcr@FreeBSD.org> CommitDate: 2022-10-07 11:32:37 +0000 Add extra EINVAL information about wrong block size to read(2)/write(2) The read system call will return EINVAL if the current file offset is not a multiple of the block size. This also applies to write(2). Add an entry for EINVAL about this error to both man pages. PR: 91149 Event: Aberdeen Hackathon 2022 Differential Revision: https://reviews.freebsd.org/D24617 lib/libc/sys/read.2 | 4 +++- lib/libc/sys/write.2 | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.