2 Replies Latest reply on Mar 21, 2014 2:13 PM by GlenG

    Altering syscall return value




      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.