huyc

导航

2011年10月23日 #

poll(2)

摘要: POLL(2)NAME poll,ppoll —— 等待文件描述符上的事件SYNOPSIS#include <poll.h>int poll(struct pollfd *fds, nfds_t nfds, int timeout);#define _GNU_SOURCE#include <poll.h>int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const sigset_t *sigmask);DESCRIPTIONpoll执行类似于select的任务:等待文件描 阅读全文

posted @ 2011-10-23 22:27 huyc 阅读(3264) 评论(0) 推荐(2)