Lines Matching defs:port4
58 static int port4 = -1; /* active: inbound passive: outbound */
86 if (0 <= port4) {
87 pfd[2].fd = port4;
159 if (0 <= port4 && 0 <= port6 && (pfd[2].revents & POLLIN))
166 error = ftp_copy(port4, port6);
171 if (port4 >= 0) {
172 (void)close(port4);
173 port4 = -1;
185 if (0 <= port4 && 0 <= port6 && (pfd[3].revents & POLLIN))
192 error = ftp_copy(port6, port4);
197 if (port4 >= 0) {
198 (void)close(port4);
199 port4 = -1;
247 (port4 = accept(wport4, (void *)&data4, &n)) < 0)
259 (void)close(port4);
261 port4 = wport4 = -1;
268 (void)close(port4);
270 port6 = port4 = wport4 = -1;
303 port4 = socket(sa->sa_family, SOCK_STREAM, 0);
304 if (port4 == -1) {
311 error = connect(port4, sa, (socklen_t)sa->sa_len);
314 (void)close(port4);
316 wport6 = port4 = port6 = -1;
657 (void)close(port4);
659 wport4 = wport6 = port4 = port6 = -1;
747 (void)close(port4);
749 wport4 = wport6 = port4 = port6 = -1;
813 (void)close(port4);
815 wport4 = wport6 = port4 = port6 = -1;
832 (void)close(port4);
834 wport4 = wport6 = port4 = port6 = -1;