Searched refs:log_fd (Results 1 – 3 of 3) sorted by relevance
/external/dnsmasq/src/ |
D | log.c | 38 static int log_fd = -1; variable 98 fchown(log_fd, ent_pw->pw_uid, -1) != 0) in log_start() 106 if (log_fd != -1) in log_reopen() 107 close(log_fd); in log_reopen() 113 log_fd = open(log_file, O_WRONLY|O_CREAT|O_APPEND, S_IRUSR|S_IWUSR|S_IRGRP); in log_reopen() 114 return log_fd != -1; in log_reopen() 121 log_fd = -1; in log_reopen() 125 log_fd = socket(AF_UNIX, connection_type, 0); in log_reopen() 127 if (log_fd == -1) in log_reopen() 131 if (max_logs != 0 && (flags = fcntl(log_fd, F_GETFL)) != -1) 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/lldb/examples/interposing/darwin/fd_interposing/ |
D | FDInterposing.cpp | 144 log (int log_fd) in log() argument 146 if (m_str && log_fd >= 0) in log() 151 write (log_fd, m_str, len); in log() 154 write (log_fd, "\n", 1); in log() 233 Dump (int log_fd) const; 362 log (int log_fd, const FDEvent *event, const char *format, ...) __attribute__ ((format (printf, 3, … 371 log_to_fd (int log_fd, const char *format, ...) __attribute__ ((format (printf, 2, 3))); 474 log_to_fd (int log_fd, const char *format, va_list args) in log_to_fd() argument 476 if (format && format[0] && log_fd >= 0) in log_to_fd() 481 write (log_fd, buffer, count); in log_to_fd() [all …]
|