Systemd/src/systemd
Nathaniel McCallum ab93297cd0 Add fd close support to sd_event_source
It is often the case that a file descriptor and its corresponding IO
sd_event_source share a life span. When this is the case, developers will
have to unref the event source and close the file descriptor. Instead, we
can just have the event source take ownership of the file descriptor and
close it when the event source is freed. This is especially useful when
combined with cleanup attributes and sd_event_source_unrefp().

This patch adds two new public functions:

    sd_event_source_get_io_fd_own()
    sd_event_source_set_io_fd_own()
2018-01-24 17:57:27 +01:00
..
_sd-common.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
meson.build Add license headers and SPDX identifiers to meson.build files 2017-11-19 19:08:15 +01:00
sd-bus-protocol.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-bus-vtable.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-bus.h Add support for SD_BUS_DEFAULT* 2018-01-23 09:40:25 -05:00
sd-daemon.h core: add a new sd_notify() message for removing fds from the FD store again 2017-11-27 17:04:04 +01:00
sd-device.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-dhcp-client.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-dhcp-lease.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-dhcp-server.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-dhcp6-client.h dhcp6: Add functionality to request DHCPv6 IA PD 2018-01-04 15:22:44 +02:00
sd-dhcp6-lease.h dhcp6: Add function to iterate and fetch delegated prefixes 2018-01-04 15:22:44 +02:00
sd-event.h Add fd close support to sd_event_source 2018-01-24 17:57:27 +01:00
sd-hwdb.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-id128.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-ipv4acd.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-ipv4ll.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-journal.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-lldp.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-login.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-messages.h Make taint message structured and add catalog entry 2017-12-14 22:14:38 +01:00
sd-ndisc.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-netlink.h networkd: add support for wireguard interface type 2018-01-09 14:00:49 +01:00
sd-network.h Add a "RequiredForOnline=" Link attribute for .network files (#7347) 2017-11-30 18:03:50 +01:00
sd-path.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-radv.h radv: Add function to remove prefixes 2018-01-04 15:22:44 +02:00
sd-resolve.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-utf8.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00