📄 poll.h
字号:
#ifndef __POLL_H
#define __POLL_H
#ifdef __DJGPP__
#include <sys/config.h> /* might have HAVE_SYS_POLL_H */
#endif
#ifdef HAVE_SYS_POLL_H /* have .h-file and implementation */
#include <sys/poll.h>
#else
#define POLLIN 0x0001
#define POLLPRI 0x0002 /* not used */
#define POLLOUT 0x0004
#define POLLERR 0x0008
struct pollfd {
int fd;
int events; /* in param: what to poll for */
int revents; /* out param: what events occured */
};
#endif /* HAVE_SYS_POLL_H */
#endif /* __POLL_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -