Searched refs:INVALID_FD (Results 1 – 17 of 17) sorted by relevance
46 if (ret->fd == INVALID_FD) { in semaphore_new()58 if (semaphore->fd != INVALID_FD) close(semaphore->fd); in semaphore_free()64 CHECK(semaphore->fd != INVALID_FD); in semaphore_wait()74 CHECK(semaphore->fd != INVALID_FD); in semaphore_try_wait()100 CHECK(semaphore->fd != INVALID_FD); in semaphore_post()109 CHECK(semaphore->fd != INVALID_FD); in semaphore_get_fd()
58 static int wake_lock_fd = INVALID_FD;59 static int wake_unlock_fd = INVALID_FD;126 if (wake_lock_fd == INVALID_FD) { in wakelock_acquire_native()131 if (wake_unlock_fd == INVALID_FD) { in wakelock_acquire_native()171 if (wake_unlock_fd == INVALID_FD) { in wakelock_release_native()199 if (wake_lock_fd == INVALID_FD) { in wakelock_initialize_native()202 CHECK(wake_lock_fd != INVALID_FD); in wakelock_initialize_native()208 if (wake_unlock_fd == INVALID_FD) { in wakelock_initialize_native()211 CHECK(wake_unlock_fd != INVALID_FD); in wakelock_initialize_native()
39 if (rand_fd == INVALID_FD) { in osi_rand()42 CHECK(rand_fd != INVALID_FD); in osi_rand()
72 ret->epoll_fd = INVALID_FD; in reactor_new()73 ret->event_fd = INVALID_FD; in reactor_new()76 if (ret->epoll_fd == INVALID_FD) { in reactor_new()83 if (ret->event_fd == INVALID_FD) { in reactor_new()143 CHECK(fd != INVALID_FD); in reactor_register()
56 if (ret->fd == INVALID_FD) { in socket_new()78 CHECK(fd != INVALID_FD); in socket_new_from_fd()121 if (fd == INVALID_FD) { in socket_accept()158 if (fd == INVALID_FD) return socket_write(socket, buf, count); in socket_write_and_transfer_fd()
67 static int logfile_fd = INVALID_FD;110 if (logfile_fd != INVALID_FD) close(logfile_fd); in shut_down()111 logfile_fd = INVALID_FD; in shut_down()134 if (logfile_fd == INVALID_FD) return; in capture()192 if (logfile_fd != INVALID_FD) { in open_next_snoop_file()194 logfile_fd = INVALID_FD; in open_next_snoop_file()210 if (logfile_fd == INVALID_FD) { in open_next_snoop_file()272 if (logfile_fd != INVALID_FD) { in btsnoop_write_packet()
152 if (logfile_fd == INVALID_FD) { in hci_open_firmware_log_file()161 if (fd != INVALID_FD) close(fd); in hci_close_firmware_log_file()
60 static int hci_firmware_log_fd = INVALID_FD;595 if (hci_firmware_log_fd == INVALID_FD) in filter_incoming_event()598 if (hci_firmware_log_fd != INVALID_FD) in filter_incoming_event()
394 int hci_open_firmware_log_file() { return INVALID_FD; } in hci_open_firmware_log_file()
135 int pair[2] = {INVALID_FD, INVALID_FD}; in sco_socket_establish_locked()177 if (pair[0] != INVALID_FD) close(pair[0]); in sco_socket_establish_locked()178 if (pair[1] != INVALID_FD) close(pair[1]); in sco_socket_establish_locked()223 int client_fd = INVALID_FD; in connection_request_cb()274 if (client_fd != INVALID_FD) close(client_fd); in connection_request_cb()
123 rfc_slots[i].fd = INVALID_FD; in btsock_rfc_init()124 rfc_slots[i].app_fd = INVALID_FD; in btsock_rfc_init()150 if (rfc_slots[i].fd == INVALID_FD) return &rfc_slots[i]; in find_free_slot()202 int fds[2] = {INVALID_FD, INVALID_FD}; in alloc_rfc_slot()279 *sock_fd = INVALID_FD; in btsock_rfc_listen()323 slot->app_fd = INVALID_FD; // Drop our reference to the fd. in btsock_rfc_listen()337 *sock_fd = INVALID_FD; in btsock_rfc_connect()386 slot->app_fd = INVALID_FD; // Drop our reference to the fd. in btsock_rfc_connect()416 if (slot->fd != INVALID_FD) { in cleanup_rfc_slot()419 slot->fd = INVALID_FD; in cleanup_rfc_slot()[all …]
134 btpan_cb.tap_fd = INVALID_FD; in btif_pan_init()148 if (btpan_cb.tap_fd != INVALID_FD) { in pan_disable()150 btpan_cb.tap_fd = INVALID_FD; in pan_disable()408 return INVALID_FD; in btpan_tap_open()414 if (tap_fd != INVALID_FD) { in btpan_tap_send()499 if (btpan_cb.tap_fd != INVALID_FD) { in btpan_close_conn()501 btpan_cb.tap_fd = INVALID_FD; in btpan_close_conn()679 if (fd == INVALID_FD || fd != btpan_cb.tap_fd) return; in btu_exec_tap_fd_read()770 CHECK(btpan_cb.tap_fd == INVALID_FD || btpan_cb.tap_fd == fd); in btpan_tap_fd_signaled()779 btpan_cb.tap_fd = INVALID_FD; in btpan_tap_fd_signaled()
131 *sock_fd = INVALID_FD; in btsock_listen()165 *sock_fd = INVALID_FD; in btsock_connect()
215 int rfcomm_fd = INVALID_FD; in main()225 int sock_fd = INVALID_FD; in main()249 int rfcomm_fd = INVALID_FD; in main()262 int sock_fd = INVALID_FD; in main()
26 #define INVALID_FD (-1) macro
518 pipefd{INVALID_FD, INVALID_FD} {} in ServerInternals()521 if (pipefd[0] != INVALID_FD) close(pipefd[0]); in ~ServerInternals()522 if (pipefd[1] != INVALID_FD) close(pipefd[1]); in ~ServerInternals()
179 if (sock == INVALID_FD) goto error; in write_hci_command()