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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getsockopt and truss output

Status
Not open for further replies.

achit

Technical User
May 23, 2003
8
GB
Hello,

I know the fact that the function setsockopt accepts five variables...
setsockopt(int s, int level, int optname, const void *optval, int optlen)

But when I use truss command, the output always includes an additional value like...
setsockopt(4, 65535, 8192, 0xFFBEE738, 4, 114)

Has anyone got any clue what the last value is? Where is it from?

It seems to be that when I get the last value as a negative number, I've got the problem with 100% CPU.

getsockopt(4, 65535, 8192, 0xFFBEDC20, 0xFFBEDC1C, -4301840) = 0
setsockopt(4, 65535, 8192, 0xFFBEDC20, 4, -4301840) = 0

Thanks in advance for all comments
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top