]> git.ipfire.org Git - thirdparty/man-pages.git/commit
fsync.2: Note that some systems require a writable file descriptor
authorMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 27 Feb 2012 00:23:06 +0000 (13:23 +1300)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 27 Feb 2012 00:50:55 +0000 (13:50 +1300)
commitba9830cfc9fe39c1720715176c0804606d2ea251
treecafc5d061f1e1e63ba4212aa170f2646d62f19bf
parentad4760331ebc494ed355886612995fb6ad8b4864
fsync.2: Note that some systems require a writable file descriptor

An edited version of Guillem Jover's comments:
[While the file descriptor does not need to be writable on Linux]
that's not a safe portable assumption to make on POSIX in general
as that behavior is not specified and as such is
implementation-specific. Some Unix systems do actually fail on
read-only file descriptors, for example [HP-UX and AIX].

Reported-by: Guillem Jover <guillem@hadrons.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/fsync.2