In python code. When you see a negative in front of a Error Flag, what does it mean?
return -errno.EACCES
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.
That’s a C style error return. A practice that is popular is to return a meaningful non-negative result of the function on success or a negative error code on failure.
In this case, the error EACCES means that permision was denied.
(See also this question)