poll_.h

来自「一种新的httpd放方式」· C头文件 代码 · 共 34 行

H
34
字号
/*
port/sys/poll_.h

Copyright (C) 1999 Lars Brinkhoff.  See COPYING for terms and conditions.
*/

#ifndef PORT_SYS_POLL_H
#define PORT_SYS_POLL_H

#include "config.h"

#ifdef HAVE_SYS_POLL_H
#  include <sys/poll.h>
#else

#define POLLIN		0x01
#define POLLOUT		0x02
#define POLLERR		0x10
#define POLLHUP		0x20
#define POLLNVAL	0x40

struct pollfd
{
  int fd;
  int events;
  int revents;
};

extern int poll (struct pollfd *p, int n, int timeout);

#endif /* !HAVE_SYS_POLL_H */

#endif /* PORT_SYS_POLL_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?