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)
Sep 30 2024, 3:19 AM
Unknown Object (File)
Sep 28 2024, 6:29 AM
Unknown Object (File)
Sep 24 2024, 5:54 AM
Unknown Object (File)
Sep 24 2024, 3:04 AM
Unknown Object (File)
Sep 24 2024, 1:50 AM
Unknown Object (File)
Sep 23 2024, 11:51 AM
Unknown Object (File)
Sep 23 2024, 11:51 AM
Unknown Object (File)
Sep 22 2024, 1:33 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.