[PATCH 3/3] faccessat, etc.: support AT_FDCWD-only use

2012-10-14 Thread Paul Eggert
* lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support this function only if its first argument is AT_FDCWD. Emacs wants faccessat for AT_EACCESS but not for any first-arg values other than AT_FDCWD, so it doesn't want all the openat machinery with fchdir etc. * modules/faccessat, modules/f

[PATCH 2/3] faccessat: speed up 'configure' on mainstream hosts

2012-10-14 Thread Paul Eggert
* m4/faccessat.m4 (gl_PREREQ_FACCESSAT): Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE, since it's only on unusual platforms that we need to check for 'access', and it's better not to slow 'configure' down on all platforms. --- ChangeLog | 7 +++ m4/faccessat.m4 | 4 ++-- 2 fi

[PATCH 1/3] faccessat: port to Solaris 10

2012-10-14 Thread Paul Eggert
* lib/faccessat.c: Include , for AT_EACCESS. Needed on Solaris 10, which doesn't have AT_EACCESS, so we need the Gnulib fcntl.h, which defines it. --- ChangeLog | 7 +++ lib/faccessat.c | 1 + 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 36334f4..e301fb0 100

Re: MSVC: compilation failure in canonicalize.c due to unsupported C99

2012-10-14 Thread Pádraig Brady
On 10/14/2012 01:21 PM, Michael Goffioul wrote: Hi, I get a compilation failure in canonicalize.c due to unsupported C99 feature in MSVC, namely the ability to define variables anywhere in C code. Is is possible to swap lines 102 and 103 in that file? That is: 91 char * 92 canonicalize_

MSVC: compilation failure in canonicalize.c due to unsupported C99

2012-10-14 Thread Michael Goffioul
Hi, I get a compilation failure in canonicalize.c due to unsupported C99 feature in MSVC, namely the ability to define variables anywhere in C code. Is is possible to swap lines 102 and 103 in that file? That is: 91 char * 92 canonicalize_filename_mode (const char *name, canonicalize_mode_t c