Lines Matching refs:fdt
336 int fdt; /* current connecting socket */ member
527 up->fdt = -1; in gpsd_start()
644 if (up->fdt != -1) in gpsd_shutdown()
645 close(up->fdt); in gpsd_shutdown()
860 } else if (-1 != up->fdt) { in timer_primary()
868 else if (-1 != up->fdt) in timer_primary()
875 if (-1 == pp->io.fd && -1 != up->fdt) in timer_primary()
1883 up->fdt = socket( in gpsd_init_socket()
1885 if (-1 == up->fdt) { in gpsd_init_socket()
1897 rc = fcntl(up->fdt, F_SETFL, O_NONBLOCK, 1); in gpsd_init_socket()
1912 rc = setsockopt(up->fdt, IPPROTO_TCP, TCP_NODELAY, in gpsd_init_socket()
1924 rc = connect(up->fdt, ai->ai_addr, ai->ai_addrlen); in gpsd_init_socket()
1928 up->logname, up->fdt)); in gpsd_init_socket()
1945 up->logname, up->fdt)); in gpsd_init_socket()
1947 pp->io.fd = up->fdt; in gpsd_init_socket()
1948 up->fdt = -1; in gpsd_init_socket()
1962 if (-1 != up->fdt) in gpsd_init_socket()
1963 close(up->fdt); in gpsd_init_socket()
1965 up->fdt = -1; in gpsd_init_socket()
1987 up->logname, up->fdt)); in gpsd_test_socket()
1994 pfd.fd = up->fdt; in gpsd_test_socket()
2006 FD_SET(up->fdt, &wset); in gpsd_test_socket()
2007 rc = select(up->fdt+1, NULL, &wset, NULL, &tout); in gpsd_test_socket()
2008 if (0 == rc || !(FD_ISSET(up->fdt, &wset))) in gpsd_test_socket()
2021 rc = getsockopt(up->fdt, SOL_SOCKET, SO_ERROR, (void *)&ec, &lc); in gpsd_test_socket()
2031 up->logname, up->fdt, ec, errtxt); in gpsd_test_socket()
2035 up->logname, up->fdt, ec, errtxt)); in gpsd_test_socket()
2039 up->logname, up->fdt)); in gpsd_test_socket()
2043 pp->io.fd = up->fdt; in gpsd_test_socket()
2044 up->fdt = -1; in gpsd_test_socket()
2055 if (-1 != up->fdt) { in gpsd_test_socket()
2057 up->logname, up->fdt)); in gpsd_test_socket()
2058 close(up->fdt); in gpsd_test_socket()
2060 up->fdt = -1; in gpsd_test_socket()