Searched refs:native_fd (Results 1 - 3 of 3) sorted by relevance

/systemd/src/journal/
H A Djournald-native.c456 if (s->native_fd < 0) {
462 s->native_fd = socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0);
463 if (s->native_fd < 0)
468 r = bind(s->native_fd, &sa.sa, offsetof(union sockaddr_union, un.sun_path) + strlen(sa.un.sun_path));
474 fd_nonblock(s->native_fd, 1);
476 r = setsockopt(s->native_fd, SOL_SOCKET, SO_PASSCRED, &one, sizeof(one));
482 r = setsockopt(s->native_fd, SOL_SOCKET, SO_PASSSEC, &one, sizeof(one));
488 r = setsockopt(s->native_fd, SOL_SOCKET, SO_TIMESTAMP, &one, sizeof(one));
492 r = sd_event_add_io(s->event, &s->native_event_source, s->native_fd, EPOLLIN, server_process_datagram, s);
H A Djournald-server.h54 int native_fd; member in struct:Server
H A Djournald-server.c1192 assert(fd == s->native_fd || fd == s->syslog_fd || fd == s->audit_fd);
1253 } else if (fd == s->native_fd) {
1724 s->syslog_fd = s->native_fd = s->stdout_fd = s->dev_kmsg_fd = s->audit_fd = s->hostname_fd = s->notify_fd = -1;
1780 if (s->native_fd >= 0) {
1785 s->native_fd = fd;
1837 no_sockets = s->native_fd < 0 && s->stdout_fd < 0 && s->syslog_fd < 0 && s->audit_fd < 0;
1952 safe_close(s->native_fd);

Completed in 1705 milliseconds