popen.3 (68575) | popen.3 (68854) |
---|---|
1.\" Copyright (c) 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)popen.3 8.2 (Berkeley) 5/3/95 | 1.\" Copyright (c) 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)popen.3 8.2 (Berkeley) 5/3/95 |
33.\" $FreeBSD: head/lib/libc/gen/popen.3 68575 2000-11-10 17:46:15Z ru $ | 33.\" $FreeBSD: head/lib/libc/gen/popen.3 68854 2000-11-17 11:44:16Z ru $ |
34.\" 35.Dd May 3, 1995 36.Dt POPEN 3 37.Os 38.Sh NAME 39.Nm popen , 40.Nm pclose 41.Nd process --- 76 unchanged lines hidden (view full) --- 118streams are fully buffered by default. 119.Pp 120The 121.Fn pclose 122function waits for the associated process to terminate 123and returns the exit status of the command 124as returned by 125.Fn wait4 . | 34.\" 35.Dd May 3, 1995 36.Dt POPEN 3 37.Os 38.Sh NAME 39.Nm popen , 40.Nm pclose 41.Nd process --- 76 unchanged lines hidden (view full) --- 118streams are fully buffered by default. 119.Pp 120The 121.Fn pclose 122function waits for the associated process to terminate 123and returns the exit status of the command 124as returned by 125.Fn wait4 . |
126.Sh RETURN VALUE | 126.Sh RETURN VALUES |
127The 128.Fn popen 129function returns 130.Dv NULL 131if the 132.Xr fork 2 133or 134.Xr pipe 2 --- 67 unchanged lines hidden --- | 127The 128.Fn popen 129function returns 130.Dv NULL 131if the 132.Xr fork 2 133or 134.Xr pipe 2 --- 67 unchanged lines hidden --- |