[kwlug-disc] (question) Loading/unloading C functions at runtime
jvj at golden.net
jvj at golden.net
Tue Nov 22 16:11:31 EST 2011
It's been a while - but I would suggest reading up on C code with
function pointers.
Consider:
a) a table/array of function pointers to selected functions (aka
addresses)
b) code that jumps to an address in the table based on an index
determined by some other criteria
c) returns could be problematic
d) Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end.
JohnJ
On Tue, 22 Nov 2011 11:03:06 -0500 (EST), John Van Ostrand
<john at netdirect.ca> wrote:
> ----- Original Message -----
>> Hi All, just a question...
>>
>> Do you know any C application where you load and unload C functions
>> at runtime? The only thing that comes to my mind is Bash shell,
>> where
>> you can load/unload builtin functions (within *.so file) written by
>> user.
>> I'm interested in looking at other applications and see how they do
>> it.
>
> I only know ones that load, namely asterisk, php, apache. I wonder if
> OpenOffice or Firefox count with their plugins and extensions.
>
> --
> John Van Ostrand
> CTO, co-CEO
> Net Direct Inc.
> 564 Weber St. N. Unit 12, Waterloo, ON N2L 5C6
> Ph: 866-883-1172 x5102
> Fx: 519-883-8533
>
> Linux Solutions / IBM Hardware
>
>
> _______________________________________________
> kwlug-disc mailing list
> kwlug-disc at kwlug.org
> http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
More information about the kwlug-disc
mailing list