[Info-vax] C99 updates to CRTL

John E. Malmberg wb8tyw at qsl.net_work
Wed Jul 31 08:57:09 EDT 2019


On 7/30/2019 2:41 PM, John Reagan wrote:
> On Tuesday, July 30, 2019 at 2:20:41 PM UTC-4, Simon Clubley wrote:
>> On 2019-07-29, John E. Malmberg <wb8tyw at qsl.net_work> wrote:
>>>
>>> The only two issues with include files that are impacting me that I
>>> currently remember are:
>>>
>>> 1. GNU software expects "../foobar.h" to work.
>>> 2. If Decnet IV is installed include <net/if.h> does not work.
>>>
>>
>> Perhaps John or someone else from VSI can comment on whether the
>> first one is supported with clang on x86-64 ? I am actually surprised
>> support for it isn't available in the compiler at the moment, because
>> that's a common relative path description in Unix software I come
>> across on Linux.
>>
> 
> Well, since I don't have anything running on x86 yet, I can't tell you for sure. :)
> 
> The interpretation of relative pathnames in the filespec isn't really
> a compiler issue, but a CRTL/RMS issue.

The CRTL handles the relative filename "net/if.h" correctly with out any 
issues regardless of any feature settings that I have tried.

What is happening is that include "net/if.h" is being passed to the CRTL 
as "/net/if.h" and that is where things go wrong if a "net0:" devices 
exists on the system.  OpenVMS treats "net:" as "net0:".

When the code that translates the filespec encounters "/xxxx/yyyy" and 
"xxxx" is not a logical name, it needs to check if "xxxx:" is a file 
structured device, and if it is not file structured, needs to treat 
"xxxx:" as a non-existent device, instead of trying to look for files on 
it and returning the error that files are not found.


Test scripts and a working translation for Unix paths to VMS paths, 
along with documentation on how the translations need to be done are at:

https://sourceforge.net/p/gnv/gnulib_assist/ci/master/tree/vms/vms_gnulib_assist.md

This includes documentations of the bugs / missing routines that I have 
discovered so far, and for the bugs I have tried to have reproducing tests.

I have not tried the gnulib_assist tests on the VSI updated CRTL to see 
if I get better results.

Regards,
-John
wb8tyw at qsl.net_work



More information about the Info-vax mailing list