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]
所谓轮询,是定时的按一定顺序查看对象(比如数组),如果满足条件就做,不满足则等待下一次轮询。
check u /usr/inlcude/errno.h it will tell u in bits/errno.h, asm/errno.h/ ....
check os book for difference between poll and select. basically, poll is u check clock every 10 minutes to see if class is over. select is u tell u friend, notify me when class is over, and then sleep till u friend notify u.