Systemd/src/udev
Lennart Poettering 8e766630f0 tree-wide: drop redundant _cleanup_ macros (#8810)
This drops a good number of type-specific _cleanup_ macros, and patches
all users to just use the generic ones.

In most recent code we abstained from defining type-specific macros, and
this basically removes all those added already, with the exception of
the really low-level ones.

Having explicit macros for this is not too useful, as the expression
without the extra macro is generally just 2ch wider. We should generally
emphesize generic code, unless there are really good reasons for
specific code, hence let's follow this in this case too.

Note that _cleanup_free_ and similar really low-level, libc'ish, Linux
API'ish macros continue to be defined, only the really high-level OO
ones are dropped. From now on this should really be the rule: for really
low-level stuff, such as memory allocation, fd handling and so one, go
ahead and define explicit per-type macros, but for high-level, specific
program code, just use the generic _cleanup_() macro directly, in order
to keep things simple and as readable as possible for the uninitiated.

Note that before this patch some of the APIs (notable libudev ones) were
already used with the high-level macros at some places and with the
generic _cleanup_ macro at others. With this patch we hence unify on the
latter.
2018-04-25 12:31:45 +02:00
..
ata_id tree-wide: drop redundant _cleanup_ macros (#8810) 2018-04-25 12:31:45 +02:00
cdrom_id tree-wide: use "cannot" instead of "can not" 2018-02-08 10:34:52 +01:00
collect basic/macros: rename noreturn into _noreturn_ (#8456) 2018-03-15 14:23:46 +09:00
mtd_probe tree-wide: drop spurious newlines (#8764) 2018-04-19 12:13:23 +02:00
net tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
scsi_id tree-wide: drop redundant _cleanup_ macros (#8810) 2018-04-25 12:31:45 +02:00
v4l_id v4l_id: check mplane video capture and output capailities (#8464) 2018-03-20 09:54:18 +01:00
.vimrc
generate-keyboard-keys-gperf.sh separate flags from shebang 2017-12-25 19:48:49 +01:00
generate-keyboard-keys-list.sh separate flags from shebang 2017-12-25 19:48:49 +01:00
meson.build tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
udev-builtin-blkid.c tree-wide: drop redundant _cleanup_ macros (#8810) 2018-04-25 12:31:45 +02:00
udev-builtin-btrfs.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
udev-builtin-hwdb.c tree-wide: drop redundant _cleanup_ macros (#8810) 2018-04-25 12:31:45 +02:00
udev-builtin-input_id.c udev: don't label high-button mice as joysticks (#8493) 2018-03-23 15:15:41 +01:00
udev-builtin-keyboard.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
udev-builtin-kmod.c Add SPDX license identifiers to source files under the GPL 2017-11-19 19:08:15 +01:00
udev-builtin-net_id.c tree-wide: drop redundant _cleanup_ macros (#8810) 2018-04-25 12:31:45 +02:00
udev-builtin-net_setup_link.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
udev-builtin-path_id.c tree-wide: drop redundant _cleanup_ macros (#8810) 2018-04-25 12:31:45 +02:00
udev-builtin-uaccess.c Add SPDX license identifiers to source files under the GPL 2017-11-19 19:08:15 +01:00
udev-builtin-usb_id.c Add SPDX license identifiers to source files under the GPL 2017-11-19 19:08:15 +01:00
udev-builtin.c tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
udev-ctrl.c Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
udev-event.c process-util: add another fork_safe() flag for enabling LOG_ERR/LOG_WARN logging 2018-01-04 13:27:26 +01:00
udev-node.c label: rework label_fix() implementations (#8583) 2018-03-27 07:38:26 +02:00
udev-rules.c coccinelle: similar to reallocarray() let's also systematically use malloc_multiply() 2018-03-02 12:39:07 +01:00
udev-watch.c Add some handling to remaining unlinkat calls 2018-02-19 15:00:00 +01:00
udev.conf Add note to udev.conf that changes to that file require a rebuild of the initramfs 2018-02-27 18:56:19 -03:00
udev.h Add SPDX license identifiers to source files under the GPL 2017-11-19 19:08:15 +01:00
udev.pc.in tree-wide: standardize on $(PACKAGE_VERSION) for the version string 2017-04-04 20:36:09 -04:00
udevadm-control.c tree-wide: drop redundant _cleanup_ macros (#8810) 2018-04-25 12:31:45 +02:00
udevadm-hwdb.c udevadm/hwdb: Return non-zero exit code on error when --strict is used 2018-04-23 07:53:33 +08:00
udevadm-info.c tree-wide: drop redundant _cleanup_ macros (#8810) 2018-04-25 12:31:45 +02:00
udevadm-monitor.c tree-wide: drop redundant _cleanup_ macros (#8810) 2018-04-25 12:31:45 +02:00
udevadm-settle.c udevadm: getopt() and help message cleanup 2017-12-05 23:30:10 +09:00
udevadm-test-builtin.c udevadm: getopt() and help message cleanup 2017-12-05 23:30:10 +09:00
udevadm-test.c tree-wide: drop redundant _cleanup_ macros (#8810) 2018-04-25 12:31:45 +02:00
udevadm-trigger.c tree-wide: drop redundant _cleanup_ macros (#8810) 2018-04-25 12:31:45 +02:00
udevadm-util.c Add SPDX license identifiers to source files under the GPL 2017-11-19 19:08:15 +01:00
udevadm-util.h udevadm: getopt() and help message cleanup 2017-12-05 23:30:10 +09:00
udevadm.c Add SPDX license identifiers to source files under the GPL 2017-11-19 19:08:15 +01:00
udevd.c tree-wide: drop redundant _cleanup_ macros (#8810) 2018-04-25 12:31:45 +02:00