/external/vboot_reference/futility/ |
futility.c | 32 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 = open(LOGFILE, O_WRONLY | O_APPEND | O_CREAT, 0666) [all...] |
/external/dnsmasq/src/ |
log.c | 38 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 == -1 [all...] |
/external/dhcpcd-6.8.2/ |
dhcpcd.h | 91 int log_fd; member in struct:dhcpcd_ctx
|
/hardware/libhardware/modules/audio_remote_submix/ |
audio_hw.cpp | 185 int log_fd; member in struct:android::submix_stream_out 205 int log_fd; member in struct:android::submix_stream_in [all...] |
/bionic/libc/bionic/ |
libc_logging.cpp | 462 int log_fd = TEMP_FAILURE_RETRY(socket(PF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC, 0)); local 463 if (log_fd < 0) { 467 if (fcntl(log_fd, F_SETFL, O_NONBLOCK) == -1) { 468 close(log_fd); 480 if (TEMP_FAILURE_RETRY(connect(log_fd, &u.addr, sizeof(u.addrUn))) != 0) { 481 close(log_fd); 485 return log_fd;
|