From 1d35963766490eb98d7776a28a82f5e3f00e24e2 Mon Sep 17 00:00:00 2001 From: shrinivasan ganapathy Date: Sun, 15 Oct 2017 15:46:09 -0700 Subject: LD_PRELOAD poll implementation - add poll implementation - implementation based on vppcom_poll - implementation based on vppcom_select - currently vppcom_select implementation is picked Change-Id: If6c2862ae72e9969335aca5b8085957c98287dc0 Signed-off-by: shrinivasan ganapathy Signed-off-by: Dave Wallace --- extras/vcl-ldpreload/src/libvcl-ldpreload/vcom_socket.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'extras/vcl-ldpreload/src/libvcl-ldpreload/vcom_socket.h') diff --git a/extras/vcl-ldpreload/src/libvcl-ldpreload/vcom_socket.h b/extras/vcl-ldpreload/src/libvcl-ldpreload/vcom_socket.h index ef57646966b..9dc18f58af2 100644 --- a/extras/vcl-ldpreload/src/libvcl-ldpreload/vcom_socket.h +++ b/extras/vcl-ldpreload/src/libvcl-ldpreload/vcom_socket.h @@ -448,6 +448,17 @@ vcom_socket_epoll_pwait (int __epfd, struct epoll_event *__events, int __maxevents, int __timeout, const __sigset_t * __ss); +/* + * handle only vcom fds + */ +int vcom_socket_poll (struct pollfd *__fds, nfds_t __nfds, int __timeout); + +#ifdef __USE_GNU +int +vcom_socket_ppoll (struct pollfd *__fds, nfds_t __nfds, + const struct timespec *__timeout, const __sigset_t * __ss); +#endif + #endif /* included_vcom_socket_h */ /* -- cgit 1.2.3-korg