> From: Bruno Haible
> Cc: bug-gnulib@gnu.org, psm...@gnu.org
> Date: Sat, 28 Sep 2019 15:29:42 +0200
>
> > > The module does not attempt to handle all of these, just the first one,
> > > because
> > > - the function access() is located at the C library level,
> > > - it is compatible with wh
Eli Zaretskii wrote:
> > There are different ways to test for "executable" on Windows:
> > - execlp/execvp,
> > - CreateProcess,
> > - system / popen, like you say,
> > - cmd.exe,
> > - surely more (PowerShell...)
> >
> > Let's assume that they work differently (cmd.exe definitely works
> From: Bruno Haible
> Cc: bug-gnulib@gnu.org, psm...@gnu.org
> Date: Sat, 28 Sep 2019 14:06:00 +0200
>
> There are different ways to test for "executable" on Windows:
> - execlp/execvp,
> - CreateProcess,
> - system / popen, like you say,
> - cmd.exe,
> - surely more (PowerShell...)
>
Eli Zaretskii wrote:
> > > > +@item
> > > > +This function does not support the @code{X_OK} mode on some platforms:
> > > > +MSVC 14.
> > >
> > > This says MSVC, but the code will do the same on MinGW, right?
> >
> > Yes, I enabled this code also on mingw. With the mingw version I tested,
> > it
> From: Bruno Haible
> Cc: bug-gnulib@gnu.org, psm...@gnu.org
> Date: Tue, 17 Sep 2019 00:45:03 +0200
>
> > > +@item
> > > +This function does not support the @code{X_OK} mode on some platforms:
> > > +MSVC 14.
> >
> > This says MSVC, but the code will do the same on MinGW, right?
>
> Yes, I en
Hi Eli,
> > +@item
> > +This function does not support the @code{X_OK} mode on some platforms:
> > +MSVC 14.
>
> This says MSVC, but the code will do the same on MinGW, right?
Yes, I enabled this code also on mingw. With the mingw version I tested,
it is a no-op, because that mingw version links
> From: Bruno Haible
> Cc: Paul Smith
> Date: Sun, 15 Sep 2019 19:11:25 +0200
>
> +@item
> +This function does not support the @code{X_OK} mode on some platforms:
> +MSVC 14.
This says MSVC, but the code will do the same on MinGW, right?
> +int
> +access (const char *file, int mode)
> +{
> +
e mingw links to an older version of the runtime library than MSVC.
So, I'm adding a new module 'access' that makes access(file,X_OK) work
portably.
2019-09-15 Bruno Haible
access: New module.
* lib/unistd.in.h (access): New declaration.
* lib/acce