Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

/sys/user.h Problem

Status
Not open for further replies.

klose86

Programmer
Aug 1, 2006
13
0
0
CR
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
 
Hello,

did you look in your sys/user.h file, if ORIG_EAX is there at all ??

I tried with two of my systems:
Nothing like that in HP-UX 11.23
In Suse Linux Enterprise Server 9 it is there, but:
1) It is called orig_eax in lowercase.
2) It is not a variable by itself, but part of a structure.
3) It is defined for 32-bit systems only.

hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top