]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Document atomicity for read(2) and write(2).
authorkib <kib@FreeBSD.org>
Sat, 6 Jul 2019 20:31:37 +0000 (20:31 +0000)
committerkib <kib@FreeBSD.org>
Sat, 6 Jul 2019 20:31:37 +0000 (20:31 +0000)
commitdd4da0248cd413e8fe5f099173aa351e9f277bef
tree9820f91a5748bfb4e2ea9dc85dfbe78cbe50bbe8
parentda9211c814dfde69561ee93a0627bd056492b12e
Document atomicity for read(2) and write(2).

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.

Reviewed by: asomers
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential revision: https://reviews.freebsd.org/D20867
lib/libc/sys/read.2