Systemd/src/import
Lennart Poettering ae2a15bc14 macro: introduce TAKE_PTR() macro
This macro will read a pointer of any type, return it, and set the
pointer to NULL. This is useful as an explicit concept of passing
ownership of a memory area between pointers.

This takes inspiration from Rust:

https://doc.rust-lang.org/std/option/enum.Option.html#method.take

and was suggested by Alan Jenkins (@sourcejedi).

It drops ~160 lines of code from our codebase, which makes me like it.
Also, I think it clarifies passing of ownership, and thus helps
readability a bit (at least for the initiated who know the new macro)
2018-03-22 20:21:42 +01:00
..
curl-util.c locale-util: add freelocale() cleanup helper 2018-01-16 11:53:43 +01:00
curl-util.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
export-raw.c stat-util: unify code that checks whether something is a regular file 2018-02-20 15:39:31 +01:00
export-raw.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
export-tar.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
export-tar.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
export.c log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
import-common.c tree-wide: port various places over to use new rearrange_stdio() 2018-03-02 11:42:10 +01:00
import-common.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
import-compress.c support LZMA concatenated files 2018-01-11 23:38:04 +01:00
import-compress.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
import-pubring.gpg import: add image verification using gpg 2015-01-21 04:03:54 +01:00
import-raw.c Replace free and reassignment with free_and_replace 2017-11-24 10:33:41 +00:00
import-raw.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
import-tar.c process-util: rework wait_for_terminate_and_warn() to take a flags parameter 2018-01-04 13:27:27 +01:00
import-tar.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
import.c log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
importd.c macro: introduce TAKE_PTR() macro 2018-03-22 20:21:42 +01:00
meson.build meson: drop unnecessary "transformation" of policy files 2018-02-16 13:01:12 +01:00
org.freedesktop.import1.conf Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
org.freedesktop.import1.policy meson: drop unnecessary "transformation" of policy files 2018-02-16 13:01:12 +01:00
org.freedesktop.import1.service Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
pull-common.c macro: introduce TAKE_PTR() macro 2018-03-22 20:21:42 +01:00
pull-common.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
pull-job.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
pull-job.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
pull-raw.c Replace free and reassignment with free_and_replace 2017-11-24 10:33:41 +00:00
pull-raw.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
pull-tar.c tree-wide: use EXIT_SUCCESS when comparing child process exit statuses 2018-01-04 13:27:27 +01:00
pull-tar.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
pull.c log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
qcow2-util.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
qcow2-util.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-qcow2.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00