public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RE: Does Linux has File Stream mapping support...?
@ 2005-11-18 12:51 Arijit Das
  2005-11-18 12:59 ` Bas Westerbaan
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Arijit Das @ 2005-11-18 12:51 UTC (permalink / raw)
  To: 7eggert, linux-kernel

Ye...I know of tee.

But the issue here is I have a HUGE Compiler (an Simulation tool) in which thousands of places there are "printf" statements to print messages to STDOUT stream. Now, a requirement came up which needs all those messages thrown to STDOUT also to be logged in a LOGFILE (in addition to STDOUT). Yes, this can be done through tee...but the usage model of the compiler doesn't leave that possibility open for me. 

So, am looking for a solution inside the Compiler code.

Thanks,
Arijit

-----Original Message-----
From: Bodo Eggert [mailto:harvested.in.lkml@7eggert.dyndns.org] 
Sent: Friday, November 18, 2005 6:00 PM
To: Arijit Das; linux-kernel@vger.kernel.org
Subject: Re: Does Linux has File Stream mapping support...?

Arijit Das <Arijit.Das@synopsys.com> wrote:

> Is it possible to have File Stream Mapping in Linux? What I mean is
> this...
> 
> FILE * fp1 = fopen("/foo", "w");
> FILE * fp2 = fopen("/bar", "w");
> FILE * fp_common = <Stream_Mapping_Func>(fp1, fp2);
> 
> fprint(fp_common, "This should be written to both files ... /foo and
> /bar");

It's a userspace problem. man "tee".

Doing this in the kernel would be horrible.

-- 
Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF
verbreiteten Lügen zu sabotieren.

^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <5abPs-7Da-41@gated-at.bofh.it>]
* Does Linux has File Stream mapping support...?
@ 2005-11-18 10:38 Arijit Das
  2005-11-18 20:14 ` James Courtier-Dutton
  2005-11-19  4:27 ` Herbert Xu
  0 siblings, 2 replies; 12+ messages in thread
From: Arijit Das @ 2005-11-18 10:38 UTC (permalink / raw)
  To: linux-kernel

Is it possible to have File Stream Mapping in Linux? What I mean is
this...

FILE * fp1 = fopen("/foo", "w");
FILE * fp2 = fopen("/bar", "w");
FILE * fp_common = <Stream_Mapping_Func>(fp1, fp2);

fprint(fp_common, "This should be written to both files ... /foo and
/bar");

So, what I am looking for is anything written to "fp_common" should
actually be written to the streams fp1 and fp2.

Does Linux support this any way? Is there any way to achieve this...? Is
there anything like <Stream_Mapping_Func>(above) ...?

Do pardon me if you feel that it is a wrong Forum to ask this question
but I tried everywhere else and thought that implementers would best
know about it, if at all anything like that exists.

Thanks,
Arijit

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-11-21  9:19 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-18 12:51 Does Linux has File Stream mapping support...? Arijit Das
2005-11-18 12:59 ` Bas Westerbaan
2005-11-18 13:01   ` Bas Westerbaan
2005-11-18 14:28     ` Dick Streefland
2005-11-18 19:06 ` Bill Davidsen
2005-11-18 19:39 ` Lennart Sorensen
2005-11-21  9:18 ` Jim Nance
     [not found] <5abPs-7Da-41@gated-at.bofh.it>
2005-11-18 12:30 ` Bodo Eggert
  -- strict thread matches above, loose matches on Subject: below --
2005-11-18 10:38 Arijit Das
2005-11-18 20:14 ` James Courtier-Dutton
2005-11-18 20:41   ` linux-os (Dick Johnson)
2005-11-19  4:27 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox