• Home
  • Raw
  • Download

Lines Matching refs:rc

99 	int rc;  in recv_request_import()  local
103 rc = usbip_net_recv(sockfd, &req, sizeof(req)); in recv_request_import()
104 if (rc < 0) { in recv_request_import()
132 rc = usbip_net_send_op_common(sockfd, OP_REP_IMPORT, status); in recv_request_import()
133 if (rc < 0) { in recv_request_import()
146 rc = usbip_net_send(sockfd, &pdu_udev, sizeof(pdu_udev)); in recv_request_import()
147 if (rc < 0) { in recv_request_import()
164 int rc, i; in send_reply_devlist() local
184 rc = usbip_net_send_op_common(connfd, OP_REP_DEVLIST, ST_OK); in send_reply_devlist()
185 if (rc < 0) { in send_reply_devlist()
191 rc = usbip_net_send(connfd, &reply, sizeof(reply)); in send_reply_devlist()
192 if (rc < 0) { in send_reply_devlist()
206 rc = usbip_net_send(connfd, &pdu_udev, sizeof(pdu_udev)); in send_reply_devlist()
207 if (rc < 0) { in send_reply_devlist()
217 rc = usbip_net_send(connfd, &pdu_uinf, in send_reply_devlist()
219 if (rc < 0) { in send_reply_devlist()
232 int rc; in recv_request_devlist() local
236 rc = usbip_net_recv(connfd, &req, sizeof(req)); in recv_request_devlist()
237 if (rc < 0) { in recv_request_devlist()
242 rc = send_reply_devlist(connfd); in recv_request_devlist()
243 if (rc < 0) { in recv_request_devlist()
296 int rc; in tcpd_auth() local
300 rc = hosts_access(&request); in tcpd_auth()
301 if (rc == 0) in tcpd_auth()
314 int rc; in do_accept() local
324 rc = getnameinfo((struct sockaddr *)&ss, len, host, sizeof(host), in do_accept()
326 if (rc) in do_accept()
327 err("getnameinfo: %s", gai_strerror(rc)); in do_accept()
330 rc = tcpd_auth(connfd); in do_accept()
331 if (rc < 0) { in do_accept()
365 int rc; in addrinfo_to_text() local
369 rc = getnameinfo(ai->ai_addr, ai->ai_addrlen, hbuf, sizeof(hbuf), in addrinfo_to_text()
371 if (rc) in addrinfo_to_text()
372 err("getnameinfo: %s", gai_strerror(rc)); in addrinfo_to_text()
429 int rc; in do_getaddrinfo() local
436 rc = getaddrinfo(host, usbip_port_string, &hints, &ai_head); in do_getaddrinfo()
437 if (rc) { in do_getaddrinfo()
439 gai_strerror(rc)); in do_getaddrinfo()
610 int opt, rc = -1; in main() local
668 rc = do_standalone_mode(daemonize, ipv4, ipv6); in main()
673 rc = 0; in main()
677 rc = 0; in main()
685 return (rc > -1 ? EXIT_SUCCESS : EXIT_FAILURE); in main()