Path: blob/main/system/lib/libc/musl/include/poll.h
6172 views
#ifndef _POLL_H1#define _POLL_H23#ifdef __cplusplus4extern "C" {5#endif67#include <features.h>89#include <bits/poll.h>1011#define POLLIN 0x00112#define POLLPRI 0x00213#define POLLOUT 0x00414#define POLLERR 0x00815#define POLLHUP 0x01016#define POLLNVAL 0x02017#define POLLRDNORM 0x04018#define POLLRDBAND 0x08019#ifndef POLLWRNORM20#define POLLWRNORM 0x10021#define POLLWRBAND 0x20022#endif23#ifndef POLLMSG24#define POLLMSG 0x40025#define POLLRDHUP 0x200026#endif2728typedef unsigned long nfds_t;2930struct pollfd {31int fd;32short events;33short revents;34};3536int poll (struct pollfd *, nfds_t, int);3738#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)39#define __NEED_time_t40#define __NEED_struct_timespec41#define __NEED_sigset_t42#include <bits/alltypes.h>43int ppoll(struct pollfd *, nfds_t, const struct timespec *, const sigset_t *);44#endif4546#if _REDIR_TIME6447#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)48__REDIR(ppoll, __ppoll_time64);49#endif50#endif5152#ifdef __cplusplus53}54#endif5556#endif575859