Home
last modified time | relevance | path

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

/third_party/musl/src/misc/
Dsyslog.c19 static int log_fd = -1; variable
43 close(log_fd); in closelog()
44 log_fd = -1; in closelog()
51 log_fd = socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0); in __openlog()
52 if (log_fd >= 0) connect(log_fd, (void *)&log_addr, sizeof log_addr); in __openlog()
71 if ((opt & LOG_NDELAY) && log_fd<0) __openlog(); in openlog()
94 if (log_fd < 0) __openlog(); in _vsyslog()
111 if (send(log_fd, buf, l, 0) < 0 && (!is_lost_conn(errno) in _vsyslog()
112 || connect(log_fd, (void *)&log_addr, sizeof log_addr) < 0 in _vsyslog()
113 || send(log_fd, buf, l, 0) < 0) in _vsyslog()
/third_party/musl/porting/liteos_a/user/src/misc/
Dsyslog.c20 static int log_fd = -1; variable
46 close(log_fd); in closelog()
47 log_fd = -1; in closelog()
54 log_fd = socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0); in __openlog()
55 if (log_fd >= 0) connect(log_fd, (void *)&log_addr, sizeof log_addr); in __openlog()
75 if ((opt & LOG_NDELAY) && log_fd<0) __openlog(); in openlog()
98 if (log_fd < 0) __openlog(); in _vsyslog()
115 if (send(log_fd, buf, l, 0) < 0 && (!is_lost_conn(errno) in _vsyslog()
116 || connect(log_fd, (void *)&log_addr, sizeof log_addr) < 0 in _vsyslog()
117 || send(log_fd, buf, l, 0) < 0) in _vsyslog()
/third_party/pulseaudio/src/pulsecore/
Dlog.c94 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/
Dpage-poisoning.c87 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/
Daccess-log.c60 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/
Dcoap_debug.c915 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/glib/glib/
Dgtester.c66 static gint log_fd = -1; variable
89 r = write (log_fd, result, strlen (result)); in test_log_printfe()
706 log_fd = g_open (output_filename, O_WRONLY | O_CREAT | O_TRUNC, 0666); in main()
708 if (log_fd < 0) in main()
726 close (log_fd); in main()
/third_party/libwebsockets/lib/core-net/
Dvhost.c976 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);
Dprivate-lib-core-net.h520 int log_fd; member
/third_party/nghttp2/src/
Dh2load.cc94 log_fd(-1), in Config()
829 if (worker->config->log_fd != -1) { in on_stream_close()
851 while (write(worker->config->log_fd, buf.data(), nwrite) == -1 && in on_stream_close()
2453 config.log_fd = open(logfile.c_str(), O_WRONLY | O_CREAT | O_APPEND, in main()
2455 if (config.log_fd == -1) { in main()
2811 if (config.log_fd != -1) { in main()
2812 close(config.log_fd); in main()
Dh2load.h102 int log_fd; member