Lines Matching refs:ret
75 int ret = TEMP_FAILURE_RETRY(fstat(fd, &st));
76 if (ret < 0) {
77 UTILS_LOGE("%{public}s: Failed to exec fstat, ret = %{public}d, errno = %{public}d", __func__, ret, errno);
79 return ret;
105 int ret;
114 ret = strcpy_s(buf, sizeof(buf), name);
115 if (ret != EOK) {
116 UTILS_LOGE("%{public}s: Failed to exec strcpy_s, name= %{public}s, ret= %{public}d", __func__, name, ret);
120 ret = TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_SET_NAME, buf));
121 if (ret < 0) {
122 UTILS_LOGE("%{public}s: Failed to set name, name= %{public}s, ret= %{public}d, errno = %{public}d",
123 __func__, name, ret, errno);
125 return ret;
129 ret = TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_SET_SIZE, size));
130 if (ret < 0) {
133 return ret;
270 int ret = memcpy_s(tmpData + offset, memorySize_ - offset, reinterpret_cast<const char *>(data), size);
271 if (ret != EOK) {
272 UTILS_LOGE("%{public}s: Failed to memcpy, ret = %{public}d", __func__, ret);