errno接口介绍
需要包含头文件#include <posix/errno.h>;
定义了posix接口的错误返回值
Header File
Macros
-
EPERM
Operation not permitted.
-
ENOENT
No such file or directory.
-
EBADF
Bad file descriptor.
-
EAGAIN
Resource unavailable, try again.
-
ENOMEM
Not enough space.
-
EEXIST
File exists.
-
EBUSY
Device or resource busy.
-
EINVAL
Invalid argument.
-
ENOSPC
No space left on device.
-
ERANGE
Result too large.
-
ENAMETOOLONG
File name too long.
-
EDEADLK
Resource deadlock would occur.
-
EOVERFLOW
Value too large to be stored in data type.
-
ENOSYS
Function not supported.
-
EMSGSIZE
Message too long.
-
ENOTSUP
Operation not supported.
-
ETIMEDOUT
Connection timed out.