diff -r 000000000000 -r 7d3c07f8acfb README --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README Thu Dec 23 00:46:07 2010 +0100 @@ -0,0 +1,21 @@ +This should demonstrate the use of LD_PRELOAD. + + hallo: uses virgin puts(3) and readdir(3) + myhallo: uses modified puts(3) and readdir(3) + +If you set the environment + + LD_PRELOAD=`pwd`/libmy.so.1.0.1 + +the "hallo" should use the modified versions of the above +funtions too. + +The modification is visibable, as puts(3) prints an +extra string before the real output, and readdir(3) skips +any directory entry starting with 'M'. + +No considerations done about race conditions and other nice things. +It is just an nice example… + +-- +Heiko Schlittermann