Home
last modified time | relevance | path

Searched refs:syslog_fd (Results 1 – 5 of 5) sorted by relevance

/systemd-251/src/journal/
Djournald-syslog.c76 if (sendmsg(s->syslog_fd, &msghdr, MSG_NOSIGNAL) >= 0) in forward_syslog_iovec()
97 if (sendmsg(s->syslog_fd, &msghdr, MSG_NOSIGNAL) >= 0) in forward_syslog_iovec()
459 if (s->syslog_fd < 0) { in server_open_syslog_socket()
468 s->syslog_fd = socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0); in server_open_syslog_socket()
469 if (s->syslog_fd < 0) in server_open_syslog_socket()
474 r = bind(s->syslog_fd, &sa.sa, sa_len); in server_open_syslog_socket()
480 (void) fd_nonblock(s->syslog_fd, true); in server_open_syslog_socket()
482 r = setsockopt_int(s->syslog_fd, SOL_SOCKET, SO_PASSCRED, true); in server_open_syslog_socket()
487 r = setsockopt_int(s->syslog_fd, SOL_SOCKET, SO_PASSSEC, true); in server_open_syslog_socket()
492 r = setsockopt_int(s->syslog_fd, SOL_SOCKET, SO_TIMESTAMP, true); in server_open_syslog_socket()
[all …]
Dfuzz-journald.c10 .syslog_fd = -1, in dummy_server_init()
Djournald-server.c1329 assert(fd == s->native_fd || fd == s->syslog_fd || fd == s->audit_fd); in server_process_datagram()
1387 if (fd == s->syslog_fd) { in server_process_datagram()
2284 .syslog_fd = -1, in server_init()
2410 if (s->syslog_fd >= 0) in server_init()
2414 s->syslog_fd = fd; in server_init()
2453 …no_sockets = s->native_fd < 0 && s->stdout_fd < 0 && s->syslog_fd < 0 && s->audit_fd < 0 && varlin… in server_init()
2593 safe_close(s->syslog_fd); in server_done()
Djournald-server.h66 int syslog_fd; member
/systemd-251/src/basic/
Dlog.c50 static int syslog_fd = -1; variable
126 syslog_fd = safe_close(syslog_fd); in log_close_syslog()
160 if (syslog_fd >= 0) in log_open_syslog()
163 syslog_fd = create_log_socket(SOCK_DGRAM); in log_open_syslog()
164 if (syslog_fd < 0) { in log_open_syslog()
165 r = syslog_fd; in log_open_syslog()
169 if (connect(syslog_fd, &sa.sa, SOCKADDR_UN_LEN(sa.un)) < 0) { in log_open_syslog()
170 safe_close(syslog_fd); in log_open_syslog()
175 syslog_fd = create_log_socket(SOCK_STREAM); in log_open_syslog()
176 if (syslog_fd < 0) { in log_open_syslog()
[all …]