• Home
  • Raw
  • Download

Lines Matching refs:ret

140     int ret;  in reboot_service()  local
143 ret = __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, LINUX_REBOOT_CMD_RESTART2, arg); in reboot_service()
144 if (ret < 0) { in reboot_service()
289 int fd, ret = 0; in shell_service() local
304 ret = poll(ufds, 2, 100); in shell_service()
305 if (ret <= 0) { in shell_service()
306 D("poll returned %d\n", ret); in shell_service()
309 ret = 1; in shell_service()
314 ret = adb_read(fd, buffer + count, sizeof(buffer) - count); in shell_service()
315 D("read fd ret: %d, count: %d\n", ret, count); in shell_service()
316 if (ret > 0) in shell_service()
317 count += ret; in shell_service()
322 ret = adb_read(s, buffer2, sizeof(buffer2)); in shell_service()
323 D("read s ret: %d\n", ret); in shell_service()
324 if (ret > 0) in shell_service()
325 adb_write(fd, buffer2, ret); in shell_service()
332 ret = -1; in shell_service()
342 if (ret <= 0) in shell_service()
355 int ret = -1; in service_to_fd() local
361 ret = socket_loopback_client(port, SOCK_STREAM); in service_to_fd()
362 if (ret >= 0) in service_to_fd()
363 disable_tcp_nagle(ret); in service_to_fd()
367 ret = socket_network_client(name + 1, port, SOCK_STREAM); in service_to_fd()
375 ret = socket_local_client(name + 6, in service_to_fd()
378 ret = socket_local_client(name + 14, in service_to_fd()
381 ret = socket_local_client(name + 14, in service_to_fd()
384 ret = socket_local_client(name + 16, in service_to_fd()
391 ret = create_service_thread(dns_service, n); in service_to_fd()
394 ret = unix_open(name + 4, O_RDWR); in service_to_fd()
396 ret = create_service_thread(framebuffer_service, 0); in service_to_fd()
398 ret = create_service_thread(recover_service, (void*) atoi(name + 8)); in service_to_fd()
400 ret = create_jdwp_connection_fd(atoi(name+5)); in service_to_fd()
402 ret = create_service_thread(log_service, get_log_file_path(name + 4)); in service_to_fd()
412 ret = create_service_thread(shell_service, (void *)args); in service_to_fd()
414 ret = create_service_thread(file_sync_service, NULL); in service_to_fd()
416 ret = create_service_thread(remount_service, NULL); in service_to_fd()
421 ret = create_service_thread(reboot_service, arg); in service_to_fd()
423 ret = create_service_thread(restart_root_service, NULL); in service_to_fd()
427 ret = create_service_thread(echo_service, 0); in service_to_fd()
430 if (ret >= 0) { in service_to_fd()
431 close_on_exec(ret); in service_to_fd()
433 return ret; in service_to_fd()