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,bc1361a952ec75ca X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-07 12:41:43 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "David Starner" Newsgroups: comp.lang.ada Subject: Re: How Ada could have prevented the Red Code distributed denial of service attack. Date: Tue, 7 Aug 2001 19:36:19 +0100 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <3b690498.1111845720@news.worldonline.nl> <9kbu15$9bj@augusta.math.psu.edu> <9kbvsr$a02@augusta.math.psu.edu> <3B69DB35.4412459E@home.com> <3B6F312F.DA4E178E@home.com> <9kpa4f$j2n$1@nh.pace.co.uk> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:11518 Date: 2001-08-07T19:36:19+01:00 List-Id: "Marin David Condic" wrote in message news:9kpa4f$j2n$1@nh.pace.co.uk... > Where would you put a package to get directory info? It would have to be an > annex since Ada doesn't necessarily target to systems that have directories > of any sort. And given a wide range of platforms that Ada runs on, could it > be designed to be portable? Or would it be better to have something like the > package Interfaces - only for operating systems? (Interfaces.Unix, > Interfaces.Windows, Interfaces.VMS?) I think GNAT.Directory_Ops is portable to all the systems GNAT is, which includes those three. For a basic directory operations package, you need function Is_Directory (File : Filename) return Boolean and procedure Directory_List (Directory : in Filename; Directory_List : Filename_List). It seems that anything with directories is going to work with that, and it's a usable mix. (It would work for music123, a program of mine that uses GNAT.Directory_Ops.) -- David Starner - dstarner98@aasaa.ofe.org "The pig -- belongs -- to _all_ mankind!" - Invader Zim