Lines Matching defs:port6
59 static int port6 = -1; /* active: outbound passive: inbound */
91 if (0 <= port6) {
92 pfd[3].fd = port6;
159 if (0 <= port4 && 0 <= port6 && (pfd[2].revents & POLLIN))
166 error = ftp_copy(port4, port6);
175 if (port6 >= 0) {
176 (void)close(port6);
177 port6 = -1;
185 if (0 <= port4 && 0 <= port6 && (pfd[3].revents & POLLIN))
192 error = ftp_copy(port6, port4);
201 if (port6 >= 0) {
202 (void)close(port6);
203 port6 = -1;
257 port6 = socket(sa->sa_family, SOCK_STREAM, 0);
258 if (port6 == -1) {
265 error = connect(port6, sa, (socklen_t)sa->sa_len);
267 (void)close(port6);
270 port6 = port4 = wport4 = -1;
293 (port6 = accept(wport6, (void *)&data6, &len)) < 0)
306 (void)close(port6);
307 wport6 = port6 = -1;
315 (void)close(port6);
316 wport6 = port4 = port6 = -1;
658 (void)close(port6);
659 wport4 = wport6 = port4 = port6 = -1;
748 (void)close(port6);
749 wport4 = wport6 = port4 = port6 = -1;
814 (void)close(port6);
815 wport4 = wport6 = port4 = port6 = -1;
833 (void)close(port6);
834 wport4 = wport6 = port4 = port6 = -1;