2 Replies Latest reply: Mar 21, 2014 9:13 AM by gleng RSS

    Altering syscall return value

    johnykex

      Hi,

       

      I recently start using DTrace and I have a question regarding it's capabilities.

      Is there a way to alter the return value of a system call.

      For example I would like to catch the return value of an 'open' syscall (done that) and change the returned file descriptor to one of my choice.