.\" 2006-02-09 Kurt Wall, mtk
.\" Added non-POSIX errors
.\"
-.TH ERRNO 3 2008-07-09 "" "Linux Programmer's Manual"
+.TH ERRNO 3 2015-01-22 "" "Linux Programmer's Manual"
.SH NAME
errno \- number of last error
.SH SYNOPSIS
allowed to change
.IR errno .
-Valid error numbers are all nonzero; \fIerrno\fP is never set to zero
+Valid error numbers are all nonzero;
+.I errno
+is never set to zero
by any system call or library function.
For some system calls and library functions (e.g.,
.I errno
has a nonzero value.
-\fIerrno\fP is defined by the ISO C standard to be a modifiable lvalue
-of type \fIint\fP, and must not be explicitly declared; \fIerrno\fP
+.I errno
+is defined by the ISO C standard to be a modifiable lvalue
+of type
+.IR int ,
+and must not be explicitly declared;
+.I errno
may be a macro.
-\fIerrno\fP is thread-local; setting it in one thread
+.I errno
+is thread-local; setting it in one thread
does not affect its value in any other thread.
All the error names specified by POSIX.1
Wrong medium type
.TP
.B EMFILE
-Too many open files (POSIX.1)
+Too many open files (POSIX.1);
+commonly caused by exceeding the
+.BR RLIMIT_NOFILE
+resource limit described in
+.BR getrlimit (2)
.TP
.B EMLINK
Too many links (POSIX.1)
Interrupted system call should be restarted
.TP
.B EROFS
-Read-only file system (POSIX.1)
+Read-only filesystem (POSIX.1)
.TP
.B ESHUTDOWN
Cannot send after transport endpoint shutdown
.B ESTALE
Stale file handle (POSIX.1)
.sp
-This error can occur for NFS and for other file systems
+This error can occur for NFS and for other filesystems
.TP
.B ESTRPIPE
Streams pipe error
.I <errno.h>
and the declaration is needed.
.SH SEE ALSO
+.BR errno (1), \" In the moreutils package
.BR err (3),
.BR error (3),
.BR perror (3),
.BR strerror (3)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.