Re: liens symboliques
Laurent GUERBY <[email protected]>
| Newsgroups | gmane.comp.lang.ada.france |
|---|---|
| Message-ID | <1226478911.14300.1838.camel@localhost> |
On Tue, 2008-11-11 at 16:39 +0100, Thomas De Contes wrote:
> Ada.Directories permet de faire tout ce que
> OS_Services permettait sur le système de fichiers, mais qu'il n'y a
> encore rien dans ada 2005 qui permet de lancer des sous programmes
D'apres le RM Ada.directories permettrai d'identifier les liens
symboliques sous Unix (a verifier, je n'ai pas testé) :
22/2 type File_Kind is (Directory, Ordinary_File, Special_File);
25/2 function Kind (Name : in String) return File_Kind;
45/2 {AI95-00248-01} External files may be classified as directories, special
files, or ordinary files. A directory is an external file that is a container
for files on the target system. A special file is an external file that cannot
be created or read by a predefined Ada input-output package. External files
that are not special files or directories are called ordinary files.
{directory} {special file} {ordinary file}
45.a/2 Ramification: A directory is an external file, although it may not
have a name on some targets. A directory is not a special file, as
it can be created and read by Directories.
45.b/2 Discussion: Devices and soft links are examples of special files on
Windows® and Unix.
45.c/2 Even if an implementation provides a package to create and read
soft links, such links are still special files.
Laurent
_______________________________________________
Site WWW de l'association Ada-France: http://www.ada-france.org/
[email protected]
http://www.ada-france.org/mailman/listinfo/ada-france