mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
drivers/pipes: nx_pipe syscall takes three params, also use nx_close on error path
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
This commit is contained in:
committed by
Xiang Xiao
parent
bc8ea75580
commit
1115452061
@@ -236,8 +236,8 @@ ssize_t bchlib_write(FAR void *handle, FAR const char *buffer, size_t offset,
|
||||
* flags - The file status flags.
|
||||
*
|
||||
* Returned Value:
|
||||
* 0 is returned on success; otherwise, the negative error code return
|
||||
* appropriately.
|
||||
* 0 is returned on success; a negated errno value is returned on a
|
||||
* failure.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
@@ -274,8 +274,8 @@ int nx_pipe(int fd[2], size_t bufsize, int flags);
|
||||
* bufsize - The size of the in-memory, circular buffer in bytes.
|
||||
*
|
||||
* Returned Value:
|
||||
* 0 is returned on success; otherwise, the negative error code return
|
||||
* appropriately.
|
||||
* 0 is returned on success; a negated errno value is returned on a
|
||||
* failure.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
@@ -255,7 +255,7 @@ SYSCALL_LOOKUP(telldir, 1)
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_PIPES) && CONFIG_DEV_PIPE_SIZE > 0
|
||||
SYSCALL_LOOKUP(nx_pipe, 2)
|
||||
SYSCALL_LOOKUP(nx_pipe, 3)
|
||||
SYSCALL_LOOKUP(nx_mkfifo, 3)
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user