mirror of
https://github.com/devkitPro/wut.git
synced 2026-03-21 17:34:47 -05:00
Some checks failed
C/C++ CI / ubuntu-latest (push) Has been cancelled
`find . -regex '.*\.\(cpp\|hpp\|cu\|cuh\|c\|h\)' -exec clang-format -style=file -i {} \;`
31 lines
375 B
C
31 lines
375 B
C
#pragma once
|
|
|
|
#define POLLIN 0x01
|
|
#define POLLPRI 0x02
|
|
#define POLLOUT 0x04
|
|
#define POLLERR 0x08
|
|
#define POLLHUP 0x10
|
|
#define POLLNVAL 0x20
|
|
|
|
typedef unsigned long nfds_t;
|
|
|
|
struct pollfd
|
|
{
|
|
int fd;
|
|
int events;
|
|
int revents;
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int
|
|
poll(struct pollfd *fds,
|
|
nfds_t nfds,
|
|
int timeout);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|