diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2008-11-18 17:30:30 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2008-11-18 17:30:30 +0000 |
commit | a5161eb56fffe5ef8087d00e53ef6c5de4cd7dd6 (patch) | |
tree | 414ecfd618101a507bf1b3c9263cd067b2ad7b9b /nuttx/fs | |
parent | c23d514aabe0d76722da15bd2c788e14f2f466f6 (diff) |
Implement poll/select for sockets
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1277 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/fs')
-rw-r--r-- | nuttx/fs/fs_poll.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/fs/fs_poll.c b/nuttx/fs/fs_poll.c index 84d20efe8a..9cf6486c13 100644 --- a/nuttx/fs/fs_poll.c +++ b/nuttx/fs/fs_poll.c @@ -93,7 +93,7 @@ static void poll_semtake(FAR sem_t *sem) ****************************************************************************/ #if CONFIG_NFILE_DESCRIPTORS > 0 -static int poll_fdsetup(int fd, FAR struct pollfd *fds) +static int poll_fdsetup(int fd, FAR struct pollfd *fds, boolean setup) { FAR struct filelist *list; FAR struct file *this_file; @@ -137,7 +137,7 @@ static int poll_fdsetup(int fd, FAR struct pollfd *fds) { /* Yes, then setup the poll */ - ret = (int)inode->u.i_ops->poll(this_file, fds); + ret = (int)inode->u.i_ops->poll(this_file, fds, setup); } return ret; } @@ -168,7 +168,7 @@ static inline int poll_setup(FAR struct pollfd *fds, nfds_t nfds, sem_t *sem) /* Set up the poll */ - ret = poll_fdsetup(fds[i].fd, &fds[i]); + ret = poll_fdsetup(fds[i].fd, &fds[i], TRUE); if (ret < 0) { return ret; @@ -201,7 +201,7 @@ static inline int poll_teardown(FAR struct pollfd *fds, nfds_t nfds, int *count) { /* Teardown the poll */ - status = poll_fdsetup(fds[i].fd, NULL); + status = poll_fdsetup(fds[i].fd, &fds[i], FALSE); if (status < 0) { ret = status; |