]> git.ipfire.org Git - thirdparty/squid.git/commit
comm/libminimal.la to facilitate helper use of convenience libs (#1009)
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 3 Apr 2022 04:18:54 +0000 (04:18 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 4 Apr 2022 19:01:00 +0000 (19:01 +0000)
commit6bc04e73a9cfd0cd63722ff8eac5e5b531fd6352
treeb1bbfd668ed207ecbdee3bbbe16cfbd6a2de8a3a
parent43675e556c6a3b45921a7e8a3ae015c7830576dd
comm/libminimal.la to facilitate helper use of convenience libs (#1009)

Helpers may not (want to) use fd_open() and fd_close() directly, but
they (want to) use libdebug which does use fd_open() and fd_close().

Currently, the Comm "importing" fd_open() and Comm "delisting"
fd_close() APIs are not implemented inside src/comm/ but they do belong
to the Comm module and use its internals. Moving fd.h to src/comm/ will
require a lot of noisy out-of-scope changes deserving a dedicated PR.

Despite their names, the minimally-implemented functions do not open(2)
and close(2) file descriptors in their full implementations either: That
full implementation just updates fd-associated Squid-specific metadata
that Squid helpers do not need/use.

Do not use stub_fd.cc in the deployed/non-test pinger program.

Avoid build-breaking copying of stub_fd.cc source file in test-suite/.
src/comm/Makefile.am
src/comm/minimal.cc [new file with mode: 0644]
src/icmp/Makefile.am
test-suite/Makefile.am