override getrusage system call

  • Follow


I know there is a way to replacve the getrusage system call with your
own code using LD_PRELOAD and a .so file that mimicks the call.  What
I am wondering is if there is a way to intercept the system call to
getrusage which my own call but inside my call I want to call the real
getrusage syscall, manipulate the results, and return that back to the
calling program.  Is there any way to do this?  The problem I am
having right now is how to get my program to call the real getrusage
after I've modified LD_PRELOAD.

Thanks,

John
0
Reply nytimesjdarrah (16) 12/1/2004 9:20:20 PM


0 Replies
43 Views

(page loaded in 0.081 seconds)


Reply: