]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic: move acquire_data_fd() and fd_duplicate_data_fd() to new data-fd-util.c
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 21 Jun 2021 20:54:12 +0000 (22:54 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 24 Jun 2021 08:05:22 +0000 (10:05 +0200)
commit6a818c3cb4cba768dc42efa84db2fbd938f5def0
treedeeb8ffe7151f9445aaf703e9efc596d59a7040c
parent37350b81b5ce7c94636ea637a84af479132b6726
basic: move acquire_data_fd() and fd_duplicate_data_fd() to new data-fd-util.c

fd_duplicate_data_fd() is renamed to copy_data_fd(). This makes
the two functions have nicely similar names.

Now fd-util.[ch] is again about low-level file descriptor manipulations.
copy_data_fd() is a complex function that internally wraps the other
functions in copy.c. I want to move copy.c and the whole cluster of
related code from basic/ to shared/ later on, and this is a preparatory
step for that.
14 files changed:
src/basic/data-fd-util.c [new file with mode: 0644]
src/basic/data-fd-util.h [new file with mode: 0644]
src/basic/fd-util.c
src/basic/fd-util.h
src/basic/meson.build
src/basic/terminal-util.c
src/core/dbus-manager.c
src/core/execute.c
src/home/homed-home.c
src/oom/oomd-manager-bus.c
src/portable/portable.c
src/test/meson.build
src/test/test-data-fd-util.c [new file with mode: 0644]
src/test/test-fd-util.c