Searched refs:log_fd (Results 1 – 4 of 4) sorted by relevance
/external/honggfuzz/libhfcommon/ |
D | log.c | 51 static int log_fd = STDERR_FILENO; variable 57 log_fd = fcntl(log_fd, F_DUPFD_CLOEXEC, 0); in log_init() 58 if (log_fd == -1) { in log_init() 59 log_fd = STDERR_FILENO; in log_init() 61 log_fd_isatty = isatty(log_fd); in log_init() 72 log_fd = open(logfile, O_CREAT | O_RDWR | O_TRUNC, 0640); in logInitLogFile() 73 if (log_fd == -1) { in logInitLogFile() 74 log_fd = STDERR_FILENO; in logInitLogFile() 79 log_fd = fd; in logInitLogFile() 82 log_fd_isatty = (isatty(log_fd) == 1 ? true : false); in logInitLogFile() [all …]
|
/external/dnsmasq/src/ |
D | log.c | 38 static int log_fd = -1; variable 91 if (log_to_file && ent_pw && ent_pw->pw_uid != 0 && fchown(log_fd, ent_pw->pw_uid, -1) != 0) in log_start() 98 if (log_fd != -1) close(log_fd); in log_reopen() 103 log_fd = open(log_file, O_WRONLY | O_CREAT | O_APPEND, S_IRUSR | S_IWUSR | S_IRGRP); in log_reopen() 104 return log_fd != -1; in log_reopen() 108 log_fd = -1; in log_reopen() 112 log_fd = socket(AF_UNIX, connection_type, 0); in log_reopen() 114 if (log_fd == -1) return 0; in log_reopen() 117 if (max_logs != 0 && (flags = fcntl(log_fd, F_GETFL)) != -1) in log_reopen() 118 fcntl(log_fd, F_SETFL, flags | O_NONBLOCK); in log_reopen() [all …]
|
/external/vboot_reference/futility/ |
D | futility.c | 32 static int log_fd = -1; variable 39 if (log_fd < 0) in log_str() 48 n = write(log_fd, prefix + done, len - done); in log_str() 61 n = write(log_fd, str + done, len - done); in log_str() 66 if (write(log_fd, "\n", 1) < 0) in log_str() 74 if (log_fd >= 0) { in log_close() 78 if (fcntl(log_fd, F_SETLKW, &lock)) in log_close() 81 close(log_fd); in log_close() 82 log_fd = -1; in log_close() 92 log_fd = open(LOGFILE, O_WRONLY | O_APPEND | O_CREAT, 0666); in log_open() [all …]
|
/external/stressapptest/src/ |
D | logger.h | 75 virtual void SetLogFd(int log_fd) { in SetLogFd() argument 76 LOGGER_ASSERT(log_fd >= 0); in SetLogFd() 77 log_fd_ = log_fd; in SetLogFd()
|