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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,7ae711c481a7059 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-08 08:55:18 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.cwix.com!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Can I treat Current_Output as a file of bytes? Date: 8 Nov 2002 09:55:16 -0600 Organization: LJK Software Message-ID: References: <20021104233454.2042ef78.bjorn_persson.spam-is-evil@sverige.nu> <20021108174023.69948170.bjorn_persson.spam-is-evil@sverige.nu> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1036774430 7600 192.135.80.34 (8 Nov 2002 16:53:50 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Fri, 8 Nov 2002 16:53:50 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:30596 Date: 2002-11-08T09:55:16-06:00 List-Id: In article <20021108174023.69948170.bjorn_persson.spam-is-evil@sverige.nu>, Bj�rn Persson writes: > On 7 Nov 2002 19:36:32 -0600 > Kilgallen@SpamCop.net (Larry Kilgallen) wrote: > >> On VMS you would just open a Sequential_IO file for output saying the >> name is SYS$OUTPUT. Isn't the same thing available on other operating >> systmes ? > > Not that I know of. That would require a special filename meaning "the file or pipe or whatever that is currently associated with the standard output stream". Is that what SYS$OUTPUT is in VMS? Yes, that is what SYS$OUTPUT is. By default it is a process-permanent file so successive programs writing to SYS$OUTPUT all write to the same version of the file (if it is on disk) rather than each creating a new versions. Of course versioning is irrelevant if the output is a terminal, although it does matter if the output is to an ANSI magtape. > I tried using Ada.Text_IO.Name on the standard files and got "*stdi", *stdou" and "*stder" regardless of whether they were redirected or not. Open(file, Out_File, "*stder") tried to open a disk file with that name. To what operating system do those results apply ?