您的位置:首页 > 其它

fd_set结构的理解

2010-05-08 13:57 295 查看
"/usr/include/sys/select.h"
中是这样定义结构 fd_set 的:
 typedef struct
       {
          /* XPG4.2 requires this member name.  Otherwise avoid the name
            from the global namespace.  */
      #ifdef __USE_XOPEN
          __fd_mask fds_bits[__FD_SETSIZE / __NFDBITS];
     # define __FDS_BITS(set) ((set)->fds_bits)
     #else
          __fd_mask __fds_bits[__FD_SETSIZE / __NFDBITS];
      # define __FDS_BITS(set) ((set)->__fds_bits)
      #endif
        } fd_set
   

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  struct