]> git.ipfire.org Git - thirdparty/systemd.git/commit
fd-util: Close function for FD_TO_PTR
authorAdrian Vovk <adrianvovk@gmail.com>
Thu, 11 Jan 2024 20:43:05 +0000 (15:43 -0500)
committerAdrian Vovk <adrianvovk@gmail.com>
Fri, 19 Jan 2024 17:27:05 +0000 (12:27 -0500)
commita1bdae3645ae7336b6d440f150b987d246ce5d8d
treee601539d10e1b3942822488f168670d36d9d4378
parentf0409e7b42dae8d2e8911476e49de140797733ba
fd-util: Close function for FD_TO_PTR

Just a function to be used as a destructor (i.e. in a _cleanup_
attribute, hash table operations, etc.) that closes an fd wrapped in
FD_TO_PTR

It just retrieves the fd via PTR_TO_FD and closes it
src/basic/fd-util.h
src/network/netdev/tuntap.c