Sunday 25 December 2011

detailed working of perror

detailed working of perror

can anyone please help me out to find out how perror actually works???
In my client.c program i am receiving one error
send: Bad file decriptor
this is printed by perror
as the errno variable is set to 9 which is EBADF
but i want to know from which file does perror seeks or maps this error??
Or more properly how does the kernel maintains the error logs from where the perror prints the latest error.
Please do reply as soon as possible.

No comments:

Post a Comment