rem: debug_v("netcat_accept(s=%d, timeout=%d)", s, timeout);
add: debug_v("netcat_socket_accept(s=%d, timeout=%d)", s, timeout);
context: int netcat_socket_accept(int s, int timeout){  fd_set in;  struct timeval timest;  debug_v("netcat_accept(s=%d, timeout=%d)", s, timeout);  /* initialize the select() variables */  FD_ZERO(&in);  FD_SET(s, &in);  timest.tv_sec = timeout;  timest.tv_usec = 0;  /* now go into select. use the timeout only if it is valid */  select(s + 1, &in, NULL, NULL, (timeout > 0 ? &timest : NULL));  /* have we got this connection? */  if (FD_ISSET(s, &in)) {    int new_sock;    new_sock = accept(s, NULL, NULL);    debug_v("Connection received (new fd=%d)", new_sock);    /* note: as accept() could fail, new_sock might also be a negative value.       It's application's work to handle the right errno. */    return new_sock;  }  /* no connections arrived during the given time. nothing happens */  errno = ETIMEDOUT;  return -1;}