|
发表于 2003-10-20 09:00:55
|
显示全部楼层
如果只是用户空间查看,man poll, man fcntl就可以查到相关信息。
比如:man fcntl
[code:1]
#include <unistd.h>
#include <fcntl.h>
int fcntl(int fd, int cmd);
int fcntl(int fd, int cmd, long arg);
int fcntl(int fd, int cmd, struct flock *lock);
.......
[/code:1]
所谓轮询,是定时的按一定顺序查看对象(比如数组),如果满足条件就做,不满足则等待下一次轮询。 |
|