help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System file-descriptors of pipe file-ids?


From: Muthiah Annamalai
Subject: Re: System file-descriptors of pipe file-ids?
Date: Fri, 22 Jun 2007 10:52:56 -0500

On 6/22/07, Olaf Till <address@hidden> wrote:
Hi,

I want to make a select() call on pipes created with Octaves
interpreted pipe() function. So I need the systems file-descriptors of
these pipes.

As I had to learn it seems to be difficult to get file-descriptors of
c++ streams.

But pipes probably have been created with a system call, so their
file-descriptors must get available somewhere inside Octave, before
they are used to create the streams for the pipe.

Are the pipes file-descriptors recorded and is their a way to access
them, given the stream-ids returned by the interpreted pipe() command?

Olaf

I remember having to use the file descriptors from within Octave and
to subtract 1 from the returned value for some reason, after serious
'strace'-ing
on the program. Im not sure I have bits of that code sticking around.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]