errno

  • Header files need to be include (#include <posix/errno.h>)

  • Define the meaning of the returned error value

[中文]

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.