/*
  malloc a fd_set on the heap, to make it dependent from FD_SETSIZE.
  make sure fd_count > FD_SETSIZE.
*/
#define NEW_FD_SET( fd_count ) \
        (struct fd_set*) malloc( sizeof( struct fd_set ) + sizeof( int ) * ( \
        fd_count - FD_SETSIZE > 0 ? fd_count - FD_SETSIZE : 0 ) )

相关文章:

  • 2022-12-23
  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-02
  • 2021-05-31
  • 2021-12-09
  • 2022-01-13
  • 2022-12-23
  • 2021-11-20
相关资源
相似解决方案