projects
/
deliverable
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: libcompat is now part of libcommon
[deliverable/lttng-tools.git]
/
src
/
common
/
compat
/
poll.h
diff --git
a/src/common/compat/poll.h
b/src/common/compat/poll.h
index d4bd87f589213fbace764f2f2d3d152551d5ab5a..5379c806aa8e1e3947f98c7b058ca32ad7113cbc 100644
(file)
--- a/
src/common/compat/poll.h
+++ b/
src/common/compat/poll.h
@@
-122,7
+122,8
@@
static inline int __lttng_epoll_get_prev_fd(struct lttng_poll_event *events,
/*
* Create the epoll set. No memory allocation is done here.
*/
/*
* Create the epoll set. No memory allocation is done here.
*/
-extern int compat_epoll_create(struct lttng_poll_event *events,
+LTTNG_HIDDEN
+int compat_epoll_create(struct lttng_poll_event *events,
int size, int flags);
#define lttng_poll_create(events, size, flags) \
compat_epoll_create(events, size, flags)
int size, int flags);
#define lttng_poll_create(events, size, flags) \
compat_epoll_create(events, size, flags)
@@
-152,14
+153,16
@@
static inline int compat_glibc_epoll_create(int size, int flags)
* Wait on epoll set with the number of fd registered to the lttng_poll_event
* data structure (events).
*/
* Wait on epoll set with the number of fd registered to the lttng_poll_event
* data structure (events).
*/
-extern int compat_epoll_wait(struct lttng_poll_event *events, int timeout);
+LTTNG_HIDDEN
+int compat_epoll_wait(struct lttng_poll_event *events, int timeout);
#define lttng_poll_wait(events, timeout) \
compat_epoll_wait(events, timeout)
/*
* Add a fd to the epoll set and resize the epoll_event structure if needed.
*/
#define lttng_poll_wait(events, timeout) \
compat_epoll_wait(events, timeout)
/*
* Add a fd to the epoll set and resize the epoll_event structure if needed.
*/
-extern int compat_epoll_add(struct lttng_poll_event *events,
+LTTNG_HIDDEN
+int compat_epoll_add(struct lttng_poll_event *events,
int fd, uint32_t req_events);
#define lttng_poll_add(events, fd, req_events) \
compat_epoll_add(events, fd, req_events)
int fd, uint32_t req_events);
#define lttng_poll_add(events, fd, req_events) \
compat_epoll_add(events, fd, req_events)
@@
-167,14
+170,16
@@
extern int compat_epoll_add(struct lttng_poll_event *events,
/*
* Remove a fd from the epoll set.
*/
/*
* Remove a fd from the epoll set.
*/
-extern int compat_epoll_del(struct lttng_poll_event *events, int fd);
+LTTNG_HIDDEN
+int compat_epoll_del(struct lttng_poll_event *events, int fd);
#define lttng_poll_del(events, fd) \
compat_epoll_del(events, fd)
/*
* Modify an fd's events in the epoll set.
*/
#define lttng_poll_del(events, fd) \
compat_epoll_del(events, fd)
/*
* Modify an fd's events in the epoll set.
*/
-extern int compat_epoll_mod(struct lttng_poll_event *events,
+LTTNG_HIDDEN
+int compat_epoll_mod(struct lttng_poll_event *events,
int fd, uint32_t req_events);
#define lttng_poll_mod(events, fd, req_events) \
compat_epoll_add(events, fd, req_events)
int fd, uint32_t req_events);
#define lttng_poll_mod(events, fd, req_events) \
compat_epoll_add(events, fd, req_events)
@@
-182,7
+187,8
@@
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);
+LTTNG_HIDDEN
+int compat_epoll_set_max_size(void);
#define lttng_poll_set_max_size() \
compat_epoll_set_max_size()
#define lttng_poll_set_max_size() \
compat_epoll_set_max_size()
@@
-326,7
+332,8
@@
static inline int __lttng_poll_get_prev_fd(struct lttng_poll_event *events,
/*
* Create a pollfd structure of size 'size'.
*/
/*
* Create a pollfd structure of size 'size'.
*/
-extern int compat_poll_create(struct lttng_poll_event *events, int size);
+LTTNG_HIDDEN
+int compat_poll_create(struct lttng_poll_event *events, int size);
#define lttng_poll_create(events, size, flags) \
compat_poll_create(events, size)
#define lttng_poll_create(events, size, flags) \
compat_poll_create(events, size)
@@
-334,14
+341,16
@@
extern int compat_poll_create(struct lttng_poll_event *events, int size);
* Wait on poll(2) event with nb_fd registered to the lttng_poll_event data
* structure.
*/
* Wait on poll(2) event with nb_fd registered to the lttng_poll_event data
* structure.
*/
-extern int compat_poll_wait(struct lttng_poll_event *events, int timeout);
+LTTNG_HIDDEN
+int compat_poll_wait(struct lttng_poll_event *events, int timeout);
#define lttng_poll_wait(events, timeout) \
compat_poll_wait(events, timeout)
/*
* Add the fd to the pollfd structure. Resize if needed.
*/
#define lttng_poll_wait(events, timeout) \
compat_poll_wait(events, timeout)
/*
* Add the fd to the pollfd structure. Resize if needed.
*/
-extern int compat_poll_add(struct lttng_poll_event *events,
+LTTNG_HIDDEN
+int compat_poll_add(struct lttng_poll_event *events,
int fd, uint32_t req_events);
#define lttng_poll_add(events, fd, req_events) \
compat_poll_add(events, fd, req_events)
int fd, uint32_t req_events);
#define lttng_poll_add(events, fd, req_events) \
compat_poll_add(events, fd, req_events)
@@
-351,14
+360,16
@@
extern int compat_poll_add(struct lttng_poll_event *events,
* pollfd, data is copied from the old pollfd to the new and, finally, the old
* one is freed().
*/
* pollfd, data is copied from the old pollfd to the new and, finally, the old
* one is freed().
*/
-extern int compat_poll_del(struct lttng_poll_event *events, int fd);
+LTTNG_HIDDEN
+int compat_poll_del(struct lttng_poll_event *events, int fd);
#define lttng_poll_del(events, fd) \
compat_poll_del(events, fd)
/*
* Modify an fd's events in the epoll set.
*/
#define lttng_poll_del(events, fd) \
compat_poll_del(events, fd)
/*
* Modify an fd's events in the epoll set.
*/
-extern int compat_poll_mod(struct lttng_poll_event *events,
+LTTNG_HIDDEN
+int compat_poll_mod(struct lttng_poll_event *events,
int fd, uint32_t req_events);
#define lttng_poll_mod(events, fd, req_events) \
compat_poll_add(events, fd, req_events)
int fd, uint32_t req_events);
#define lttng_poll_mod(events, fd, req_events) \
compat_poll_add(events, fd, req_events)
@@
-366,7
+377,8
@@
extern int compat_poll_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_poll_set_max_size(void);
+LTTNG_HIDDEN
+int compat_poll_set_max_size(void);
#define lttng_poll_set_max_size() \
compat_poll_set_max_size()
#define lttng_poll_set_max_size() \
compat_poll_set_max_size()
This page took
0.031327 seconds
and
5
git commands to generate.