aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorArchie Cobbs <archie@FreeBSD.org>1999-05-17 23:47:27 +0000
committerArchie Cobbs <archie@FreeBSD.org>1999-05-17 23:47:27 +0000
commitf24c2153d56ecc6eb99327f2c96ed3e7c271b63d (patch)
tree7fa5f589c14427283e37392b28e48af73f7603e5 /lib/libc
parent6237d74098c76e96baf4f507f8b7a35664e548c6 (diff)
downloadsrc-f24c2153d56ecc6eb99327f2c96ed3e7c271b63d.tar.gz
src-f24c2153d56ecc6eb99327f2c96ed3e7c271b63d.zip
Add a note that when a stream opened via fdopen() is closed via fclose(),
the underlying file descriptor is also closed. To me at least this wasn't immediately obvious.
Notes
Notes: svn path=/head/; revision=47281
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdio/fopen.34
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/stdio/fopen.3 b/lib/libc/stdio/fopen.3
index f954d6c45aa8..a82da5ecf9ee 100644
--- a/lib/libc/stdio/fopen.3
+++ b/lib/libc/stdio/fopen.3
@@ -129,6 +129,10 @@ function associates a stream with the existing file descriptor,
The
.Fa mode
of the stream must be compatible with the mode of the file descriptor.
+When the stream is closed via
+.Xr fclose 3 ,
+.Fa fildes
+is closed also.
.Pp
The
.Fn freopen