Systemd/src/udev
Lennart Poettering 41b9d436b2 mtd: some basic code cleanups
While looking at our exit() invocations I noticed that the mtd_probe
stuff uses 'exit(-1)' at various places, which is not really a good
idea, as exit codes of processes on Linux are supposed to be in the
range of 0…255.

This patch cleans that up a bit, and fixes a number of other things:

1. Let's always let main() exit, nothing intermediary. We generally
   don't like code that invokes exit() on its own.

2. Close the file descriptors opened.

3. Some logging for errors is added, mostly on debug level.

Please review this with extra care. As I don't have the right hardware
to test this patch I only did superficial testing.
2018-05-10 11:02:33 -07: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 mtd: some basic code cleanups 2018-05-10 11:02:33 -07:00
net network,udev: sort included headers 2018-05-09 12:00:27 +09: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 meson: recompile all sources for install_libudev_static and install_libsystemd_static 2018-05-08 17:33:04 +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 udev: do not mark ari_enabled true when its sysattr value is 0 (#8870) 2018-05-02 16:21:30 +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: fix null dererefence on allocation error 2018-05-10 01:49:01 +02: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