Systemd/src/coredump
Franck Bui 9a43538896 coredump: make use of the iovec-array helpers
Previous code was allocating an array of iovecs big enough to store all the
fields added later by various functions.

This forced us to calculate the size of the array in advance which is too error
prone if for example one wants to add new fields or simply rework the
code. Various assertions were added to make sure there's no overflow but it's
still more code for no good reasons.

Instead, this patch switches to the new iovec array handling interface so the
array is grown dynamically when needed.

The other contraint was that some iovecs were supposed to be freed whereas some
others were not. This makes the code hard to (re)organize. The new code always
allocates fields so it becomes easier to rework the code.
2019-06-28 08:24:09 +02:00
..
coredump-vacuum.c headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01:00
coredump-vacuum.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
coredump.c coredump: make use of the iovec-array helpers 2019-06-28 08:24:09 +02:00
coredump.conf build-sys: move coredump logic into subdir of its own 2016-02-10 14:32:27 +01:00
coredumpctl.c tree-wide: replace strjoin() with path_join() 2019-06-21 03:26:16 +09:00
meson.build coredump: only install coredump.conf when ENABLED_COREDUMP=true 2018-11-02 14:31:12 +01:00
stacktrace.c coredump: slighlty simplify stack trace generation logic 2019-06-27 19:01:32 +02:00
stacktrace.h coredump: slighlty simplify stack trace generation logic 2019-06-27 19:01:32 +02:00
test-coredump-vacuum.c Drop my copyright headers 2018-06-14 13:03:20 +02:00