Lines Matching defs:data
57 int data = -1;
769 if (data >= 0) {
770 (void) close(data);
771 data = -1;
855 if (data >= 0) {
856 (void) close(data);
857 data = -1;
868 if (data >= 0) {
869 (void) close(data);
870 data = -1;
969 * There could be data not yet written to dout,
983 * Wait for remote end to either close data socket
989 (void) fclose(dout); data = -1;
1013 if (data >= 0) {
1014 (void) close(data);
1015 data = -1;
1019 data = -1;
1078 if (data >= 0) {
1079 (void) close(data);
1080 data = -1;
1347 (void) fclose(din); data = -1;
1418 if (data >= 0) {
1419 (void) close(data);
1420 data = -1;
1442 if (data >= 0) {
1443 (void) close(data);
1444 data = -1;
1450 data = -1;
1460 * Need to start a listen on the data channel
1478 data = socket(AF_INET6, SOCK_STREAM, 0);
1479 if (data < 0) {
1483 if (timeout && setsockopt(data, IPPROTO_TCP,
1488 setsockopt(data, SOL_SOCKET, SO_DEBUG, (char *)&on,
1496 if (setsockopt(data, SOL_SOCKET, SO_SNDBUF,
1499 if (setsockopt(data, SOL_SOCKET, SO_RCVBUF,
1515 * Get the data port from reply string from the
1538 /* assign the port for data connection */
1552 * Get the data port from reply string from the
1579 if (connect(data, (struct sockaddr *)&data_addr,
1592 if (data != -1)
1593 (void) close(data);
1594 data = socket(AF_INET6, SOCK_STREAM, 0);
1595 if (data < 0) {
1602 if (setsockopt(data, SOL_SOCKET, SO_REUSEADDR,
1607 if (bind(data,
1612 if (timeout && setsockopt(data, IPPROTO_TCP, TCP_ABORT_THRESHOLD,
1616 setsockopt(data, SOL_SOCKET, SO_DEBUG,
1624 if (setsockopt(data, SOL_SOCKET, SO_SNDBUF,
1627 if (setsockopt(data, SOL_SOCKET, SO_RCVBUF,
1632 if (getsockname(data, (struct sockaddr *)&data_addr, &len) < 0) {
1638 if (listen(data, 1) < 0)
1692 (void) close(data), data = -1;
1707 return (fdopen(data, mode));
1709 s = accept(data, (struct sockaddr *)&from, &fromlen);
1712 (void) close(data), data = -1;
1715 (void) close(data);
1716 data = s;
1717 return (fdopen(data, mode));