Skip to contentSkip to conversation

fsync(2) EINVAL example, fifo(7) read-only

DISCUSSION Georg Sauthoff 1 participant 1 message Jan 23, 2011 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

Hi,

just small stuff:

from the ERRORS section of fsync(2):

'EROFS, EINVAL
fd is bound to a special file which does not support synchronization.
'

Consider adding an example of an file which does not support synchronization, i.e. a note that doing fsync on a fifo yields EINVAL.

from fifo(7):

'A process can open a FIFO in nonblocking mode. In this case, opening for read
only will succeed even if no-one has opened on the write side yet, opening for write only will fail with ENXIO (no such device or address) unless the other end has already been opened.
'

IMHO it would be easier to parse, if 'read only'/'write only' would be substituted with 'read-only'/'write-only'.

Best regards
Georg
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html