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
F174004599: D20867.id59481.diff
Tue, Sep 29, 10:13 PM
F174004417: D20867.id59479.diff
Tue, Sep 29, 10:11 PM
F174003923: D20867.id59480.diff
Tue, Sep 29, 10:06 PM
F174003755: D20867.id59474.diff
Tue, Sep 29, 10:05 PM
F173986195: D20867.diff
Tue, Sep 29, 7:22 PM
Unknown Object (File)
Sat, Sep 26, 1:36 PM
Unknown Object (File)
Wed, Sep 16, 7:12 AM
Unknown Object (File)
Sat, Sep 5, 5:55 AM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 25226

Event Timeline

lib/libc/sys/read.2
132

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

144

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

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

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.