[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fifo, mmap, errors

From: Greg Buchholz
Subject: fifo, mmap, errors
Date: Thu, 4 Sep 2003 22:40:26 +0100 (BST)

        While browsing through the source for /hurd/fifo, I noticed that
trivfs_S_io_map was returning EINVAL.  It seems like it should be ENODEV.
>From the glibc manual...


Possible mmap errors include:

    Either address was unusable, or inconsistent flags were given.
    filedes was not open for the type of access specified in protect.
    Either there is not enough memory for the operation, or the process is
    out of address space.
    This file is of a type that doesn't support mapping.
    The file is on a filesystem that doesn't support mapping.

And it look like its a similar story for some other translators
(trans/null.c, trans/new-fifo.c, and pfinet/tunnel.c) as well as the
default (libtrivfs/io-map.c).  As a comparasion, on my linux system, mmap
fails with ENODEV on a fifo.

Greg Buchholz

reply via email to

[Prev in Thread] Current Thread [Next in Thread]