mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
fs: Add file_pipe function
so pty don't need call nx_pipe and then file_detach Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: Ibb8d108abd76bafe53897e5fca35babcf3e1bae9
This commit is contained in:
@@ -1499,6 +1499,7 @@ int nx_unlink(FAR const char *pathname);
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_PIPES) && CONFIG_DEV_PIPE_SIZE > 0
|
||||
int file_pipe(FAR struct file *filep[2], size_t bufsize, int flags);
|
||||
int nx_pipe(int fd[2], size_t bufsize, int flags);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user