/*
* Create pollfd data structure.
*/
+LTTNG_HIDDEN
int compat_poll_create(struct lttng_poll_event *events, int size)
{
struct compat_poll_event_array *current, *wait;
/*
* Modify an fd's events..
*/
+LTTNG_HIDDEN
int compat_poll_mod(struct lttng_poll_event *events, int fd,
uint32_t req_events)
{
- int ret, i;
+ int i;
bool fd_found = false;
struct compat_poll_event_array *current;
/*
* Remove a fd from the pollfd structure.
*/
+LTTNG_HIDDEN
int compat_poll_del(struct lttng_poll_event *events, int fd)
{
int new_size, i, count = 0, ret;
/*
* Wait on poll() with timeout. Blocking call.
*/
+LTTNG_HIDDEN
int compat_poll_wait(struct lttng_poll_event *events, int timeout)
{
int ret;
/*
* Setup poll set maximum size.
*/
+LTTNG_HIDDEN
int compat_poll_set_max_size(void)
{
int ret, retval = 0;