According to https://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html " When opening a FIFO with O_RDONLY or O_WRONLY set: * If O_NONBLOCK is set, an open() for reading-only shall return without delay. An open() for writing-only shall return an error if no process currently has the file open for reading. * If O_NONBLOCK is clear, an open() for reading-only shall block the calling thread until a thread opens the file for writing. An open() for writing-only shall block the calling thread until a thread opens the file for reading. " This commit has an equivalent on nuttx-apps: EXAMPLES_PIPE app was updated to be able to check pipes and named pipes behavior. |
||
|---|---|---|
| .. | ||
| fifo.c | ||
| Kconfig | ||
| Make.defs | ||
| pipe.c | ||
| pipe_common.c | ||
| pipe_common.h | ||