nuttx/drivers/pipes
Tiago Medicci Serrano 4d6a8663fa drivers/pipe: make pipe and named pipe (mkfifo) POSIX-compliant
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.
2023-04-22 01:28:33 +08:00
..
fifo.c fs: Move mmap callback before truncate in [file|mountpt]_operations 2023-01-04 17:43:59 +02:00
Kconfig pipe: Add DEV_PIPE_VFS_PATH to specify the pipe location 2022-02-05 23:37:44 +01:00
Make.defs
pipe_common.c drivers/pipe: make pipe and named pipe (mkfifo) POSIX-compliant 2023-04-22 01:28:33 +08:00
pipe_common.h drivers/pipe: make pipe and named pipe (mkfifo) POSIX-compliant 2023-04-22 01:28:33 +08:00
pipe.c drivers/pipe: make pipe and named pipe (mkfifo) POSIX-compliant 2023-04-22 01:28:33 +08:00