This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Unable to fdopen() a pipe handle
- To: <gnu-win32 at cygnus dot com>
- Subject: Unable to fdopen() a pipe handle
- From: Craig Setera <setera at us dot ibm dot com>
- Date: Mon, 13 Jul 1998 08:55:41 -0400
I've got a chunk of code that create an anonymous pipe using pipe() and then
attempts to create a write stream on the pipe using fdopen() (something like
this... from memory... not necessarily correct):
int mypipe[2];
FILE *mystream;
pipe(mypipe);
mystream = fdopen(mypipe[1], "w");
I can't seem to get fdopen() to return anything other than NULL. Any thoughts?
Craig
Craig Setera
AS/400 Enterprise Java Development
IBM Rochester
setera@us.ibm.com
(507) 253-3387 - Tie: 553-3387
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".