swrap: wrap __close_nocancel() if available
authorStefan Metzmacher <metze@samba.org>
Wed, 17 Feb 2021 09:58:29 +0000 (10:58 +0100)
committerAndreas Schneider <asn@samba.org>
Mon, 15 Mar 2021 07:04:58 +0000 (08:04 +0100)
commit181a3fa5e4c242d72d311f5baa771c680647eda7
tree3d2200b8d94d3510c5b7d6cc1ca5caa72be59c6d
parentba970e5d32cceb0750eaa71fb83da3e2eef881d5
swrap: wrap __close_nocancel() if available

While it's no possible to inject swrap__close_nocancel() into
libc.so.6 directly, because it's no weak symbol, it seems to
be possible to inject it to other glibc libraries like
libpthread.so.0, which is better than nothing.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14640

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
ConfigureChecks.cmake
config.h.cmake
src/socket_wrapper.c
tests/test_tcp_dup2.c