Searched refs:log_fd (Results 1 – 5 of 5) 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/dhcpcd-6.8.2/ |
D | common.c | 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() [all …]
|
D | dhcpcd.h | 91 int log_fd; member
|
D | dhcpcd.c | 1473 ctx.log_fd = -1; in main()
|