[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getcwd() issues on VMS / canonicalize-lgpl.c
From: |
Bruno Haible |
Subject: |
Re: getcwd() issues on VMS / canonicalize-lgpl.c |
Date: |
Tue, 06 Jun 2017 18:01:58 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-78-generic; KDE/5.18.0; x86_64; ; ) |
Hi,
John Malmberg wrote:
> 1. The VMS CRTL getcwd() will not pass configure tests and will be
> marked for replacement from gnulib.
>
> 2. The replacement from gnulib causes canonicalize-lgpl.c to fail
> because the replacement only has 2 parameters, not three.
>
> 3. The replacement from gnulib also does not fix all the known ills in
> VMS getcwd().
>
> I do not have fixes here for all of these issues, however this VMS
> specific code in canonicalize-lgpl.c probably should just be removed.
But when IN_RELOCWRAPPER is defined (i.e. when this code is used through the
'relocatable-prog-wrapper' module) we '#undef getcwd', so in this case
the lines
/* We want the directory in Unix syntax, not in VMS syntax. */
# define __getcwd(buf, max) getcwd (buf, max, 0)
are appropriate, right?
Bruno