• Home
  • Raw
  • Download

Lines Matching refs:LE_CHECK

34     LE_CHECK(listenfd > 0, return listenfd, "Failed to create socket errno %d", errno);  in CreatePipeServerSocket_()
39 LE_CHECK(ret == 0, close(listenfd); in CreatePipeServerSocket_()
43 LE_CHECK(ret == 0, close(listenfd); in CreatePipeServerSocket_()
47 LE_CHECK(ret >= 0, close(listenfd); in CreatePipeServerSocket_()
52 LE_CHECK(ret >= 0, close(listenfd); in CreatePipeServerSocket_()
55 LE_CHECK(ret == 0, return -1, "Failed to chmod %s, err %d. ", server, errno); in CreatePipeServerSocket_()
63 LE_CHECK(fd > 0, return fd, "Failed to create socket"); in CreatePipeSocket_()
68 LE_CHECK(ret == 0, return ret, "Failed to set socket option"); in CreatePipeSocket_()
72 LE_CHECK(ret == 0, close(fd); in CreatePipeSocket_()
76 LE_CHECK(ret == 0, close(fd); in CreatePipeSocket_()
80 LE_CHECK(ret >= 0, close(fd); in CreatePipeSocket_()
89 LE_CHECK(ret == 0, return ret, "Failed to memory set. error: %s", strerror(errno)); in GetSockaddrFromServer_()
92 LE_CHECK(portStr != NULL, return LE_FAILURE, "Failed to get addr %s", server); in GetSockaddrFromServer_()
96 LE_CHECK(ret >= 0, return LE_FAILURE, "Failed to inet_pton addr %s", server); in GetSockaddrFromServer_()
104 LE_CHECK(listenfd > 0, return listenfd, "Failed to create socket"); in CreateTcpServerSocket_()
109 LE_CHECK(ret >= 0, close(listenfd); in CreateTcpServerSocket_()
114 LE_CHECK(ret >= 0, close(listenfd); in CreateTcpServerSocket_()
122 LE_CHECK(fd > 0, return fd, "Failed to create socket"); in CreateTcpSocket_()
127 LE_CHECK(ret == 0, return ret, "Failed to set socket option"); in CreateTcpSocket_()
132 LE_CHECK(ret >= 0, close(fd); in CreateTcpSocket_()
143 LE_CHECK(fd >= 0, return fd, "Failed to accept socket"); in AcceptPipeSocket_()
154 LE_CHECK(fd >= 0, return fd, "Failed to accept socket"); in AcceptTcpSocket_()