OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man3 / errno.3
index b228215..ed053f8 100644 (file)
@@ -28,7 +28,7 @@
 .\" 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
@@ -51,7 +51,9 @@ a function that succeeds
 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.,
@@ -66,10 +68,15 @@ may have occurred, checking to see if
 .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
@@ -267,7 +274,11 @@ Too many levels of symbolic links (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)
@@ -426,7 +437,7 @@ Remote I/O error
 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
@@ -444,7 +455,7 @@ No such process (POSIX.1)
 .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
@@ -528,7 +539,17 @@ However, on (very) old UNIX systems, there may be no
 .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/.