Lines Matching refs:port4
62 static int port4 = -1; /* active: inbound passive: outbound */
96 if (0 <= port4) {
97 pfd[2].fd = port4;
133 if (0 <= port4) {
134 if (port4 >= FD_SETSIZE)
136 FD_SET(port4, &readfds);
137 maxfd = (port4 > maxfd) ? port4 : maxfd;
227 if (0 <= port4 && 0 <= port6 && (pfd[2].revents & POLLIN))
229 if (0 <= port4 && 0 <= port6 && FD_ISSET(port4, &readfds))
239 if (FD_ISSET(port4, &readfds))
241 error = ftp_copy(port4, port6);
246 close(port4);
248 port4 = port6 = -1;
256 if (0 <= port4 && 0 <= port6 && (pfd[3].revents & POLLIN))
258 if (0 <= port4 && 0 <= port6 && FD_ISSET(port6, &readfds))
270 error = ftp_copy(port6, port4);
275 close(port4);
277 port4 = port6 = -1;
342 (port4 = accept(wport4, (struct sockaddr *)&data4, &n)) < 0)
345 (port4 = accept(wport4, (struct sockaddr *)&data4, &n)) < 0)
358 close(port4);
360 port4 = wport4 = -1;
367 close(port4);
369 port6 = port4 = wport4 = -1;
420 port4 = socket(sa->sa_family, SOCK_STREAM, 0);
421 if (port4 == -1) {
428 error = connect(port4, sa, sa->sa_len);
431 close(port4);
433 wport6 = port4 = port6 = -1;
785 close(port4);
787 wport4 = wport6 = port4 = port6 = -1;
896 close(port4);
898 wport4 = wport6 = port4 = port6 = -1;
986 close(port4);
988 wport4 = wport6 = port4 = port6 = -1;
1015 close(port4);
1017 wport4 = wport6 = port4 = port6 = -1;