errno.00 is:success errno.01 is:operation not permitted errno.02 is:no such file or directory errno.03 is:no such proc ESS errno.04 is:interrupted system call errno.05 is:input/output error errno.06 is:no such device or address errno.07 I
S:argument
When there is an exception to the C API function in Linux, generally will errno variable (need include errno.h) to assign an integer value, different values to represent different meanings, you can see the value of the reason for the error, in the
Ifndef _i386_errno_h#define _i386_errno_h#define EPERM 1/* Operation not permitted * *#define ENOENT 2/* No such file or directory */#define ESRCH 3/* No such process * *#define EINTR 4/* Interrupted system call * *#define EIO 5 */I/O error *
Transferred from: http://baike.baidu.com/link?url=uX-q7K-TTL-5AFNT-hjhAP6fvgAwvsNkIMqJqJ3GEspYgtQXsovEEzpqmQ3ZmAgql2uG3LluUetAp8uKTm3z5qErrno is the last error code for the recording system. The code is a value of type int, defined in
errno defined in , the error Exx macro is defined in the Errno-base.h and errno.h under the/usr/include/asm-generic folder, respectively, defining the 1-34, 35-132 error definitions.The strerror () function returns an error description string based
Errno is in defined in, the macro of the error Exx is defined in the errno-base.h and errno under the/usr/include/asm-generic folder. h. Definitions of errors 1-34 and 35-132 are defined respectively.
The strerror () function returns the error
/usr/include/asm-generic/errno-base.h
/usr/include/asm-generic/errno.h
You can obtain an error description using the following procedure:
Strerror (errno): Get errno corresponding error
/**************************** Get error code description ****
Errno. H --
Query
Checking the error code errno is an important way to debug the program. When the linuc c api function is abnormal, The errno variable (including
Errno. h) assign an integer. Different values indicate different meanings. You can
The strerror () function returns the error description String Based on the errno value. The following program prints the comparison table:
Code highlighting produced by Actipro CodeHighlighter (freeware)Http://www.CodeHighlighter.com/
-> 01. #
errno defined in , the error Exx macros are defined in the errno-base.h and errno.h below the/usr/include/asm-generic folder, respectively, defining the 1-34, 35-132 error definition.
The strerror () function returns an error description string
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.