diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-18 17:30:30 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-18 17:30:30 +0000 |
commit | 1994f6983332bf79b4ea8d3f242dc710f99cf2e9 (patch) | |
tree | 414ecfd618101a507bf1b3c9263cd067b2ad7b9b /nuttx/drivers/dev_zero.c | |
parent | 3a3f46b691da1747881032dec6f5b5af2c308cdd (diff) | |
download | px4-nuttx-1994f6983332bf79b4ea8d3f242dc710f99cf2e9.tar.gz px4-nuttx-1994f6983332bf79b4ea8d3f242dc710f99cf2e9.tar.bz2 px4-nuttx-1994f6983332bf79b4ea8d3f242dc710f99cf2e9.zip |
Implement poll/select for sockets
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1277 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/dev_zero.c')
-rw-r--r-- | nuttx/drivers/dev_zero.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/drivers/dev_zero.c b/nuttx/drivers/dev_zero.c index 08815ace5..13276ca7a 100644 --- a/nuttx/drivers/dev_zero.c +++ b/nuttx/drivers/dev_zero.c @@ -56,7 +56,7 @@ static ssize_t devzero_read(FAR struct file *, FAR char *, size_t); static ssize_t devzero_write(FAR struct file *, FAR const char *, size_t); #ifndef CONFIG_DISABLE_POLL -static int devzero_poll(FAR struct file *filp, FAR struct pollfd *fds); +static int devzero_poll(FAR struct file *filp, FAR struct pollfd *fds, boolean setup); #endif /**************************************************************************** @@ -104,9 +104,9 @@ static ssize_t devzero_write(FAR struct file *filp, FAR const char *buffer, size ****************************************************************************/ #ifndef CONFIG_DISABLE_POLL -static int devzero_poll(FAR struct file *filp, FAR struct pollfd *fds) +static int devzero_poll(FAR struct file *filp, FAR struct pollfd *fds, boolean setup) { - if (fds) + if (setup) { fds->revents |= (fds->events & (POLLIN|POLLOUT)); if (fds->revents != 0) |