Unbuffered pipe(2)'s?

Tom Christiansen tchrist at convex.COM
Fri Feb 8 08:10:21 AEST 1991


>From the keyboard of gavin at krypton.asd.sgi.com (Gavin Bell):
:Is there any way to turn off the PIPE_MAX-long buffer used for pipes?
:I need simple unbuffered, one-way communication.
:
:Details on what I'm trying to do:
:
:Essentially, I have the following situation:
:
:filter1 < file_of_data | filter2

If you have the code for filter1, just unbuffer stdout, or fflush it at
will.  If you don't, there's little you can do, as the buffering is
occurring in the stdio library contained in the program.  Unbelievably
grody hacks mucking with the FILE struct using some binary patch not
withstanding, nor suggested.

--tom
--
 "All things are possible, but not all expedient."  (in life, UNIX, and perl)



More information about the Comp.unix.wizards mailing list