[Bug 2160] IMFS pipe support broken
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Tue Dec 10 20:54:49 UTC 2013
https://www.rtems.org/bugzilla/show_bug.cgi?id=2160
--- Comment #7 from Chris Johns <chrisj at rtems.org> 2013-12-10 14:54:49 CST ---
(In reply to comment #6)
> I don't think it is good to break existing application configurations this way.
Hows does this break existing applications ?
> Why can't you use
>
> #define CONFIGURE_FIFOS_ENABLED
>
> #include <rtems/confdefs.h>
>
> ?
>
I did not know this existed. I did not know various parts of POSIX where being
controlled by confdefs.h.
As stated mkfifo does not fail however using it did and I spent a while
thinking it was my code. Figuring out this related to the set up of the IMFS
was not easy and not intuitive. If mkfifo failed with the errno for not
supported that would be better but it does not.
> FIFO support is optional in IMFS and it should stay this way. See also
>
> http://git.rtems.org/rtems/tree/cpukit/libfs/src/imfs/fifoimfs_init.c
>
> which is now identical your
>
> http://git.rtems.org/rtems/tree/cpukit/libfs/src/imfs/imfs_init.c
>
> This makes no sense at all.
Yes having both files does not make sense. If the open called for the FIFO
failed then the change can be reverted. I wonder if the default handlers being
used are wrong for the FIFO. This would also catch the mknod path to creating a
FIFO.
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list