This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: popen bug, extension
- From: Eric Blake <ebb9 at byu dot net>
- To: newlib at sources dot redhat dot com
- Date: Tue, 18 Aug 2009 09:57:34 -0600
- Subject: Re: popen bug, extension
- References: <4A8ACB99.7050508@byu.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Eric Blake on 8/18/2009 9:41 AM:
> +RETURNS
> +<<popen>> returns a file stream opened with the specified <[mode]>,
> +or <<NULL>> if a child process could not be created. <<pclose>>
> +returns 0 if the stream is successfully closed, or -1 if the stream
> +was not created by <<popen>>.
> +
Correction to this paragraph:
<<popen>> returns a file stream opened with the specified <[mode]>,
or <<NULL>> if a child process could not be created. <<pclose>>
returns -1 if the stream was not created by <<popen>> or if the
application used <<wait>> or similar to steal the status; otherwise
it returns the exit status of the child which can be interpreted
in the same manner as a status obtained by <<waitpid>>.
- --
Don't work too hard, make some time for fun as well!
Eric Blake ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkqKz24ACgkQ84KuGfSFAYBKQgCeMsc5Wvs+gHsfqDeLWxDUSDRL
H64AoJQMP7aAqRtspj18WQ/YesjSVFTO
=d/GX
-----END PGP SIGNATURE-----