/third_party/musl/src/misc/ |
D | syslog.c | 20 static int log_fd = -1; variable 45 close(log_fd); in closelog() 46 log_fd = -1; in closelog() 53 log_fd = socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0); in __openlog() 54 if (log_fd >= 0) connect(log_fd, (void *)&log_addr, sizeof log_addr); in __openlog() 73 if ((opt & LOG_NDELAY) && log_fd<0) __openlog(); in openlog() 96 if (log_fd < 0) __openlog(); in _vsyslog() 113 if (send(log_fd, buf, l, 0) < 0 && (!is_lost_conn(errno) in _vsyslog() 114 || connect(log_fd, (void *)&log_addr, sizeof log_addr) < 0 in _vsyslog() 115 || send(log_fd, buf, l, 0) < 0) in _vsyslog()
|
/third_party/musl/porting/liteos_a/user/src/misc/ |
D | syslog.c | 21 static int log_fd = -1; variable 48 close(log_fd); in closelog() 49 log_fd = -1; in closelog() 56 log_fd = socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0); in __openlog() 57 if (log_fd >= 0) connect(log_fd, (void *)&log_addr, sizeof log_addr); in __openlog() 77 if ((opt & LOG_NDELAY) && log_fd<0) __openlog(); in openlog() 100 if (log_fd < 0) __openlog(); in _vsyslog() 117 if (send(log_fd, buf, l, 0) < 0 && (!is_lost_conn(errno) in _vsyslog() 118 || connect(log_fd, (void *)&log_addr, sizeof log_addr) < 0 in _vsyslog() 119 || send(log_fd, buf, l, 0) < 0) in _vsyslog()
|
/third_party/pulseaudio/src/pulsecore/ |
D | log.c | 94 static int log_fd = -1; variable 204 old_fd = log_fd; in pa_log_set_target() 205 log_fd = fd; in pa_log_set_target() 542 if (log_fd >= 0) { in pa_log_levelv_meta() 550 if ((pa_write(log_fd, metadata, strlen(metadata), &write_type) < 0) in pa_log_levelv_meta() 551 || (pa_write(log_fd, t, strlen(t), &write_type) < 0) in pa_log_levelv_meta() 552 || (bt && pa_write(log_fd, bt, strlen(bt), &write_type) < 0) in pa_log_levelv_meta() 553 || (pa_write(log_fd, "\n", 1, &write_type) < 0)) { in pa_log_levelv_meta()
|
/third_party/ltp/testcases/kernel/mce-test/stress/tools/page-poisoning/ |
D | page-poisoning.c | 87 static FILE *log_fd = NULL; variable 144 if (!log_fd) in mylog() 150 fprintf(log_fd, "[pid %d] %s", mypid, buf); in mylog() 151 fflush(log_fd); in mylog() 166 if (log_fd) in result() 770 log_fd = fopen(log_file, "w"); in setup_log() 772 log_fd = fopen(log_file, "a"); in setup_log() 773 if (!log_fd) in setup_log() 793 fclose(log_fd); in free_log()
|
/third_party/libwebsockets/lib/roles/http/server/ |
D | access-log.c | 60 if (wsi->a.vhost->log_fd == (int)LWS_INVALID_FILE) in lws_prepare_access_log_info() 158 if (wsi->a.vhost->log_fd == (int)LWS_INVALID_FILE) in lws_access_log() 190 if ((int)write(wsi->a.vhost->log_fd, ass, (size_t)l) != l) in lws_access_log()
|
/third_party/libcoap/src/ |
D | coap_debug.c | 915 FILE *log_fd; in coap_log_impl() local 918 log_fd = level <= LOG_CRIT ? COAP_ERR_FD : COAP_DEBUG_FD; in coap_log_impl() 923 fprintf(log_fd, "%.*s ", (int)len, timebuf); in coap_log_impl() 926 fprintf(log_fd, "%s ", loglevels[level]); in coap_log_impl() 929 vfprintf(log_fd, format, ap); in coap_log_impl() 931 fflush(log_fd); in coap_log_impl()
|
/third_party/libwebsockets/lib/core-net/ |
D | vhost.c | 976 vh->log_fd = (int)LWS_INVALID_FILE; in lws_create_vhost() 978 vh->log_fd = lws_open(info->log_filepath, in lws_create_vhost() 980 if (vh->log_fd == (int)LWS_INVALID_FILE) { in lws_create_vhost() 993 vh->log_fd = (int)LWS_INVALID_FILE; in lws_create_vhost() 1531 if (vh->log_fd != (int)LWS_INVALID_FILE) 1532 close(vh->log_fd);
|
D | private-lib-core-net.h | 520 int log_fd; member
|
/third_party/nghttp2/src/ |
D | h2load.cc | 125 log_fd(-1), in Config() 1021 if (worker->config->log_fd != -1) { in on_stream_close() 1043 while (write(worker->config->log_fd, buf.data(), nwrite) == -1 && in on_stream_close() 2871 config.log_fd = open(logfile.c_str(), O_WRONLY | O_CREAT | O_APPEND, in main() 2873 if (config.log_fd == -1) { in main() 3304 if (config.log_fd != -1) { in main() 3305 close(config.log_fd); in main()
|
D | h2load.h | 116 int log_fd; member
|