fsync, fdatasync: generalize fsync write access doc

This commit is contained in:
Paul Eggert
2025-07-22 15:37:22 -07:00
parent 7075f23775
commit 1f4148c157
3 changed files with 13 additions and 9 deletions
+5 -2
View File
@@ -1,8 +1,11 @@
2025-07-22 Collin Funk <collin.funk1@gmail.com>
Paul Eggert <eggert@cs.ucla.edu>
doc: Document that fsync doesn't work on directories on AIX 7.3.
Reported by Lakshmi-Surekha <Lakshmi.Kovvuri@ibm.com> in:
doc: Document that fsync and fdatasync require write access.
Reported for fsync on AIX by Lakshmi-Surekha
<Lakshmi.Kovvuri@ibm.com> in:
<https://github.com/tukaani-project/xz/issues/188>.
* doc/posix-functions/fdatasync.texi:
* doc/posix-functions/fsync.texi: Document the behavior.
2025-07-22 Paul Eggert <eggert@cs.ucla.edu>
+5
View File
@@ -19,4 +19,9 @@ Mac OS X 10.5, FreeBSD 11.0, OpenBSD 3.8, Minix 3.1.8, mingw, MSVC 14, Android 2
Portability problems not fixed by Gnulib:
@itemize
@item
If the argument is a file descriptor that lacks write access,
such as a directory file descriptor, this function fails
with @code{EBADF} on some platforms:
AIX 7.3, Cygwin 3.6.x.
@end itemize
+3 -7
View File
@@ -17,12 +17,8 @@ mingw, MSVC 14.
Portability problems not fixed by Gnulib:
@itemize
@item
If the argument is a read-only file descriptor, this function fails
If the argument is a file descriptor that lacks write access,
such as a directory file descriptor, this function fails
with @code{EBADF} on some platforms:
AIX 7.2, Cygwin 2.9.
@item
If the argument is a directory file descriptor, this function fails with
@code{EBADF} on some platforms:
AIX 7.3.
AIX 7.3, Cygwin 3.6.x.
@end itemize