Errno is an integer variable defined in errnoh that is set b
Solution
Find the answer below:
========================================================================
fork system call errors:
EAGAIN: Resorce temporarily unavailable. A system-imposed limit on the number of threads was encountered.
ENOMEM fork(): failed to allocate the necessary kernel structures because memory is tight.
ENOMEM: An attempt was made to create a child process in a PID namespace whose \"init\" process has terminated.
ENOSYS fork(): It is not supported on this platform (for example,hardware without a Memory-Management Unit).
ERESTARTNOINTR: System call was interrupted by a signal and will be restarted. (This can be seen only during a trace.)
File I/O errors:
EBADF:           Bad file descriptor
 EBADFD:         File descriptor in bad state
 EEXIST:           File exists
 EFBIG:             File too large
 EISNAM:          Is a named type file
 EMFILE:           Too many open files commonly caused by exceeding the RLIMIT_NOFILE resource limit.
 ENAMETOOLONG:    Filename too long
 ENFILE:          Too many open files in system on Linux,this is probably a result of encountering the limit
 ENOENT:         No such file or directory ,Typically this error results when a specified pathname does not exist, or    one of the components in the directory prefix of a pathname does not exist, or the specified              pathname is a dangling symbolic link.
 EROFS:           Read-only filesystem
 ESTALE:          Stale file handle
 ETXTBSY:        Text file busy

