Error Functions

Header file

Error Condition - errno

Error String - strerror

Print Error String - perror

List of Common Error Constants

EPERM
Operation not permitted
ENOENT
No such file or directory
ESRCH
No such process
EINTR
Interrupted system call
EIO
I/O error
ENXIO
No such device or address
E2BIG
Argument list too long
ENOEXEC
Exec format error
EBADF
Bad file descriptor
ECHILD
No child processes
ENOMEM
Not enough core
EACCES
Permission denied
EFAULT
Bad address
ENOTBLK
Block device required
EBUSY
Resource busy
EEXIST
File exists
EXDEV
Cross-device link
ENODEV
No such device
ENOTDIR
Not a directory
EISDIR
Is a directory
EINVAL
Invalid argument
ENFILE
Too many open files in system
EMFILE
Too many open files
ENOTTY
Inappropriate I/O control operation
ETXTBSY
Text file busy
EFBIG
File too large
ENOSPC
No space left on device
ESPIPE
Illegal seek
EROFS
Read-only file system
EMLINK
Too many links
EPIPE
Broken pipe
EDOM
Numerical argument out of domain
ERANGE
Result too large
ENOMSG
No message of desired type
EIDRM
Identifier removed
ECHRNG
Channel number out of range
ELNRNG
Link number out of range
EUNATCH
Protocol driver not attached
Previous, Next, Index