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)
Fri, Nov 7, 9:17 PM
Unknown Object (File)
Mon, Nov 3, 11:42 AM
Unknown Object (File)
Sun, Nov 2, 12:57 AM
Unknown Object (File)
Mon, Oct 27, 7:15 PM
Unknown Object (File)
Sat, Oct 25, 9:30 PM
Unknown Object (File)
Fri, Oct 24, 8:43 PM
Unknown Object (File)
Fri, Oct 24, 2:00 PM
Unknown Object (File)
Fri, Oct 24, 2:00 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 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.