[fpc-pascal] Pipe buffering, accessing C-style stdin/stdout

2007-04-03 Thread Ingemar Ragnemalm
Sorry for not replying "in thread", I get the list as digest so I can't "reply" properly. > > The problem with FPC is that I > > can't find any straightforward way to either get PFile-style > > stdin/stdout from the Text-style input/output (surely there is a > > connection?) > Yes. PFile _IS_

Re: [fpc-pascal] Pipe buffering, accessing C-style stdin/stdout

2007-04-01 Thread Michael Van Canneyt
On Sun, 1 Apr 2007, Ingemar Ragnemalm wrote: > > Dear list, > > I have been struggling for quite a while (that is weeks) to get proper pipe > communication with a sublaunched program, using TProcess or straight > pipe/fork/exec calls. This is under Mac OSX, but the problem should be similar >

Re: [fpc-pascal] Pipe buffering, accessing C-style stdin/stdout

2007-04-01 Thread Vincent Snijders
Marco van de Voort schreef: After a lot of googling and experimenting, I think I have managed to make it work, but only in C code, and I want it to run in Pascal. The key to make it work in C was to call setvbuf at the right time, to set the buffering mode for stdin/stdout. The problem with FPC

Re: [fpc-pascal] Pipe buffering, accessing C-style stdin/stdout

2007-04-01 Thread Marco van de Voort
> After a lot of googling and experimenting, I think I have managed to > make it work, but only in C code, and I want it to run in Pascal. The > key to make it work in C was to call setvbuf at the right time, to set > the buffering mode for stdin/stdout. The problem with FPC is that I > can't f

[fpc-pascal] Pipe buffering, accessing C-style stdin/stdout

2007-04-01 Thread Ingemar Ragnemalm
Dear list, I have been struggling for quite a while (that is weeks) to get proper pipe communication with a sublaunched program, using TProcess or straight pipe/fork/exec calls. This is under Mac OSX, but the problem should be similar under any Unix. The problem is the buffering. Using stdi