fs/vfs: Add nx_poll function

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2020-05-04 01:51:42 +08:00
committed by patacongo
parent d3851699d7
commit 1da8cd6b89
2 changed files with 77 additions and 39 deletions
+17
View File
@@ -1375,6 +1375,23 @@ int file_poll(FAR struct file *filep, FAR struct pollfd *fds, bool setup);
int fs_poll(int fd, FAR struct pollfd *fds, bool setup);
/****************************************************************************
* Name: nx_poll
*
* Description:
* nx_poll() is similar to the standard 'poll' interface except that is
* not a cancellation point and it does not modify the errno variable.
*
* nx_poll() is an internal NuttX interface and should not be called from
* applications.
*
* Returned Value:
* Zero is returned on success; a negated value is returned on any failure.
*
****************************************************************************/
int nx_poll(FAR struct pollfd *fds, unsigned int nfds, int timeout);
/****************************************************************************
* Name: file_fstat
*