Page MenuHomeFreeBSD

Document atomicity for read(2) and write(2).
ClosedPublic

Authored by kib on Jul 6 2019, 5:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 9 2024, 7:07 AM
Unknown Object (File)
Dec 19 2023, 11:28 PM
Unknown Object (File)
Oct 28 2023, 10:32 AM
Unknown Object (File)
Sep 4 2023, 7:20 PM
Unknown Object (File)
Aug 16 2023, 2:54 AM
Unknown Object (File)
Aug 7 2023, 6:21 PM
Unknown Object (File)
Aug 7 2023, 6:21 PM
Unknown Object (File)
Aug 7 2023, 6:19 PM
Subscribers

Details

Summary

Take part of the text from POSIX 2018 edition and describe the atomicity requirements for read and write syscalls. See p1003.1-2018, Vol.2, 2.9.7 Threads interaction with Regular File Operations.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lib/libc/sys/read.2
132 ↗(On Diff #59474)

It looks like the year 2004 edition included this language, too.

144 ↗(On Diff #59474)

each call shall either see

kib marked an inline comment as done.Jul 6 2019, 7:38 PM
kib added inline comments.
lib/libc/sys/read.2
144 ↗(On Diff #59474)

From what I remember, we do not use 'shall' in man pages, because we describe the implementation and not a requirement for the implementation.

lib/libc/sys/read.2
144 ↗(On Diff #59474)

Fair enough, but the sentence as you wrote it is not grammatically correct. "see" needs to be conjugated for tense. Using "shall" or "will" would fix that.

kib marked 2 inline comments as done.

will see

This revision is now accepted and ready to land.Jul 6 2019, 8:12 PM
This revision was automatically updated to reflect the committed changes.