in reply to Interpose system call 'open' using LD_PRELOAD does not work for 'open' called from within perl programs. Why?

Update: Figured it out. You need to intercept open64, not open.

Previously I wrote:

This is interesting. I can intercept other functions like getpid and close, but there's something different about open.

I'd ask the perl5-porters mailing list - I'm sure someone there would know what's going on.

  • Comment on Re: Interpose system call 'open' using LD_PRELOAD does not work for 'open' called from within perl programs. Why?
  • Select or Download Code