pike.git / src / modules / _Stdio / socket.c

version» Context lines:

pike.git/src/modules/_Stdio/socket.c:325: Inside #if defined(IPV6_V6ONLY) && defined(IPPROTO_IPV6)
   * cf http://msdn.microsoft.com/en-us/library/windows/desktop/bb513665(v=vs.85).aspx    */    int o = 0;    fd_setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, (char *)&o, sizeof(int));    }   #endif       my_set_close_on_exec(fd,1);       THREADS_ALLOW_UID(); -  if( !(tmp=fd_bind(fd, (struct sockaddr *)&addr, addr_len) < 0) ) +  if( !(tmp=fd_bind(fd, (struct sockaddr *)&addr, addr_len) < 0) ) {   #ifdef TCP_FASTOPEN -  tmp = 256, -  setsockopt(fd,SOL_TCP, TCP_FASTOPEN, &tmp, sizeof(tmp)), +  tmp = 256; +  fd_setsockopt(fd, IPPROTO_TCP, TCP_FASTOPEN, (char *)&tmp, sizeof(tmp));   #endif -  (tmp = fd_listen(fd, 16384) < 0); +  tmp = (fd_listen(fd, 16384) < 0); +  }    THREADS_DISALLOW_UID();       if(!Pike_fp->current_object->prog)    {    if (fd >= 0)    while (fd_close(fd) && errno == EINTR) {}    Pike_error("Object destructed in Stdio.Port->bind()\n");    }       if(tmp)