So this is the scenario that I'm looking at:
I have 3 libraries - A, B and C.
foo()
and exposes it as an API.foo()
calls the POSIX write()
call to write some data.write()
glibc call using the linker -wrap option.Any write()
call that the library C makes will get intercepted by the wrapper
library B. But, my question is, if library C calls foo()
, will the write()
call inside foo() get intercepted by B?
If A
is linked with -wrap=write
, foo
will call the wrapper. If it's not, it won't.
The same is true about calls to write
in C
. There's no difference whatsoever between A
and C
as far as calling write
is concerned.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With