chiark / gitweb /
fd-util: introduce fd_reopen() helper for reopening an fd
authorLennart Poettering <lennart@poettering.net>
Mon, 26 Mar 2018 11:25:51 +0000 (13:25 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commitdf15bd49b7c870a13f48f78ae7958380ad01f565
tree25d3b433f8527575849466a1a4e37ab471ec16ba
parentb9458858b4f6475dd32b83f37c546a9ad2c444b2
fd-util: introduce fd_reopen() helper for reopening an fd

We have the same code for this in place at various locations, let's
unify that. Also, let's repurpose test-fs-util.c as a test for this new
helper cal..
src/basic/fd-util.c
src/basic/fd-util.h
src/test/test-fs-util.c