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 13:14:34 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!chcgil2-snf1.gtei.net!news.gtei.net!news.binc.net!kilgallen From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: How Ada could have prevented the Red Code distributed denial of service attack. Date: 7 Aug 2001 16:14:32 -0500 Organization: LJK Software 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> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 997214810 11938 192.135.80.34 (7 Aug 2001 20:06:50 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Tue, 7 Aug 2001 20:06:50 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:11522 Date: 2001-08-07T16:14:32-05:00 List-Id: In article , "David Starner" writes: > "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.) On VMS those two subprograms would not seem to offer control of whether one wants all versions or just the latest version of a file.