Chinaunix

标题: linux下的select函数以及fd_set结构体有人会用吗?我有点小问题想请教一下 [打印本页]

作者: glgl2424    时间: 2010-03-03 21:42
标题: linux下的select函数以及fd_set结构体有人会用吗?我有点小问题想请教一下
我在我的linux C程序里写了这样一句话:
struct fd_set fds;

可是系统提醒说storage size of 'fds' isn't known  ,是不是这个结构体的头文件不对啊?我不知道该放什么头文件进去?或者是问题出在哪里?我目前以及放进去的头文件有:
#include    <stdio.h>      /*标准输入输出定义*/
#include    <stdlib.h>    /*标准函数库定义*/
#include    <unistd.h>    /*Unix标准函数定义*/
#include    <sys/types.h>  /**/
#include    <sys/stat.h>  /**/
#include    <fcntl.h>      /*文件控制定义*/
#include    <termios.h>    /*PPSIX终端控制定义*/
#include    <errno.h>      /*错误号定义*/
作者: vietor    时间: 2010-03-04 13:13
sys/select.h
作者: xubigtree    时间: 2011-07-26 19:31

作者: whaaat    时间: 2011-07-27 10:02
man select




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2