From: Willy Tarreau Date: Mon, 9 Apr 2007 13:28:51 +0000 (+0200) Subject: [MINOR] removed proto/polling.h which was not used anymore X-Git-Tag: v1.3.9~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69801b8e77cb6737ea6c50313e51a742e6455f70;p=thirdparty%2Fhaproxy.git [MINOR] removed proto/polling.h which was not used anymore --- diff --git a/include/proto/polling.h b/include/proto/polling.h deleted file mode 100644 index 179c654a2e..0000000000 --- a/include/proto/polling.h +++ /dev/null @@ -1,73 +0,0 @@ -/* - include/proto/polling.h - Polling functions. - - Copyright (C) 2000-2006 Willy Tarreau - w@1wt.eu - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation, version 2.1 - exclusively. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -*/ - -#ifndef _PROTO_POLLING_H -#define _PROTO_POLLING_H - -#include -#include - -/* - * Main select() loop. - * does 3 actions : - * 0 (POLL_LOOP_ACTION_INIT) : initializes necessary private structures - * 1 (POLL_LOOP_ACTION_RUN) : runs the loop - * 2 (POLL_LOOP_ACTION_CLEAN) : cleans up - * - * returns 0 if initialization failed, !0 otherwise. - */ -int select_loop(int action); - -#if defined(ENABLE_POLL) -/* - * Main poll() loop. - * does 3 actions : - * 0 (POLL_LOOP_ACTION_INIT) : initializes necessary private structures - * 1 (POLL_LOOP_ACTION_RUN) : runs the loop - * 2 (POLL_LOOP_ACTION_CLEAN) : cleans up - * - * returns 0 if initialization failed, !0 otherwise. - */ -int poll_loop(int action); -#endif - -#if defined(ENABLE_EPOLL) -/* - * Main epoll() loop. - * does 3 actions : - * 0 (POLL_LOOP_ACTION_INIT) : initializes necessary private structures - * 1 (POLL_LOOP_ACTION_RUN) : runs the loop - * 2 (POLL_LOOP_ACTION_CLEAN) : cleans up - * - * returns 0 if initialization failed, !0 otherwise. - */ -int epoll_loop(int action); -#endif - - -#endif /* _PROTO_POLLING_H */ - -/* - * Local variables: - * c-indent-level: 8 - * c-basic-offset: 8 - * End: - */ diff --git a/include/types/polling.h b/include/types/polling.h index 81921ee4ab..93d0e30a4d 100644 --- a/include/types/polling.h +++ b/include/types/polling.h @@ -29,25 +29,6 @@ #include -/* for POLL_* */ -#if defined(ENABLE_POLL) -#include -#endif - -/* for EPOLL_* */ -#if defined(ENABLE_EPOLL) -#if !defined(USE_MY_EPOLL) -#include -#else -#include -#endif -#endif - -/* possible actions for the *poll() loops */ -#define POLL_LOOP_ACTION_INIT 0 -#define POLL_LOOP_ACTION_RUN 1 -#define POLL_LOOP_ACTION_CLEAN 2 - /* poll mechanisms available */ #define POLL_USE_SELECT (1<<0) #define POLL_USE_POLL (1<<1) diff --git a/src/ev_epoll.c b/src/ev_epoll.c index fe0e1a29ed..482ddc06dd 100644 --- a/src/ev_epoll.c +++ b/src/ev_epoll.c @@ -22,15 +22,17 @@ #include #include -#include #include #if defined(USE_MY_EPOLL) +#include #include #include _syscall1 (int, epoll_create, int, size); _syscall4 (int, epoll_ctl, int, epfd, int, op, int, fd, struct epoll_event *, event); _syscall4 (int, epoll_wait, int, epfd, struct epoll_event *, events, int, maxevents, int, timeout); +#else +#include #endif diff --git a/src/ev_kqueue.c b/src/ev_kqueue.c index 98115fa1c5..b3510f3a53 100644 --- a/src/ev_kqueue.c +++ b/src/ev_kqueue.c @@ -30,7 +30,6 @@ #include #include -#include #include /* private data */ diff --git a/src/ev_poll.c b/src/ev_poll.c index b2010cb28f..235772d134 100644 --- a/src/ev_poll.c +++ b/src/ev_poll.c @@ -11,6 +11,7 @@ */ #include +#include #include #include @@ -22,7 +23,6 @@ #include #include -#include #include diff --git a/src/ev_select.c b/src/ev_select.c index 7340d3042f..dc43b5e354 100644 --- a/src/ev_select.c +++ b/src/ev_select.c @@ -22,7 +22,6 @@ #include #include -#include #include diff --git a/src/haproxy.c b/src/haproxy.c index 0ab069994a..37d4b59a9c 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -75,6 +75,7 @@ #include #include #include +#include #include #include @@ -82,7 +83,6 @@ #include #include #include -#include #include #include #include