System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

return codes and their meanings

 
Jacques Carriere
Regular Advisor

return codes and their meanings

Do anyone know where I can get a description for return codes such as
rc=127
rc=26
rc=27
rc=22
rc=139
rc-21
etc,...
thanks,

Jacques
7 REPLIES
T G Manikandan
Honored Contributor

Re: return codes and their meanings

/usr/include/sys/errno.h
Ganesan R
Honored Contributor

Re: return codes and their meanings

Hi Jacques,

Refer this thread. James has explained here.

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=86561
Best wishes,

Ganesh.
Jacques Carriere
Regular Advisor

Re: return codes and their meanings

TG,

How do I get the explanation for each code?

Jacques

Re: return codes and their meanings

errno.h maps the error numbers to their defined names

man errno

will give you a brief description of what that defined name means.

Be aware that these are *system* error numbers which are pretty consistently returned by system calls. There's nothing anywhere that states that anything thats not a system call has to stick tyo these return codes. Applications and scripts can pretty much return whatever error number they like, and you have to check the documentation for each to know. The only standard I know of is the "de-facto" strandard that 0 = success and non-zero = failure.

HTH

Duncan

HTH

Duncan

Re: return codes and their meanings

>Duncan: The only standard I know of is the "de-facto" standard that 0 = success and non-zero = failure.

Right. But 139 means the process terminated with signal 11 (139-128).
Jacques Carriere
Regular Advisor

Re: return codes and their meanings

I just discovered that I can use the command

grep "rc code" /usr/include/sys/errno.h such as grep 12 /usr/include/sys/errno.h
#define ENOMEM 12 /* Not enough core */



Jacques Carriere
Regular Advisor

Re: return codes and their meanings

merci beaucoup!

Jacques