From: "Tarjei T. Jensen" <tarjei@online.no>
Subject: Re: Buffered I/O with GNAT on Linux
Date: 1998/06/15
Date: 1998-06-15T00:00:00+00:00 [thread overview]
Message-ID: <35855C71.1700@online.no> (raw)
In-Reply-To: 35843B43.3EF8937D@cl.cam.ac.uk
Markus Kuhn wrote:
>
> I tried several things along the lines of
>
> ----------------------------------------------------------------------
> with Ada.Text_IO; use Ada.Text_IO;
> with System; use System;
> with Interfaces.C_Streams; use Interfaces.C_Streams;
> with Ada.Text_IO.C_Streams; use Ada.Text_IO.C_Streams;
>
> procedure Strange is
> begin
> if setvbuf(C_Stream(Current_Output), Null_Address, IOFBF, 8092) /= 0 then
> Put_Line("setvbuf failed");
> end if;
> for X in 1..10 loop
> Put("Hello ");
> end loop;
> New_Line;
> end Strange;
> ----------------------------------------------------------------------
>
> but with no success. I still can't get buffered output.
I belive there is supposed to be a Ada level procedure that turns on
buffering. Whether it works or not I cannot tell you.
Greetings,
--
// Tarjei T. Jensen
// tarjei@online.no || voice +47 51 62 85 58
// Support you local rescue centre: GET LOST!
next prev parent reply other threads:[~1998-06-15 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-14 0:00 Buffered I/O with GNAT on Linux Markus Kuhn
1998-06-14 0:00 ` Robert Dewar
1998-06-14 0:00 ` ak
1998-06-14 0:00 ` Markus Kuhn
1998-06-15 0:00 ` Tarjei T. Jensen [this message]
1998-06-15 0:00 ` Tarjei T. Jensen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox