When calling execl(...), I get an errno=2. What does it mean? How can I know the meaning of this errno?
When calling execl(…) , I get an errno=2 . What does it mean? How
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
strerror()to get a human-readable string for the error number. This is the same string printed byperror()but it’s useful if you’re formatting the error message for something other than standard error output.For example:
Linux also supports the explicitly-threadsafe variant
strerror_r().