1843969 Members
2143 Online
110226 Solutions
New Discussion

unix error list

 
SOLVED
Go to solution
NICOLAS pascal
Occasional Contributor

unix error list

Hi,
Is there a way to know all unix error codes and what they means.

thx
3 REPLIES 3
Stefan Farrelly
Honored Contributor
Solution

Re: unix error list


Take a look at the file;

/usr/include/sys/errno.h

All the important unix error codes listed with a small description of each.
Im from Palmerston North, New Zealand, but somehow ended up in London...
NICOLAS pascal
Occasional Contributor

Re: unix error list

thanks a lot
Frank Slootweg
Honored Contributor

Re: unix error list

Also have a look at the errno(2) manual page and the "ERRORS" section of the relevant system call manual page.

I.e. when you see an errno *number*, you use /usr/include/sys/errno.h to convert the number to the mnemonic name.

Then, in a general case, look up the mnemonic name in the errno(2) manual page.

If, besides the error number/name, also the relevant system call (for example "write") is mentioned, then you can look up the specific meaning for that system call in the "ERRORS" section of it's manual page, i.e. "man 2 system_call" (for example "man 2 write").