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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,942b3184b8c0c422 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Platform portable support of heir. file systems Date: 1996/12/19 Message-ID: #1/1 X-Deja-AN: 204902782 references: <01bbec7f$453edcd0$24af1486@pc-phw> organization: New York University newsgroups: comp.lang.ada Date: 1996-12-19T00:00:00+00:00 List-Id: Paul asked "I was just working on one of our support packages that interfaces to the host OS to do file I/O and can't find any support in the Ada Annex set for a portable way of accessing heir. file systems. I need things like "MakeDirectory", "RemoveDirectory", etc. Am I missing something, or is it the case that there is no Ada Annex covering this very common need? If there is no Annex support, is the ARA working on some kind of industry agreement about such things? " This is obviously operating system dependent, and not something that one would expect in an OS independent language definition (as a point of comparison, ANSI C does not support these operations either). So you expect to find these operations supported in standard libraries. In the case of Ada 95, there are two possibilities. You can either use a standard Posix interface if one is available, or you can call the C library routines directly using appropriate Import pragmas. Either approach will lead to well defined, portable code.