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)
Tue, Mar 24, 8:01 PM
Unknown Object (File)
Wed, Mar 18, 9:59 PM
Unknown Object (File)
Wed, Mar 18, 4:11 AM
Unknown Object (File)
Wed, Mar 18, 3:48 AM
Unknown Object (File)
Tue, Mar 17, 3:35 PM
Unknown Object (File)
Sun, Mar 15, 2:28 AM
Unknown Object (File)
Thu, Mar 12, 3:34 PM
Unknown Object (File)
Thu, Mar 12, 12:03 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.