Re: liens symboliques

Thomas De Contes <[email protected]>
Newsgroups gmane.comp.lang.ada.france
Message-ID <[email protected]>
Le 12 nov. 08 à 09:35, Laurent GUERBY a écrit :

> 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.

Ici
http://www.adaic.org/standards/05rm/html/RM-A-16.html
j'ai que jusque là.


Où as tu la suite stp ? :-)

> {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.

J'espère que ça fait bien partie de la norme, parce que ça serais  
bien embêtant que ce comportement là en particulier ne soit pas  
portable :-/


-- 
Téléassistance / Télémaintenance
http://www.portparallele.com/ThomasDECONTES/

_______________________________________________
Site WWW de l'association Ada-France: http://www.ada-france.org/
[email protected]
http://www.ada-france.org/mailman/listinfo/ada-france
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.