From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c696,9bedf54b4be9359b X-Google-Attributes: gid10c696,public X-Google-Thread: 103376,9bedf54b4be9359b X-Google-Attributes: gid103376,public From: "Tarjei T. Jensen" Subject: Re: Buffered I/O with GNAT on Linux Date: 1998/06/15 Message-ID: <35856127.2687@online.no>#1/1 X-Deja-AN: 363091725 Content-Transfer-Encoding: 7bit References: <3583B587.2DB4EDBC@cl.cam.ac.uk> <35843B43.3EF8937D@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Jensen programvareutvikling Newsgroups: comp.lang.ada,comp.os.linux.development.apps Date: 1998-06-15T00:00:00+00:00 List-Id: 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!