comp.lang.ada
 help / color / mirror / Atom feed
* Where is a Rename_File
@ 1998-03-02  0:00 Dmitriy Anisimkov
  1998-03-02  0:00 ` Aaro Koskinen
  1998-03-02  0:00 ` Larry Kilgallen
  0 siblings, 2 replies; 3+ messages in thread
From: Dmitriy Anisimkov @ 1998-03-02  0:00 UTC (permalink / raw)



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 ?





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Where is a Rename_File
  1998-03-02  0:00 Where is a Rename_File Dmitriy Anisimkov
  1998-03-02  0:00 ` Aaro Koskinen
@ 1998-03-02  0:00 ` Larry Kilgallen
  1 sibling, 0 replies; 3+ messages in thread
From: Larry Kilgallen @ 1998-03-02  0:00 UTC (permalink / raw)



In article <01bd45ec$6f70be20$LocalHost@---->, "Dmitriy Anisimkov" <ts@quadrat.omsk.su> 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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Where is a Rename_File
  1998-03-02  0:00 Where is a Rename_File Dmitriy Anisimkov
@ 1998-03-02  0:00 ` Aaro Koskinen
  1998-03-02  0:00 ` Larry Kilgallen
  1 sibling, 0 replies; 3+ messages in thread
From: Aaro Koskinen @ 1998-03-02  0:00 UTC (permalink / raw)



"Dmitriy Anisimkov" <ts@quadrat.omsk.su> writes:
> Is there standard (platform independent) function for file renaming ?

Yes, in POSIX bindings (POSIX_Files.Rename). See the FAQ or
<http://sw-eng.falls-church.va.us/AdaIC/tools/bindings/POSIX/> for
details.
-- 
Aaro Koskinen, aaro@iki.fi, http://www.iki.fi/aaro




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-03-02  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-03-02  0:00 Where is a Rename_File Dmitriy Anisimkov
1998-03-02  0:00 ` Aaro Koskinen
1998-03-02  0:00 ` Larry Kilgallen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox