popen bug, extension

Eric Blake ebb9@byu.net
Tue Aug 18 16:18:00 GMT 2009


-----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-----



More information about the Newlib mailing list