Hi guys,
I need to intercept some system calls, and then wrap the results into my
bigger lazarus application. I have a skeleton C library that can
intercept the functions (using LD_PRELOAD). This code is very incomplete
however.
So now I have two choices
1) I write the missing parts in C, and then let my app merely handle output
2) I rewrite the C library as a lazarus library, and then build that.
I would prefer the latter, but before I go to all that trouble, I felt
it is worth checking if lazarus libraries will even WORK with LD_PRELOAD
(I can't imagine they won't but it's worth checking). The functions in
question are part of glibc socket handling. Very similar (though I doubt
identical) to some of the things in the fpc sockets unit - the c-library
only imports the socket.h header, is this the same as the fpc sockets unit ?
Ciao
A.J.
--
"Any sufficiently advanced technology is indistinguishable from magic" -
Clarke's law
"Any technology that is distinguishable from magic is insufficiently
advanced" -Gehm's corollary
"Any technologist that is distinguishable from a magician is
insufficiently advanced" - My corollary
The worlds worst webcomic: http://silentcoder.co.za/scartoonz
The worlds best cybercafe manager: http://outkafe.outkastsolutions.co.za
begin:vcard
fn:AJ Venter
n:Venter;AJ
org:Global Pact Trading Pty. Ltd.;OutKast Solutions
email;internet:[EMAIL PROTECTED]
title:Director of Product Development
tel;work:+27 21 554 5059
tel;fax:+27 21 413 2800
tel;cell:+27 83 455 9978
url:http://www.outkastsolutions.co.za
version:2.1
end:vcard