mirror of
https://github.com/apache/nuttx.git
synced 2026-02-07 21:42:56 +08:00
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.