Searched refs:datafd (Results 1 – 3 of 3) sorted by relevance
370 if (hpriv->eps[0].datafd > 0) { in sunos_usb_open_ep0()377 hpriv->eps[0].datafd = open(filename, O_RDWR); in sunos_usb_open_ep0()378 if (hpriv->eps[0].datafd < 0) { in sunos_usb_open_ep0()385 close(hpriv->eps[0].datafd); in sunos_usb_open_ep0()386 hpriv->eps[0].datafd = -1; in sunos_usb_open_ep0()401 if (hdev->eps[i].datafd != -1) { in sunos_usb_close_all_eps()402 (void) close(hdev->eps[i].datafd); in sunos_usb_close_all_eps()403 hdev->eps[i].datafd = -1; in sunos_usb_close_all_eps()415 if (hdev->eps[0].datafd >= 0) { in sunos_usb_close_ep0()416 close(hdev->eps[0].datafd); in sunos_usb_close_ep0()[all …]
39 int datafd; /* data file */ member
1524 curl_socket_t datafd = accept(rootfd, NULL, NULL); in http_connect() local1525 if(datafd != CURL_SOCKET_BAD) { in http_connect()1534 if(0 != setsockopt(datafd, IPPROTO_TCP, TCP_NODELAY, in http_connect()1542 err = get_request(datafd, &req2); in http_connect()1551 err = send_doc(datafd, &req2); in http_connect()1570 clientfd[DATA] = datafd; in http_connect()1571 datafd = CURL_SOCKET_BAD; in http_connect()1576 if(datafd != CURL_SOCKET_BAD) { in http_connect()1578 shutdown(datafd, SHUT_RDWR); in http_connect()1579 sclose(datafd); in http_connect()