projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clang-tidy: add Chrome-inspired checks
[lttng-tools.git]
/
src
/
common
/
compat
/
poll.hpp
diff --git
a/src/common/compat/poll.hpp
b/src/common/compat/poll.hpp
index 3cb07bf9375200ee51ca6da444175898a4a34d35..e6de51474bfce238d96f50a9c993bf7a1c79784d 100644
(file)
--- a/
src/common/compat/poll.hpp
+++ b/
src/common/compat/poll.hpp
@@
-158,7
+158,7
@@
extern int compat_epoll_mod(struct lttng_poll_event *events,
/*
* Set up the poll set limits variable poll_max_size
*/
/*
* Set up the poll set limits variable poll_max_size
*/
-extern int compat_epoll_set_max_size(
void
);
+extern int compat_epoll_set_max_size();
#define lttng_poll_set_max_size() \
compat_epoll_set_max_size()
#define lttng_poll_set_max_size() \
compat_epoll_set_max_size()
@@
-213,16
+213,6
@@
static inline void lttng_poll_clean(struct lttng_poll_event *events)
* Fallback on poll(2) API
*/
* Fallback on poll(2) API
*/
-/* Needed for some poll event values */
-#ifndef __USE_XOPEN
-#define __USE_XOPEN
-#endif
-
-/* Needed for some poll event values */
-#ifndef __USE_GNU
-#define __USE_GNU
-#endif
-
#include <poll.h>
#include <stdint.h>
#include <poll.h>
#include <stdint.h>
@@
-235,15
+225,13
@@
enum {
LPOLLRDBAND = POLLRDBAND,
LPOLLWRNORM = POLLWRNORM,
LPOLLWRBAND = POLLWRBAND,
LPOLLRDBAND = POLLRDBAND,
LPOLLWRNORM = POLLWRNORM,
LPOLLWRBAND = POLLWRBAND,
-#ifdef __
linux__
+#ifdef __
USE_GNU
LPOLLMSG = POLLMSG,
LPOLLRDHUP = POLLRDHUP,
LPOLLMSG = POLLMSG,
LPOLLRDHUP = POLLRDHUP,
-#el
if (defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__sun__) || defined(__APPLE__))
+#el
se
LPOLLMSG = 0,
LPOLLRDHUP = 0,
LPOLLMSG = 0,
LPOLLRDHUP = 0,
-#else
-#error "Please add support for your OS."
-#endif /* __linux__ */
+#endif /* __USE_GNU */
LPOLLERR = POLLERR,
LPOLLHUP = POLLHUP | POLLNVAL,
/* Close on exec feature does not exist for poll(2) */
LPOLLERR = POLLERR,
LPOLLHUP = POLLHUP | POLLNVAL,
/* Close on exec feature does not exist for poll(2) */
This page took
0.035091 seconds
and
4
git commands to generate.