www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/08/27/02:14:10

Date: Sun, 27 Aug 1995 07:29:15 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: apostolo AT platon DOT ee DOT duth DOT gr
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: HELP!

On Fri, 25 Aug 1995 apostolo AT platon wrote:

>         if (pipe(std_in) != 0 || pipe(std_out) != 0) {
>             perror("pipe");
>             return 1;
>         }
> 
> The error message:
> 
> pipe: Unknown error 32
> 
> If you can help me, please drop me a message to: apostolo AT platon DOT ee DOT duth DOT gr
> Thanks in advance for any help!
> 
> PS The include files of djgpp have definitions for pipe, fork, and wait. 

That's the problem with blindly compiling Unix-born programs in DJGPP: 
they compile without a warning, then fail at runtime.  Some Unix calls 
cannot be easily implemented under DOS (some of them cannot be 
implemented at all), and so DJGPP has them as stubs which just fail.  
pipe() is one of these.  You should replace it with popen()/pclose() 
paradigm, or write your own code which redirects stdin/stdout and invokes 
a subsidiary program via spawn().

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019