public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* EINTR for fsync(2)
@ 2022-01-31 18:32 Mathnerd314
  2022-01-31 20:44 ` Alejandro Colomar (man-pages)
  0 siblings, 1 reply; 9+ messages in thread
From: Mathnerd314 @ 2022-01-31 18:32 UTC (permalink / raw)
  To: mtk.manpages, alx.manpages; +Cc: linux-man

Hi,

The POSIX standard says fsync(2) can return EINTR:
https://pubs.opengroup.org/onlinepubs/9699919799/

The man page does not:
https://man7.org/linux/man-pages/man2/fsync.2.html

I think fsync can be interrupted by a signal on Linux, so this should
just be an oversight in the man page.

At least, fsync on fuse seems be able to return EINTR:
https://github.com/torvalds/linux/blob/5367cf1c3ad02f7f14d79733814302a96cc97b96/fs/fuse/dev.c#L114

Actually there seem to be numerous error codes that can be returned
from all filesystem calls on fuse: ENOTCONN, ENOMEM, etc. But EINTR is
at least documented in the POSIX standard, whereas these others seem
really rare. But for full correctness I suppose these should be
documented as well. It would be quite an undertaking.

-- Mathnerd314 (pseudonym)

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-02-03 17:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-31 18:32 EINTR for fsync(2) Mathnerd314
2022-01-31 20:44 ` Alejandro Colomar (man-pages)
2022-01-31 23:17   ` Mathnerd314
2022-02-01 14:36     ` Alejandro Colomar (man-pages)
2022-02-01  0:30   ` Matthew Wilcox
2022-02-01 14:48     ` Alejandro Colomar (man-pages)
2022-02-01 19:56     ` Mathnerd314
2022-02-01 20:32       ` Matthew Wilcox
     [not found]         ` <CADVL9rF8chZpN9Nycs=MW0JuppnFaoq07gjS+ODC3CSUt0w1xA@mail.gmail.com>
2022-02-03 17:33           ` Fwd: " Mathnerd314

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox