summaryrefslogtreecommitdiff
path: root/lib/libc/gen/popen.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/popen.3')
-rw-r--r--lib/libc/gen/popen.314
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/libc/gen/popen.3 b/lib/libc/gen/popen.3
index dfadbd7f8c8..ba1b8cfc47f 100644
--- a/lib/libc/gen/popen.3
+++ b/lib/libc/gen/popen.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: popen.3,v 1.18 2014/01/19 10:39:00 schwarze Exp $
+.\" $OpenBSD: popen.3,v 1.19 2014/08/31 02:21:18 guenther Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: January 19 2014 $
+.Dd $Mdocdate: August 31 2014 $
.Dt POPEN 3
.Os
.Sh NAME
@@ -65,10 +65,20 @@ The
argument is a pointer to a NUL-terminated
string which must be either
.Qq r
+or
+.Qq re
for reading
or
.Qq w
+or
+.Qq we
for writing.
+If the letter
+.Qq e
+is present in the string then the close-on-exec flag shall be set on the
+file descriptor underlying the
+.Vt FILE
+that is returned.
.Pp
The return value from
.Fn popen