Introduction:
Header file errno. h defines a Global Macro errno, Which is expanded into an int type "Left value", which means that the macro errno is not necessarily an object identifier, it can also be expanded into a "Left value" that can be
There are three types of error reporting usages in the C language standard library.1, errnoerrno is defined in the header file as follows
#ifndef errno
extern int errno;
#endif
An external variable errno an implementation-defined
Errno (Error Report) usage in C language, errno Error Report
There are three forms of error reporting in the C language standard library.
1,Errno
Errno is defined in the header file, as follows:
#ifndef errnoextern int errno;#endif
The external
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 *
errno is thread-safe under Linux 2011-06-20 11:34:54
Category: Linux in Linux or UNIX environments, errno is a very important part. When there is a problem with the called function, we can determine the cause of the error by errno value, which
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
In Linux or UNIX environments, errno is a very important part. When the called function encounters a problem, we can use the errno value to determine the cause of the Error. This will involve a problem, that is, how to ensure the security of errno
In Linux or UNIX environments, errno is a very important part. When there is a problem with the called function, we can determine the cause of the error by errno value, which involves a problem, that is, how to ensure that the errno in
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.