Lines Matching refs:logfile_fd
67 static int logfile_fd = INVALID_FD; variable
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()
193 close(logfile_fd); in open_next_snoop_file()
194 logfile_fd = INVALID_FD; in open_next_snoop_file()
207 logfile_fd = open(log_path, O_WRONLY | O_CREAT | O_TRUNC, in open_next_snoop_file()
210 if (logfile_fd == INVALID_FD) { in open_next_snoop_file()
216 write(logfile_fd, "btsnoop\0\0\0\0\1\0\0\x3\xea", 16); in open_next_snoop_file()
272 if (logfile_fd != INVALID_FD) { in btsnoop_write_packet()
280 TEMP_FAILURE_RETRY(writev(logfile_fd, iov, 2)); in btsnoop_write_packet()