Lines Matching defs:ret
53 int ret = read(fd, buf + pos, count);
54 if (ret == 0) {
57 } else if (ret < 0) {
65 pos += ret;
66 count -= ret;
80 int ret = write(fd, buf + pos, count);
81 if (ret == 0) {
83 } else if (ret < 0) {
92 int tmpSize = ret + 1;
95 if (strncpy_s(szTmp, tmpSize, buf + pos, ret) == EOK) {
102 pos += ret;
103 count -= ret;
142 int ret = bind(sock, (struct sockaddr *)&sockAddr, sizeof(sockAddr));
143 if (ret < 0) {
144 LOGE("bind failed, ret: %{public}d, errno: %{public}d!", ret, errno);
194 int ret = poll(&pFd, 1, milliseconds);
195 if (ret < 0) {
201 } else if (ret == 0) {