Lines Matching refs:log_fd
153 ctx->log_fd = open(ctx->logfile, O_WRONLY | f, 0644); in logger_open()
154 if (ctx->log_fd == -1) in logger_open()
158 if (fcntl(ctx->log_fd, F_GETFD, &f) == -1 || in logger_open()
159 fcntl(ctx->log_fd, F_SETFD, f | FD_CLOEXEC) == -1) in logger_open()
171 if (ctx->log_fd != -1) { in logger_close()
172 close(ctx->log_fd); in logger_close()
173 ctx->log_fd = -1; in logger_close()
195 if (ctx == NULL || !(ctx->options & DHCPCD_QUIET) || ctx->log_fd != -1) in logger()
243 if (ctx && ctx->log_fd != -1) { in logger()
256 dprintf(ctx->log_fd, "%s", buf); in logger()
259 vdprintf(ctx->log_fd, fmt, va); in logger()
260 dprintf(ctx->log_fd, "\n"); in logger()