Lines Matching refs:ret
215 int ret; in handle_rrq() local
269 ret = connect(sock, (struct sockaddr *)sq, sizeof(*sq)); in handle_rrq()
270 if (ret < 0) { in handle_rrq()
318 int ret; in handle_wrq() local
346 ret = connect(sock, (struct sockaddr *)sq, sizeof(*sq)); in handle_wrq()
347 if (ret < 0) { in handle_wrq()
358 ret = tftp_send_ack(client->sock, 0); in handle_wrq()
359 if (ret < 0) { in handle_wrq()
382 int ret; in handle_reader() local
387 ret = -errno; in handle_reader()
388 if (ret != -ENETRESET) in handle_reader()
389 fprintf(stderr, "[TQFTP] recvfrom failed: %d\n", ret); in handle_reader()
437 int ret; in handle_writer() local
442 ret = -errno; in handle_writer()
443 if (ret != -ENETRESET) in handle_writer()
444 fprintf(stderr, "[TQFTP] recvfrom failed: %d\n", ret); in handle_writer()
463 ret = write(client->fd, buf + 4, payload); in handle_writer()
464 if (ret < 0) { in handle_writer()
495 int ret; in main() local
504 ret = qrtr_publish(fd, 4096, 1, 0); in main()
505 if (ret < 0) { in main()
525 ret = select(nfds + 1, &rfds, NULL, NULL, NULL); in main()
526 if (ret < 0) { in main()
537 ret = handle_writer(client); in main()
538 if (ret <= 0) in main()
545 ret = handle_reader(client); in main()
546 if (ret <= 0) in main()
555 ret = -errno; in main()
556 if (ret != -ENETRESET) in main()
557 fprintf(stderr, "[TQFTP] recvfrom failed: %d\n", ret); in main()
558 return ret; in main()
563 ret = qrtr_decode(&pkt, buf, len, &sq); in main()
564 if (ret < 0) { in main()
566 return ret; in main()