Home
last modified time | relevance | path

Searched refs:fifo_fd (Results 1 – 6 of 6) sorted by relevance

/systemd-251/src/login/
Dlogind-inhibit.c48 .fifo_fd = -1, in inhibitor_new()
74 safe_close(i->fifo_fd); in inhibitor_free()
283 assert(fd == i->fifo_fd); in inhibitor_dispatch_fifo()
312 if (i->fifo_fd < 0) { in inhibitor_create_fifo()
313 i->fifo_fd = open(i->fifo_path, O_RDONLY|O_CLOEXEC|O_NONBLOCK); in inhibitor_create_fifo()
314 if (i->fifo_fd < 0) in inhibitor_create_fifo()
319 …r = sd_event_add_io(i->manager->event, &i->event_source, i->fifo_fd, 0, inhibitor_dispatch_fifo, i… in inhibitor_create_fifo()
338 i->fifo_fd = safe_close(i->fifo_fd); in inhibitor_remove_fifo()
355 if (i->fifo_fd < 0) in inhibitor_is_orphan()
358 if (pipe_eof(i->fifo_fd) != 0) in inhibitor_is_orphan()
Dlogind-session.c64 .fifo_fd = -1, in session_new()
147 safe_close(s->fifo_fd); in session_free()
1051 assert(s->fifo_fd == fd); in session_dispatch_fifo()
1081 if (s->fifo_fd < 0) { in session_create_fifo()
1082 s->fifo_fd = open(s->fifo_path, O_RDONLY|O_CLOEXEC|O_NONBLOCK); in session_create_fifo()
1083 if (s->fifo_fd < 0) in session_create_fifo()
1088 …r = sd_event_add_io(s->manager->event, &s->fifo_event_source, s->fifo_fd, 0, session_dispatch_fifo… in session_create_fifo()
1107 s->fifo_fd = safe_close(s->fifo_fd); in session_remove_fifo()
1126 if (s->fifo_fd >= 0) { in session_may_gc()
1127 if (pipe_eof(s->fifo_fd) <= 0) in session_may_gc()
[all …]
Dlogind-session-dbus.c774 _cleanup_close_ int fifo_fd = -1; in session_send_create_reply() local
792 fifo_fd = session_create_fifo(s); in session_send_create_reply()
793 if (fifo_fd < 0) in session_send_create_reply()
794 return fifo_fd; in session_send_create_reply()
810 fifo_fd, in session_send_create_reply()
819 fifo_fd, in session_send_create_reply()
Dlogind-inhibit.h49 int fifo_fd; member
Dlogind-session.h93 int fifo_fd; member
Dlogind-dbus.c3235 _cleanup_close_ int fifo_fd = -1; in method_inhibit() local
3334 fifo_fd = inhibitor_create_fifo(i); in method_inhibit()
3335 if (fifo_fd < 0) in method_inhibit()
3336 return fifo_fd; in method_inhibit()
3343 return sd_bus_reply_method_return(message, "h", fifo_fd); in method_inhibit()
3460 "h", fifo_fd,