poll.h

来自「开放源码的编译器open watcom 1.6.0版的源代码」· C头文件 代码 · 共 26 行

H
26
字号
#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 + =
减小字号Ctrl + -
显示快捷键?