.\" Copyright (c) 1996 Andries Brouwer (aeb@cwi.nl)
.\"
+.\" %%%LICENSE_START(GPLv2+_DOC_FULL)
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
-.\" License along with this manual; if not, write to the Free
-.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
-.\" USA.
+.\" License along with this manual; if not, see
+.\" <http://www.gnu.org/licenses/>.
+.\" %%%LICENSE_END
.\"
.\" 5 Oct 2002, Modified by Michael Kerrisk <mtk.manpages@gmail.com>
.\" Updated for POSIX.1 2001
.\" 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
.IR <errno.h> .
.BR "Do not do this" .
It will not work with modern versions of the C library.
-However, on (very) old Unix systems, there may be no
+However, on (very) old UNIX systems, there may be no
.I <errno.h>
and the declaration is needed.
-.SH "SEE ALSO"
+.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/.