Lines Matching refs:syslog_fd
76 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()
496 …r = sd_event_add_io(s->event, &s->syslog_event_source, s->syslog_fd, EPOLLIN, server_process_datag… in server_open_syslog_socket()