Searched refs:log_fd (Results 1 - 6 of 6) sorted by relevance

/external/dnsmasq/src/
H A Dlog.c38 static int log_fd = -1; variable
98 fchown(log_fd, ent_pw->pw_uid, -1) != 0)
106 if (log_fd != -1)
107 close(log_fd);
113 log_fd = open(log_file, O_WRONLY|O_CREAT|O_APPEND, S_IRUSR|S_IWUSR|S_IRGRP);
114 return log_fd != -1;
119 Just leave log_fd == -1 and use the vsyslog call for everything.... */
121 log_fd = -1;
125 log_fd = socket(AF_UNIX, connection_type, 0);
127 if (log_fd
[all...]
/external/stressapptest/src/
H A Dlogger.h73 // log_fd: The file descriptor to write to. Will not be closed by this
75 virtual void SetLogFd(int log_fd) { argument
76 LOGGER_ASSERT(log_fd >= 0);
77 log_fd_ = log_fd;
/external/vboot_reference/futility/
H A Dfutility.c32 static int log_fd = -1; variable
39 if (log_fd < 0)
48 n = write(log_fd, prefix + done, len - done);
61 n = write(log_fd, str + done, len - done);
66 if (write(log_fd, "\n", 1) < 0)
74 if (log_fd >= 0) {
78 if (fcntl(log_fd, F_SETLKW, &lock))
81 close(log_fd);
82 log_fd = -1;
92 log_fd
[all...]
/external/dhcpcd-6.8.2/
H A Dcommon.c153 ctx->log_fd = open(ctx->logfile, O_WRONLY | f, 0644);
154 if (ctx->log_fd == -1)
158 if (fcntl(ctx->log_fd, F_GETFD, &f) == -1 ||
159 fcntl(ctx->log_fd, F_SETFD, f | FD_CLOEXEC) == -1)
171 if (ctx->log_fd != -1) {
172 close(ctx->log_fd);
173 ctx->log_fd = -1;
195 if (ctx == NULL || !(ctx->options & DHCPCD_QUIET) || ctx->log_fd != -1)
243 if (ctx && ctx->log_fd != -1) {
256 dprintf(ctx->log_fd, "
[all...]
H A Ddhcpcd.h91 int log_fd; member in struct:dhcpcd_ctx
H A Ddhcpcd.c1473 ctx.log_fd = -1;

Completed in 201 milliseconds