[Info-vax] Looking for documentation for programming with symlinks

John E. Malmberg wb8tyw at qsl.net_work
Fri Nov 8 19:35:04 EST 2019


On 11/8/2019 10:13 AM, John Reagan wrote:
> On Friday, November 8, 2019 at 9:04:57 AM UTC-5, John E. Malmberg wrote:
>> Hello,
>>
>> I am looking for documentation on programming symlinks using system
>> services.
>>
>> Particularly the usages of:
>>
>> ATR$C_SYMLINK
>> ATR$S_SYMLINK
>>
>> FAB$C_SYMLINK
>> FAB$C_SYMBOLIC_LINK
>>
>> naml$v_symlink_in_path
>> naml$v_object_symlink
>>
>> I think I can figure most of it out by looking at the header files
>> generated by SDL.
>>
>> Regards,
>> -John
>> wb8tyw at qsl.net_work
> 
> The ATR$ symbols are the F11XQP file attribute for a symlink.  The
> FAB$ ones are for creating/accessing a symlink.  For the NAML$ bits,
> I searched ALL the listings on a full Itanium build disk and found no
> uses of SYMLNK_IN_PATH at all.  For OBJECT_SYMLINK, I found one place
> in the CRTL that looks at it, but I found zero places that set it.

While something in the CRTL has to check if a file is a symlink for the 
difference in stat or lstat.

In my case I need to check if the file is a symlink, and if it is, I 
have to check to see if the symlink is to a directory.

I am already using sys$parse and sys$search to see if the file or link 
exists, so I am trying to get the additional information as efficiently 
as possible.

Regards,
-John




More information about the Info-vax mailing list