summaryrefslogtreecommitdiff
path: root/ACE/ace/Dev_Poll_Reactor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/Dev_Poll_Reactor.cpp')
-rw-r--r--ACE/ace/Dev_Poll_Reactor.cpp21
1 files changed, 1 insertions, 20 deletions
diff --git a/ACE/ace/Dev_Poll_Reactor.cpp b/ACE/ace/Dev_Poll_Reactor.cpp
index f1e3e03342e..6ac51473285 100644
--- a/ACE/ace/Dev_Poll_Reactor.cpp
+++ b/ACE/ace/Dev_Poll_Reactor.cpp
@@ -13,8 +13,6 @@
# if defined (ACE_HAS_DEV_POLL)
# if defined (ACE_LINUX)
# include /**/ <linux/devpoll.h>
-# elif defined (HPUX_VERS) && HPUX_VERS < 1123
-# include /**/ <devpoll.h>
# else
# include /**/ <sys/devpoll.h>
# endif /* ACE_LINUX */
@@ -2337,24 +2335,7 @@ ACE_Dev_Poll_Reactor::mask_ops_i (ACE_HANDLE handle,
{
short const events = this->reactor_mask_to_poll_event (new_mask);
-#if defined (sun)
- // Apparently events cannot be updated on-the-fly on Solaris so
- // remove the existing events, and then add the new ones.
- struct pollfd pfd[2];
-
- pfd[0].fd = handle;
- pfd[0].events = POLLREMOVE;
- pfd[0].revents = 0;
- pfd[1].fd = (events == POLLREMOVE ? ACE_INVALID_HANDLE : handle);
- pfd[1].events = events;
- pfd[1].revents = 0;
-
- // Change the events associated with the given file descriptor.
- if (ACE_OS::write (this->poll_fd_,
- pfd,
- sizeof (pfd)) != sizeof (pfd))
- return -1;
-#elif defined (ACE_HAS_EVENT_POLL)
+#if defined (ACE_HAS_EVENT_POLL)
struct epoll_event epev;
ACE_OS::memset (&epev, 0, sizeof (epev));