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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a0037418c8d705e4 X-Google-Attributes: gid103376,public From: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: Where is a Rename_File Date: 1998/03/02 Message-ID: <1998Mar2.140946.1@eisner>#1/1 X-Deja-AN: 330103452 References: <01bd45ec$6f70be20$LocalHost@----> Reply-To: Kilgallen@eisner.decus.org.nospam X-Nntp-Posting-Host: eisner.decus.org X-Trace: news.decus.org 888865790 26112 KILGALLEN [192.67.173.2] Organization: LJK Software Newsgroups: comp.lang.ada Date: 1998-03-02T00:00:00+00:00 List-Id: In article <01bd45ec$6f70be20$LocalHost@---->, "Dmitriy Anisimkov" writes: > Is there standard (platform independent) function for file renaming ? I > can't find it in RM. I found only Rename_File in the DOS.ADS in the AONIX > compiler. Need I write this function for each supported platform ? The only "platform independent" way to deal with a file system is the "least common denominator" approach such as using the Ada Posix bindings. Well maybe it isn't "least" common denominator since some OS vendors extend their support to cover Posix. VMS seems to be dropping Posix support due to an overwhelming lack of customers writing to Posix standards. If you want to handle the full capabilities of each file system, however, you will have to have some code which is platform specific, or you will not be able to deal with VMS file versions, Macintosh resource forks, MVS Indexed data set (I think), CMW labels, etc. Those are not all relevant to Rename, per se., but they enter into other file system activities. Larry Kilgallen