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,bdeae27ce2508af5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-12 18:13:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Retrieve CD-R TOC Date: 12 Jul 2002 19:58:13 -0600 Organization: LJK Software Message-ID: References: NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1026521579 8492 192.135.80.34 (13 Jul 2002 00:52:59 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Sat, 13 Jul 2002 00:52:59 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:27038 Date: 2002-07-12T19:58:13-06:00 List-Id: In article , Filoux@orange.fr (Filoux) writes: > Hello!! > > I'd like to know if it's possible to retrieve the table of content > (TOC) of a CD with ADA. I'm currently running linux and I need to get > some information (like cd content, size of files, etc...). I don't > want to do it by executing a system call like (du -ah) but I'd like to > do it by accessing the TOC of the CD (or DVD). The method for doing this depends entirely on the format in which the CDROM is written. HFS, ISO9660, etc. all have different data formats on disc. If you want to write an Ada program to read a particular format, you need to get a copy of the specification for that format. I am very familiar with ISO9660 and is non-trivial to get it right, particularly if you want the RockRidge extensions for Posix to be supported. You would almost certainly be better off if you could find a Linux OS call to do it for you rather than writing it yourself in Ada (or any other language). This is despite the fact that there are certain areas in which Linux does not handle the entire ISO9660 specification.