summaryrefslogtreecommitdiff
path: root/man3/closedir.3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2004-12-20 12:24:06 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2004-12-20 12:24:06 +0000
commitcca657e227e652b69f746c4287887de3939aaf74 (patch)
treec6542d7e303edd80b1f5a7dca586f3fd9e695102 /man3/closedir.3
parent0c00f46ce74c1c00f022a82e03999188effb654e (diff)
triggered by http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=283179
The wording describing how errno is set was tidied up in a number of pages.
Diffstat (limited to 'man3/closedir.3')
-rw-r--r--man3/closedir.35
1 files changed, 4 insertions, 1 deletions
diff --git a/man3/closedir.3 b/man3/closedir.3
index dba5abbfc..0a191ed36 100644
--- a/man3/closedir.3
+++ b/man3/closedir.3
@@ -42,7 +42,10 @@ The \fBclosedir()\fP function closes the directory stream associated with
\fIdir\fP. The directory stream descriptor \fIdir\fP is not available
after this call.
.SH "RETURN VALUE"
-The \fBclosedir()\fP function returns 0 on success or \-1 on failure.
+The \fBclosedir()\fP function returns 0 on success.
+On error, \-1 is returned, and
+.I errno
+is set appropriately.
.SH ERRORS
.TP
.B EBADF