Re: new module 'access'

2019-09-28 Thread Eli Zaretskii
> 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

Re: new module 'access'

2019-09-28 Thread Bruno Haible
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

Re: new module 'access'

2019-09-28 Thread Eli Zaretskii
> 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...) >

Re: new module 'access'

2019-09-28 Thread Bruno Haible
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

Re: new module 'access'

2019-09-16 Thread Eli Zaretskii
> 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

Re: new module 'access'

2019-09-16 Thread Bruno Haible
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

Re: new module 'access'

2019-09-16 Thread Eli Zaretskii
> 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) > +{ > +

new module 'access'

2019-09-15 Thread Bruno Haible
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