From 593b8eb9c278dcdf1aaab806a8734cacbcf58641 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 22 Sep 2016 22:52:02 +0100 Subject: [PATCH] close: update man page for stuff we fixed --- Applications/man2/close.2 | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Applications/man2/close.2 b/Applications/man2/close.2 index 0fd3bd8e..acae3a65 100644 --- a/Applications/man2/close.2 +++ b/Applications/man2/close.2 @@ -24,12 +24,7 @@ On success, zero is returned. On error -1 is returned and errno is set. ## CONFORMING TO V7, UZI, POSIX.1-2001, POSIX.1-2008 ## NOTES -The return of a *close*() call does not guarantee that the data is on the -media. If this is required then a call to *sync*(2) is needed. -## BUGS -Many systems provide an *fsync*(2) and *fdatasync*(2) call to write back the -data on just one file. In a small system like Fuzix this is not useful as -*sync*(2) is just as good, but ought to be provided by wrappers in the C -library. +The return of a *close*() call does not guarantee that the file is on the +media. If this is required then a call to *fsync*(3) is needed. ## SEE ALSO -*flock*(2), *open*(2), *pipe*(2), *socket*(2), *sync*(2), *unlink*(2). +*flock*(2), *fsync*(3), *open*(2), *pipe*(2), *socket*(2), *sync*(2), *unlink*(2). -- 2.34.1