Lines Matching refs:ret

144 	int ch, s, ret, socksv;  in main()  local
155 ret = 1; in main()
369 ret = 0; in main()
441 ret = 0; in main()
447 ret = 1; in main()
451 exit(ret); in main()
474 ret = 0; in main()
479 ret = 1; in main()
509 exit(ret); in main()
671 int ret; in timeout_connect() local
679 if ((ret = connect(s, name, namelen)) != 0 && errno == EINPROGRESS) { in timeout_connect()
682 if ((ret = poll(&pfd, 1, timeout)) == 1) { in timeout_connect()
684 if ((ret = getsockopt(s, SOL_SOCKET, SO_ERROR, in timeout_connect()
687 ret = optval == 0 ? 0 : -1; in timeout_connect()
689 } else if (ret == 0) { in timeout_connect()
691 ret = -1; in timeout_connect()
699 return (ret); in timeout_connect()
711 int s, ret, x = 1; in local_listen() local
739 ret = setsockopt(s, SOL_SOCKET, SO_REUSEPORT, &x, sizeof(x)); in local_listen()
740 if (ret == -1) in local_listen()
744 ret = setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &x, sizeof(x)); in local_listen()
745 if (ret == -1) in local_listen()
783 ssize_t ret; in readwrite() local
880 ret = fillbuf(pfd[POLL_STDIN].fd, stdinbuf, in readwrite()
883 if (ret == 0 || ret == -1) in readwrite()
894 ret = drainbuf(pfd[POLL_NETOUT].fd, stdinbuf, in readwrite()
896 if (ret == -1) in readwrite()
907 ret = fillbuf(pfd[POLL_NETIN].fd, netinbuf, in readwrite()
909 if (ret == -1) in readwrite()
912 if (ret == 0) { in readwrite()
929 ret = drainbuf(pfd[POLL_STDOUT].fd, netinbuf, in readwrite()
931 if (ret == -1) in readwrite()
1156 int i, ret; in udptest() local
1160 ret = 1; in udptest()
1162 ret = -1; in udptest()
1164 return (ret); in udptest()
1317 usage(int ret) in usage() argument
1324 if (ret) in usage()