windows-stat-override: new module

2017-05-12 Thread Bruno Haible
This patch adds an override of 'struct stat' on native Windows platforms. It's a separate module so that other modules can depend on it. (Maybe a module is overkill and a .m4 file would be sufficient, but I think it's easier to use this way.) 2017-05-13 Bruno Haible windows-stat-over

largefile: improve and document

2017-05-12 Thread Bruno Haible
The 'largefile' module already supports native Windows since 2012. This patch improves it: on mingw, with _FILE_OFFSET_BITS set to 64, there is no need to redefine off_t since mingw already defines it to a 64-bit type. 2017-05-13 Bruno Haible largefile: Improve and document. *

truncate: new module

2017-05-12 Thread Bruno Haible
The 'largefile' module should trigger replacement functions for all POSIX functions that take an 'off_t' argument. In particular 'truncate'. Strangely, gnulib does not have a 'truncate' module so far. 2017-05-13 Bruno Haible truncate: New module. * lib/unistd.in.h (truncate):

windows-stat-timespec: new module

2017-05-12 Thread Bruno Haible
The windows-stat-timespec module turns the timestamps in 'struct stat' to 'struct timespec', on native Windows. 2017-05-13 Bruno Haible windows-stat-timespec: New module. * modules/windows-stat-timespec: New file. * m4/windows-stat-timespec.m4: New file. * m4/s

fstat: fix module dependency conditions

2017-05-12 Thread Bruno Haible
A very old bug: 2017-05-13 Bruno Haible fstat: Fix module dependency conditions. * modules/fstat (Depends-on): Fix typo. diff --git a/modules/fstat b/modules/fstat index 3f2357b..076b5f7 100644 --- a/modules/fstat +++ b/modules/fstat @@ -10,9 +10,9 @@ m4/fstat.m4 Depends-on:

Re: stat: fix time_t values and other problems on native Windows

2017-05-12 Thread Bruno Haible
Another removal of leftover code: 2017-05-13 Bruno Haible stat, fstat: Complete removal of old native Windows code. * lib/stat.c: Remove old macrology for WINDOWS_NATIVE. * lib/fstat.c: Likewise. * lib/stat-w32.c: Likewise. diff --git a/lib/fstat.c b/lib/fstat

Re: stat: fix time_t values and other problems on native Windows

2017-05-12 Thread Bruno Haible
A followup patch, that removes some leftover code. 2017-05-13 Bruno Haible stat: Complete removal of REPLACE_FUNC_STAT_DIR code. * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code. diff --git a/lib/stat.c b/lib/stat.c index f100374..8340863 100644 --- a/lib/stat.c +++ b/lib/

Re: New clang-cl warnings

2017-05-12 Thread Gisle Vanem
Bruno Haible wrote: You seem to be doing a native Windows compilation with the MSVC include files and a non-Microsoft compiler [1]. This is not the among usual tested combinations; good luck with this adventure :) clang-cl is just gcc 4.x in disguise AFAICS. I love clang-cl; it's what gcc/cl

Re: New clang-cl warnings

2017-05-12 Thread Bruno Haible
Gisle Vanem wrote: > I'm not sure exactly when or how these new warnings from > clang-cl happened (a lot of them): > >f:/ProgramFiler-x86/WindowsKits/Include/10.0.15063.0/ucrt/stdlib.h(78,5): > warning: macro expansion producing 'defined' has undefined behavior > [-Wexpansion-to-defi

New clang-cl warnings

2017-05-12 Thread Gisle Vanem
I'm not sure exactly when or how these new warnings from clang-cl happened (a lot of them): f:/ProgramFiler-x86/WindowsKits/Include/10.0.15063.0/ucrt/stdlib.h(78,5): warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if _CRT_INTERNAL_NONSTDC_