Lines Matching refs:ret

53     int ret;  in send_msg_wait()  local
56 ret = send_msg(handle, msg); in send_msg_wait()
57 if (ret != ERR_NOT_ENOUGH_BUFFER) { in send_msg_wait()
58 return ret; in send_msg_wait()
61 ret = wait(handle, &ev, INFINITE_TIME); in send_msg_wait()
62 if (ret < 0) { in send_msg_wait()
63 return ret; in send_msg_wait()
78 return ret; in send_msg_wait()
99 int ret; in _vtlog() local
104 ret = vfprintf(stderr, fmt, ap); in _vtlog()
106 if (ret < 0) { in _vtlog()
107 return ret; in _vtlog()
117 ret = vsnprintf_filtered(buf + 1, sizeof(buf) - 1, fmt, ap); in _vtlog()
120 if (ret < 0) { in _vtlog()
121 return ret; in _vtlog()
123 slen = MIN(ret, (int)sizeof(buf) - 1 - 1); in _vtlog()
127 ret = send_msg_wait(ipc_printf_handle, &tx_msg); in _vtlog()
128 if (ret < 0) { in _vtlog()
129 return ret; in _vtlog()
139 int ret; in unittest_main() local
147 ret = handle_set_create(); in unittest_main()
148 if (ret < 0) { in unittest_main()
149 TLOGI("failed to create handle set: %d\n", ret); in unittest_main()
150 return ret; in unittest_main()
152 hset = ret; in unittest_main()
157 ret = port_create( in unittest_main()
160 if (ret < 0) { in unittest_main()
161 TLOGI("failed to create port %s: %d\n", test->port_name, ret); in unittest_main()
162 return ret; in unittest_main()
164 test->_port_handle = (handle_t)ret; in unittest_main()
167 ret = handle_set_ctrl(hset, HSET_ADD, &evt); in unittest_main()
168 if (ret < 0) { in unittest_main()
169 TLOGI("failed to add %s to handle set: %d\n", test->port_name, ret); in unittest_main()
170 return ret; in unittest_main()
178 ret = wait(hset, &evt, INFINITE_TIME); in unittest_main()
180 TLOGI("got event (ret=%d): ev=%x handle=%d port=%s\n", ret, evt.event, in unittest_main()
182 if (ret < 0) in unittest_main()
187 ret = accept(evt.handle, &unused_uuid); in unittest_main()
188 TLOGI("accept returned %d\n", ret); in unittest_main()
189 if (ret >= 0) { in unittest_main()
198 ipc_printf_handle = ret; in unittest_main()
202 send_msg_wait(ret, &tx_msg); in unittest_main()
205 close(ret); in unittest_main()
212 return ret; in unittest_main()