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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b2077f5b728fb9af X-Google-Attributes: gid103376,public X-Google-Thread: 114c38,b2077f5b728fb9af X-Google-Attributes: gid114c38,public X-Google-ArrivalTime: 2001-04-10 17:07:22 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!209.50.235.254!europa.netcrusader.net!207.172.3.44!feed2.news.rcn.net!rcn!chnws02.mediaone.net!chnws06.ne.mediaone.net!24.91.0.34!typhoon.ne.mediaone.net.POSTED!not-for-mail From: "Jeff Creem" Newsgroups: comp.lang.ada,comp.os.vxworks References: <3ad31759$1@pull.gecm.com> Subject: Re: redirecting the standard output X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Wed, 11 Apr 2001 00:04:48 GMT NNTP-Posting-Host: 24.147.67.93 X-Complaints-To: abuse@mediaone.net X-Trace: typhoon.ne.mediaone.net 986947488 24.147.67.93 (Tue, 10 Apr 2001 20:04:48 EDT) NNTP-Posting-Date: Tue, 10 Apr 2001 20:04:48 EDT Organization: Road Runner Xref: supernews.google.com comp.lang.ada:6729 comp.os.vxworks:6394 Date: 2001-04-11T00:04:48+00:00 List-Id: Even if you some hope open the file (try just simple Out_File for the mode) you may run into problems. On older vxWorks at least, writes to a file descriptor tied to the null device always return an error status so my compiler was seeing that and raising an exception on all output. I ended up having to create a null device driver that always returned good status for writes. "Martin Dowie" wrote in message news:3ad31759$1@pull.gecm.com... > This time with a subject... :-) > > Target System: PowerPC, AdaMULTI v1.8.9b, VxWorks 5.4 > > How do I redirect the standard output? I'd like to redirect it to device > "/null" > > Attempts: > Open (DevNull, Append_File, "/null"); > Open (DevNull, "/null", "/null"); > > just cause Status_Error, i.e. the device is already "open". So how can > I then "Set_Output (DevNull);" without having the device object in > File_Type form?.. > > > > > > >