Home
last modified time | relevance | path

Searched refs:log_fd (Results 1 – 5 of 5) sorted by relevance

/external/dnsmasq/src/
Dlog.c38 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/
Dfutility.c32 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/dhcpcd-6.8.2/
Dcommon.c153 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()
[all …]
Ddhcpcd.h91 int log_fd; member
Ddhcpcd.c1473 ctx.log_fd = -1; in main()