Hi Everyone
For purposes of getting information about system calls, I need to retrieve the information saved on the registers (eax, ebx, ...etc).
I found about this library: user.h. I included it in my code, but now I'm not sure how to retrieve the information I need.
I heard about invoking these variables: ORIG_EAX, ORIG_EBX... and then use them as any numerical variable.
. But its not working, since the compiler doesn't recognize them. I don't know if its that I'm including it wrong. I tried #include <linux/user.h> and #include <sys/user.h> but didn't work.
ANy idea??'
THANKS A LOT FOR THE HELP
For purposes of getting information about system calls, I need to retrieve the information saved on the registers (eax, ebx, ...etc).
I found about this library: user.h. I included it in my code, but now I'm not sure how to retrieve the information I need.
I heard about invoking these variables: ORIG_EAX, ORIG_EBX... and then use them as any numerical variable.
. But its not working, since the compiler doesn't recognize them. I don't know if its that I'm including it wrong. I tried #include <linux/user.h> and #include <sys/user.h> but didn't work.
ANy idea??'
THANKS A LOT FOR THE HELP