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: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: Platform portable support of heir. file systems Date: 1996/12/18 Message-ID: <1996Dec18.071612.1@eisner>#1/1 X-Deja-AN: 204720474 x-nntp-posting-host: eisner.decus.org references: <01bbec7f$453edcd0$24af1486@pc-phw> x-nntp-posting-user: KILGALLEN x-trace: 850911384/16181 organization: LJK Software newsgroups: comp.lang.ada Date: 1996-12-18T00:00:00+00:00 List-Id: In article <01bbec7f$453edcd0$24af1486@pc-phw>, "Paul Whittington" writes: > 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. On VMS: Directories can only be nested 8 deep or so if you want the files they contain to be backed up. Directories cannot be removed until all their contents are removed, regardless of how much privilege you have. Directories are always created with nobody having delete permission, regardless of what the caller specifies (this is independent of the previous rule). Directories have a "version limit" attribute which would logically be set by a creator to get a desired behaviour, even if only to override the default for the default of inheriting from the parent. The directory from which you read might be different from the directory to which you write, given identical specifications, if the device specified is a rooted directory rather than a real device. (Come to think of it, Unix users creating a directory don't even specify the device separately, do they>?) I am certain that other operating systems have quirks as well, especially when one gets into permissible name lengths and character sets (which are _not_ necessarily the same as for files). A common package for directory manipulation would not seem to be very "portable" if the rules differ on each operating system. Larry Kilgallen