OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man3 / popen.3
index 3378543..6dcef28 100644 (file)
@@ -37,7 +37,7 @@
 .\" Modified Sat May 18 20:37:44 1996 by Martin Schulze (joey@linux.de)
 .\" Modified 7 May 1998 by Joseph S. Myers (jsm28@cam.ac.uk)
 .\"
-.TH POPEN 3  2010-02-03 "GNU" "Linux Programmer's Manual"
+.TH POPEN 3  2013-04-19 "GNU" "Linux Programmer's Manual"
 .SH NAME
 popen, pclose \- pipe stream to or from a process
 .SH SYNOPSIS
@@ -106,8 +106,8 @@ Writing to such a stream writes to the standard input of the command; the
 command's standard output is the same as that of the process that called
 .BR popen (),
 unless this is altered by the command itself.
-Conversely, reading from a
-"popened" stream reads the command's standard output, and the command's
+Conversely, reading from
+the stream reads the command's standard output, and the command's
 standard input is the same as that of the process that called
 .BR popen ().
 .PP
@@ -140,6 +140,9 @@ function returns \-1 if
 .\" already "pclose()d", or if
 .BR wait4 (2)
 returns an error, or some other error is detected.
+In the event of an error, these functions set
+.I errno
+to indicate the cause of the error.
 .SH ERRORS
 The
 .BR popen ()
@@ -205,3 +208,12 @@ The only hint is an exit status of 127.
 .BR fopen (3),
 .BR stdio (3),
 .BR system (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/.