Lines Matching defs:fd
171 static void adb_auth_event(int fd, unsigned events, void *data)
177 ret = unix_read(fd, response, sizeof(response));
229 static void adb_auth_listener(int fd, unsigned events, void *data)
237 s = adb_socket_accept(fd, &addr, &alen);
253 int fd, ret;
255 fd = android_get_control_socket("adbd");
256 if (fd < 0) {
260 fcntl(fd, F_SETFD, FD_CLOEXEC);
262 ret = listen(fd, 4);
264 D("Failed to listen on '%d'\n", fd);
268 fdevent_install(&listener_fde, fd, adb_auth_listener, NULL);