Error Number.

errno is the global variable that holds the last thread-specific error code that was generated by the runtime library.

The following are the constants which are defined by the JCC library:

Constant Error message Number
ENOENT No such file or directory 2
EIO An IO error occured 5
EBADF Bad file number 9
ENOMEM Not enough memory 12
EACCES Permission denied 13
EEXIST File exists 17
ENOTDIR The path specified is a file 20
EISDIR The file specified is a directory 21
EINVAL Invalid argument 22
EMFILE Too many open files 24
ENOSPC No space left on device 28
ESPIPE Seek not available 29
EDOM Numerical argument out of domain 33
ERANGE Result too large 34
EAGAIN Resource temporarily unavailable 35
EWOULDBLOCK Operation would block 35
EINPROGRESS Operation now in progress 36
EALREADY Operation already in progress 37
ENOTSOCK Socket operation on non-socket 38
EDESTADDRREQ Destination address required 39
EMSGSIZE Message too long 40
EPROTOTYPE Protocol wrong type for socket 41
ENOPROTOOPT Protocol not available 42
EPROTONOSUPPORT Protocol not supported 43
ESOCKTNOSUPPORT Socket type not supported 44
EOPNOTSUPP Operation not supported 45
EPFNOSUPPORT Protocol family not supported 46
EAFNOSUPPORT Address family not supported by protocol family 47
EADDRINUSE Address already in use 48
EADDRNOTAVAIL Can't assign requested address 49
ENETDOWN Network is down 50
ENETUNREACH Network is unreachable 51
ENETRESET Network dropped connection on reset 52
ECONNABORTED Software caused connection abort 53
ECONNRESET Connection reset by peer 54
ENOBUFS No buffer space available 55
EISCONN Socket is already connected 56
ENOTCONN Socket is not connected 57
ESHUTDOWN Can't send after socket shutdown 58
ETOOMANYREFS Too many references: can't splice 59
ETIMEDOUT Operation timed out 60
ECONNREFUSED Connection refused 61
ELOOP Too many levels of symbolic links 62
ENAMETOOLONG File name too long 63
EHOSTDOWN Host is down 64
EHOSTUNREACH No route to host 65
ENOTEMPTY Directory not empty 66
EPROCLIM Too many processes 67
EUSERS Too many users 68
EDQUOT Disc quota exceeded 69
ESTALE Stale NFS file handle 70
EREMOTE Too many levels of remote in path 71