Systemd/src/libsystemd/sd-device
Zbigniew Jędrzejewski-Szmek a5648b8094 basic/fs-util: change CHASE_OPEN flag into a separate output parameter
chase_symlinks() would return negative on error, and either a non-negative status
or a non-negative fd when CHASE_OPEN was given. This made the interface quite
complicated, because dependning on the flags used, we would get two different
"types" of return object. Coverity was always confused by this, and flagged
every use of chase_symlinks() without CHASE_OPEN as a resource leak (because it
would this that an fd is returned). This patch uses a saparate output parameter,
so there is no confusion.

(I think it is OK to have functions which return either an error or an fd. It's
only returning *either* an fd or a non-fd that is confusing.)
2019-10-24 22:44:24 +09:00
..
device-enumerator-private.h sd-device-enumerator: support multiple parents 2019-01-23 15:15:56 +09:00
device-enumerator.c tree-wide: replace strjoin() with path_join() 2019-06-21 03:26:16 +09:00
device-internal.h sd-device: store parsed ACTION= and SEQNUM= udev properties 2019-03-12 03:49:53 +09:00
device-monitor-private.h sd-device: introduce sd_device_monitor 2018-10-17 03:30:54 +09:00
device-monitor.c sd-device-monitor: use SO_DETACH_FILTER to remove BPF program 2019-01-23 15:11:47 +09:00
device-private.c sd-device: introduce dump_device_action_table() 2019-06-29 04:10:14 +09:00
device-private.h sd-device: introduce dump_device_action_table() 2019-06-29 04:10:14 +09:00
device-util.h tree-wide: use PROJECT_FILE instead of __FILE__ 2019-07-04 10:36:00 +02:00
sd-device.c basic/fs-util: change CHASE_OPEN flag into a separate output parameter 2019-10-24 22:44:24 +09:00
test-sd-device-monitor.c test: add a test case for issue #11652 2019-02-06 08:43:34 +01:00
test-sd-device-thread.c test: add test for 'thread safety' of sd-device 2018-10-12 17:54:23 +09:00
test-sd-device.c headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01:00
test-udev-device-thread.c test: add test for 'thread safety' of libudev 2018-10-12 17:54:23 +09:00